tags:

views:

193

answers:

6

Hi folks,

I know this is a mater of taste, but actually I cannot accept the Objective-c syntax.

Any advices so that I can go ahead and learn this language with this freak syntax?

Thanks.

+2  A: 

Just go ahead, sooner or later you'll like it. I had the same opinion when i started!

Softnux
`I had the same opinion when i started!` that what I am talking about!
Mohammed
A: 

Start with smaller projects and work your way up. If you're trying to do complex things out of the gate, it sounds like that's not going to work well in this case.

Dean J
+9  A: 

Learn to swallow what you find distasteful.

OR

Don't be so fussy, it's only a language syntax.

High Performance Mark
+1. People act like syntax is the most critical part of a language. It isn't. It's important, yes, but ugly syntax on beautiful semantics kicks ass over beautiful syntax on ugly semantics.
JUST MY correct OPINION
"Learn to swallow what you find distasteful." It doesn't work with girlfriends, will it work here?
samoz
Eh? Syntax **is** (one of) the most critical part of the language: It’s the interface to the user. **Of course** people react to it, and rightly so.
Konrad Rudolph
@Konrad -- I agree with you entirely, but OP's wish to learn Objective-C while avoiding its syntax seems to be internally inconsistent.
High Performance Mark
+4  A: 

You have three choices basically:

  • Suck it up and deal with the abomination that is Objective-C.
  • Use a front end to Objective C. (note those are 3 separate links)
  • Abandon all hopes of Cocoa, iPod, iPhone, iPad development and move to Android.
samoz
Or pay someone else to do the _dirty_ job.
jweyrich
Hey I am a dev not a business man !
Mohammed
@Daziplqa So be a dev ! If you are being payed to develop on Objective-C do it. Syntax can't be a blocking point for a developer.
Incognito
+1  A: 

I never really grew to like it, but I started to be able to parse it more easily when I accepted how functions are called. Coming from other languages, that was my biggest hang-up.

Take this example: [[instanceVariable method1] method2]

When you realize that you're looking at the equivalent of instanceVariable.method1().method2(), things make more sense.

Beyond that, ignore the 'NS' at the beginning of all the standard objects. It's irrelevant to the functionality of the object.

Shaun
+2  A: 

Someday, somehow, someone will write something that replaces C, C++, Objective C and all its ugly variants and descendants such as Java, Javascript, Perl, PHP forever with a new way of programming using a reasonable syntax while still running very fast yet being more flexible.

Perhaps that could be you :) It usually starts by someone just no longer being able to tolerate the current state of things - or someone who's not already poisoned with the existing way of thinking.

For now we have Python, Ruby, Haskell, Erlang, Lisp as the better ways but these are slower and still carry some of the ugly while having their own issues. Eventually there will be some way to program that'll be even better yet.

Consider that there once was a time when the Roman Numeral system was all that was known. Lots was done with just that. Division and multiplication though were hard to do beyond the trivial cases. Roman Math

Then the Arabic number system that we use today was developed and the world changed for the better. We could use a similar change in programming.

There is hope.

Khorkrak
Hey I am already Arabian and know that the Numbers 1,2, 3 is called the Arabic numbers and we (Arabians) don't use it, we use instead the Arabic-Indic numbers see: http://en.wikipedia.org/wiki/Arabic_numerals
Mohammed