LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2016, 03:58 AM   #1
jegadezz
Member
 
Registered: Oct 2015
Location: Bangalore,India
Distribution: Fedora,Ubuntu
Posts: 32

Rep: Reputation: Disabled
Angry strange about objective c programming?


Hi All,

I have a few questions about Objective C programming.

1. If Objective c language is good, how come no one else is using it?

2. Objective-C is one half of a complete solution, the complementary half being the Cocoa runtime. And that isn't something that Apple is going to share.In this open source world why no one else has managed to build a credible competitor?
 
Old 03-11-2016, 09:46 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Objective-C replaced Pascal(!) as the programming language used in Macintosh systems, and I don't think that it was a particularly successful one because, as you observe, no one else embraced it.

Since then, even Apple has turned-corner with its Swift language, which they did release to the world and which is now attracting strong interest as a potential "cross-platform" solution. (Along with "haXe," "OpenFL," and various PHP-successor tools produced by Facebook and others.)

In my opinion (and it is just my opinion), we fundamentally need:
  1. Languages that give us a variety of options for deployment, strong typing and so forth without being bound to what some college-professor thought was a cool idea and foisted upon his graduate students.
  2. Languages that are fundamentally cross-platform, so that if we are writing for iOS and Android and Tizen and whatever-happens-next™, we are not writing multiple source-code bases.
Objective-C, in addition to being "not particularly better than C++," was very specific to iOS and really could not be transported to anything else. So, cross-platform tools appeared that generate Objective-C as an intermediate source-code language to be fed into Apple's original compilers. Meanwhile, Swift appeared more-or-less as a new LLVM top-half for their existing code-generators, and it has been made open-source with cross-platform openly encouraged.

The jury is still out whether anyone else will "bite," though, because Swift is late coming to the table. Apple solutions are still "joined at the hip" to the underlying system libraries.

Today, I would not seriously pursue Objective-C, except to maintain existing applications that were developed in it. Today, I would develop in Swift or, more likely, a true cross-platform tool that considers multiple targets equally.

Last edited by sundialsvcs; 03-11-2016 at 09:48 AM.
 
Old 03-11-2016, 11:45 AM   #3
Brian Knoblauch
Member
 
Registered: Jan 2005
Distribution: OpenSuse Tumbleweed
Posts: 288

Rep: Reputation: 39
Quote:
Originally Posted by jegadezz View Post
1. If Objective c language is good, how come no one else is using it?
It's not good. It's actually a lot closer to "terrible". To me it works like a melding of the bad parts of LISP and the bad parts of C. However, it was the only (realistic) game in town for awhile in that arena, so it got widespread adoption.

Swift looks really good and hopefully we can now put Objective-C back in the 1970's where it belongs.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Objective-C Programming timd Programming 3 03-14-2011 09:03 AM
Strange fseek issue ? C programming exvor Programming 3 10-05-2006 11:20 AM
New to linux programming, getting strange error with bind function. wbuik Programming 3 01-01-2006 05:20 PM
Objective-C dogn00dles Programming 2 11-29-2003 02:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration