Need advice about which tool to choose?Ask the StackShare community!
Elm vs Objective-C: What are the differences?
Elm: A type inferred, functional reactive language that compiles to HTML, CSS, and JavaScript. Writing HTML apps is super easy with elm-lang/html. Not only does it render extremely fast, it also quietly guides you towards well-architected code; Objective-C: The primary programming language you use when writing software for OS X and iOS. Objective-C is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax, primitive types, and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding, deferring many responsibilities until runtime.
Elm and Objective-C belong to "Languages" category of the tech stack.
"Code stays clean" is the primary reason why developers consider Elm over the competitors, whereas "Ios" was stated as the key factor in picking Objective-C.
Elm is an open source tool with 5.3K GitHub stars and 424 GitHub forks. Here's a link to Elm's open source repository on GitHub.
Uber Technologies, Instagram, and Pinterest are some of the popular companies that use Objective-C, whereas Elm is used by NoRedInk, Brilliant, and RolePoint. Objective-C has a broader approval, being mentioned in 851 company stacks & 363 developers stacks; compared to Elm, which is listed in 27 company stacks and 35 developer stacks.
1 code deploys for both: Android and iOS. There is a huge community behind React Native. And one of the best things is Expo. Expo uses React Native to make everything even more and more simple. Awesome technologies. Some other important thing is that while using React Native, you are reusing all JavaScript knowledge you have in your team. You can move easily a frontend dev to develop mobile applications.
A huge PRO of Expo, is that it includes a full building process. You run 1 line in the terminal, and 10 minutes after you have 2 builds done. Double check EAS Expo.
Pros of Elm
- Code stays clean45
- Great type system43
- No Runtime Exceptions40
- Fun33
- Easy to understand28
- Type safety23
- Correctness22
- JS fatigue17
- Ecosystem agrees on one Application Architecture12
- Declarative12
- Friendly compiler messages10
- Fast rendering8
- If it compiles, it runs7
- Welcoming community7
- Stable ecosystem5
- 'Batteries included'4
- Package.elm-lang.org2
Pros of Objective-C
- Ios212
- Xcode115
- Backed by apple62
- Osx47
- Interface builder40
- Good old fashioned ooe with a modern twist10
- Goober, please2
- Object-oriented1
- Handles well null values (no NullPointerExceptions)1
Sign up to add or upvote prosMake informed product decisions
Cons of Elm
- No typeclasses -> repitition (i.e. map has 130versions)3
- JS interop can not be async2
- JS interoperability a bit more involved2
- More code is required1
- No JSX/Template1
- Main developer enforces "the correct" style hard1
- No communication with users1
- Backwards compability breaks between releases1
Cons of Objective-C
- UNREADABLE1