4 ms·
You can use C++/C to do this but depending on what you're doing it probably won't save you much time. You could also use JS to share code since both platforms h
by danielrhodes 4y ago
You can use C++/C to do this but depending on what you're doing it probably won't save you much time. You could also use JS to share code since both platforms have JS interpreters you can run arbitrary code in - but the ergonomics of this would likely be sup-optimal. For most apps, the vast majority of the work in mobile is the front-end - so sharing code this way would just end up being a headache.
- LAC-Tech 4y agoIs mobile dev a bit like frontend web dev, where people really struggle to separate UI from business logic? Frontend web dev essentially had no concept of architecture, it was all code behind IME.
- danielrhodes 4y agoMore or less, yes. Because you have more opportunity to maintain state locally on a mobile app (which isn't done as much in browsers), you will see more business logic. But it's largely very similar to web dev. Again though: depends on what you're building and how much you need a remote backend.
- secretsatan 4y agoThis reply has been bugging me. No, though i’ll admit it can be easy to get sucked into, bit that’s true for any platform, there are plenty of strategies to avoid this, mvc with uikit and swiftui further improves. Just setting up test targets can mitigate this kind of thinking