Re: Language options: Objective-C, Swift, C or C++?
Re: Language options: Objective-C, Swift, C or C++?
- Subject: Re: Language options: Objective-C, Swift, C or C++?
- From: Carl Hoefs <email@hidden>
- Date: Fri, 12 Jun 2015 19:32:11 -0700
2-cent note from an uninformed lurker…
I busted my rear for couple of years learning and getting to think in Obj C, and I love the object oriented feel it has, especially compared with the likes of C++ and Java, where object orientation feels like a tacked-on afterthought.
Okay, so now there's Swift. Ugh. At first glance it looks like a throwback to Basic (let x =), so it make me shudder. I suppose I'll hold my nose and learn it, but the main question would be why? Is there some glaring irredeemable deficiency in Obj C that will end its days? I don’t recall anyone clamoring for a new language…
What problem/issue/deficiency is Swift intended to address? The mindset I use when programming in Obj C is “pure and simple object orientation”. What mindset am I to adopt in learning Swift? I’m having a hard time getting a “feel” for Swift's orientation. It seems so… syntaxy.
-Carl
> On Jun 12, 2015, at 6:59 PM, Maxthon Chan <email@hidden> wrote:
>
> It seemed to me that my decision on start learning Swift this year dodged a bullet here. Still my Swift experience will not start until I built a Swift compiler on Linux.
>
> For me the embedded land is still C and C only. In 8-bit land Microchip XC8 for PIC as well as SDCC for Intel 8051 are C only, and AVR-GCC’s C++ support is rarely used by me (unless I am doing something with Arduino) and on 32-bit since I generally don’t use Cortex-M, the ARM9, ARM11 and Cortex-A processors that I use generally runs Linux and hence GNUstep, so those will use a mix of C and Objective-C.
>
> Call me a weirdo as my recent Web project is written in pure C, as an Apache 2.4 module.
>
>> On Jun 13, 2015, at 09:31, Roland King <email@hidden> wrote:
>>
>>
>>> On 13 Jun 2015, at 08:51, Maxthon Chan <email@hidden> wrote:
>>>
>>> News outlets says that Objective-C is quickly falling out of people’s attention and developers are turning away from it to Swift and C++. So what language will you use to code various parts of your new project? Objective-C? Swift 2? C++? Or the good old plain C?
>>>
>>> For me, it is still Objective-C and plain C, maybe Swift 2 in the future. I always hated C++ for its confusing feature set and difficulty in mastering it, let alone fragile ABI and inability to use modules to accelerate compilation time. I never looked at the original version of Swift language closely because it is not feature stable yet and it is confusing since all my previous experiences are Objective-C, Visual Basic .net and a little bit C# (I am a convert from Windows and Windows Phone camp, gave up Microsoft four years ago when I began to see the downfall of Windows as a decent operating system) The Objective-C and C also have the advantage of being able to be ported rather effortlessly to Linux using GNUstep.
>>>
>>> Swift 2 though, provided all (Objective-)C currently have, so I am interested and will look into it once I downloaded Xcode 7.
>>> _______________________________________________
>>
>> I wouldn’t take a sod of notice what “News Outlets” say. They wouldn’t know a programming language from a large hole in the ground and are mostly regurgitating frothy press articles and random surveys.
>>
>> I would start learning Swift. It was a rough experience last year, it’s looking orders of magnitude better this year, because Apple put some serious hard work into it and responded to the piles and piles of bug reports they must have had when it first came out. It’s where the puck is going at least for Apple OS programming, and it’s pretty usable although it’s going to take me a while before I really start getting the full power out of it.
>>
>> I hadn’t touched C++ for years until recently, but it came in very handy for, of all things, some embedded programming.
>>
>> So right tool for the right job. I’d keep them all sharp and use them appropriately.
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden