Which language is best to start a new iOS app either Objective C or Swift?

Ranjit
2 min readAug 3, 2018
  1. A code will be very linear and easy to read when you write it on Swift
  2. The crash free program you can write, Because of the power of Optional in Swift
  3. A struct is restricted somehow in Objective C. But in Swift Structs and Enums are having so much power
  4. Write a less number of lines and you complete the task. And even there are concepts like ReactiveProgramming you can easily adopt in Swift. These kinda programming will give you less error-prone and also can cover nook and corner cases easily. Like without thinking about delegates and all(#old fashion)
  5. If you talk about functional programming there are high-level concepts like Map, Filter, Reduce, flat map, compact map these concepts are pre-built in Swift. So you can easily do lot of operations on List<ie.Array> easily. And also a lot of other concepts are grabbing from various FP Languages and making the swift is great
  6. Protocols are the next big move in Swift. So People who are from Object Oriented programming like Objective C, C++ they will come to know the power of Protocols in Swift using POP(Protocol Oriented Programming)
  7. Lack of developers who know Objective C in the current trends. Because I have seen a lot of newcomers knows Swift. And these newbies are very comfortable with Swift rather than coding in Objective C. So, if you starting your new project in Objective C, It is hard to manage for newcomers. So better to go for new language
  8. Next big hero is Playgrounds. We can do playground driven development in Swift. With help of this, we can write from small function to modules. Even we can test the performance of the function and also we can easily build UI stuff and copy paste it into our project. It can save a lot of hours
  9. Want to do parsing the JSON and making a model of it. Ha ha. In Swift, you can easily able to do with help of Codeable. No need to do all old school techniques like JSON Parsing and all
  10. Generics were introduced in OOPS languages and named it as Template. But in Swift, you can use generics where ever you want. Like Generics in Protocol, in Struct, in Enum and Result type of completion handlers. So this will build great at the level of handling the response and errors

--

--