Advantages of Swift vs Objective C: Should I just learn Swift?

preview_player
Показать описание
Today we answer the very common question of whether or not you should just learn Swift if you are trying to build iOS applications. I also go over a couple of the major advantages to using Swift in my opinion that make it a much better development experience.

Instagram Firebase Course

Facebook Group

iOS Basic Training Course

Рекомендации по теме
Комментарии
Автор

I first learned swift, and once I got the hang of it, i started with Obj-C. I think this is the best way to go (for a job you will still need to be able to understand Objective-C code for legacy apps)

MysticAngl
Автор

Great point about documentation and blog posts being in Swift. That's a huge help.

seanallen
Автор

Such an awesome video! I had this doubt some month ago. I just decided to move on the switch direction instead obj c. I felt out dated studying obj c. Now, I got q job doing swift, which is awesome.

KhromosInCanada
Автор

Just like to point out that C, Obj-C and C++ don’t need two files they can in fact be one file, I have a Obj-C project that dose just that, .h no .m one file and have looked at Swift and my view is it is harder to learn and follow than C or Obj-C, the only issue with Obj-C was [] could get out of hand if you didn’t approach it correctly, the [] helped if done correctly made code easer to maintain and follow and then they is pointers that important for the type of projects that I do, Swift just too stiff and not flexible on this area but for general apps and new comers that didn’t start with C or C++ they will find Swift easer than Old School programmers.

I would recommend learning Swift but don’t forget C or Obj-C and C++ as all language have good points and bad points and Swift is not perfect.

My only wish was that Apple moved to C# not that I think C# is better, it would just make things easer if we stopped changing language so quickly it is not very productive

insoft_uk
Автор

watch from here (3:07) and save your time

sandeepvk
Автор

Just got a job offer. I don't know anything about Obj-C, but the company uses it to build all their apps and will slowly transition to Swift. I guess I have to learn Obj-C now! :D

jasondhindsa
Автор

I started ios programming with swift, then move to swift 2 an now swift 3. Some of my clients app which was using swift are rejected because not using swift 3. Then they ask me to update them. However, recently i've been doing project that require integration with custom sdk which written in obj-c. So i had to learn and use obj-c in this project. I end up using both swift 3 for general and objc for specific sdk related functionality. It is quite challenging because i have to use NSData and char * pointer (which i'm not really good at). So i guess obj-c is still required somewhere.

Some of the cons in swift is having to keep up to date with the latest version (swift->swift 2->swift 3->swift 4) and change deprecated codes. However, between the version is always an improvement and new functionality which make development easier and fun.

Your channel always encourage and teach me. Thanks for a good video.

escpEP
Автор

You need to know both languages for the time being. For new developers you should focus on Swift, but you need to know both. The reason is that most legacy code out there is in objc, most of the stackoverflow posts are in objc, and you can't even read Apple's docs without knowing objc. Also, big mission critical apps won't be written in Swift until we get source compatibility and until the compiler can actually compile stuff in a reasonable time without choking on things like nesting! Swift is almost 8 years old. So, how long it will take Apple to bring Swift up to the level of objc is something we will have to wait and see. For objc devs you need to learn Swift. For Swift devs you need to learn and know objc.

smilebot
Автор

AWESOME that's what I am looking for I am happy to sit and watch your advises Thank you so much.

Diamond
Автор

Hi Brian, Really find your videos helpful! Strongly believe doing everything in code too ;), Good resources to learn Objective C from? I'm really struggling to find a good resource to learn Obj C from, Thanks. Keep up the good work!

ajitsarkaar
Автор

pls help!!!
where can i learn swift and ios development In sequence everything is there any ur online course Brian Sir

jugalshah
Автор

how does i look at source code of apps ?

chrisrodriguez
Автор

Nice arguments! I learned Objective-C in the beggining of 2014 and a few months later, when Swift was launched, I began to learn Swift and I'm programming since then! I really like the syntax and all of the things you can do with it. Great video!

ricardohochman
Автор

Depends. I still refuse swift as using C++ is the only crossplatform compatible way and then Objective-C++ will just fit well. C++ is still much much faster where you need it.

llothar
Автор

where can I get all of the paper documentation to fully learn swift?

mathieupelletier
Автор

Also started my app development career using Swift 2, so I mainly focus on stuff related to that programming language. I coded a lot in Python, Java, PL-SQL and PHP, but I never really use those languages anymore. Knowing a couple of high level programming languages can be very helpful, but knowing at least one low level language may be useful as well.

Dennisvm
Автор

Hi Brian,

i have created a keyboard extension and want to add swipe to type functionality in it.
Can you please suggest a way to achieve this?

DVdroid
Автор

Brian, I get that Source Editor bug a lot. what I do is use the "back" hotkey (to another swift file) then go "forward" which usually fixes the highlighting. Also, if the autocomplete is bugging you can hold the escape key (or whatever your hotkey is) and it will eventually pop up.

still annoying (especially in PG) the back, forward trick works a lot for me.

thebeatles
Автор

SMALL DOUBT : I'm C# Xamarin Dev Learning Swift and do feel comfortable acclimating to it but still should i focus more on Swift and ignore Objective -C ? or other way around ? I heard not most of them are using Objective -C anymore .

shanthureddy
Автор

It’s easy to find out. Do a text search on job listing sites. Then count how many times a language is mentioned. In my area C# and .NET is most popular. Swift or obj c had no ads (small city).

korsveien
visit shbcf.ru