Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMoby khan
Courses Plus Student 1,218 PointsIs objective-C required to learn Swift?
I have been exploring different options at teamtreehouse. I want to dive into App development of Mac OS and iOS. I have experience of programming in C++, and Scientific Python and I'm learning python to get a command over it. However, for Mac OS and iOS development two programming languages; objective-C and Swift are available and taught here on TeamTreeHouse. I want to know Is Swift alone can sufficient for App development? i.e. without the need of objective-C so I can focus on only one programming language and then use my time on learning more important aspects of App development than spending time on learning multiple languages for the same task.
2 Answers
Martin Wildfeuer
Courses Plus Student 11,071 PointsNo. Without any doubt, you can build full grown iOS projects with Swift only these days. 3rd party libraries have either adapted Swift by now, or, in case those libraries are written in Objective-C, can be bridged to Swift more or less painlessly.
However, if you had to work on legacy projects, almost all of them will be written in Objective-C. Keep in mind that Swift has only be around for a few years. Everything else before has been written in Obj-C. And many companies keep writing their code in Obj-C.
So, long story short: if you you are planning on getting hired for companies with existing apps, a requirement will probably be that you can read and write Objc as well. Code additions to theseprojects might be written in Swift. New apps, however, will most certainly be written in Swift by now.
Just my two cents, and I am heavily opinionated ;)
Moby khan
Courses Plus Student 1,218 PointsThank you Martin, That clears thing up for me. My main goal is to develop Apps independently and thus I want to focus on Swift only though I can handle objective-C too if required occasionally with handy cheatsheets and guides as I have experience in C++ and also learned some objective C. But I don't want to constantly dabble in both as it is confusing and lead to bugs in the program for mixing syntaxes etc.