Live data from Hacker News

Try Objective-C

tryobjectivec.codeschool.com

61–68 of 68 posts

Re: Try Objective-C

#64
Only one complaint from me: error messages. I realize this is probably a complicated problem, but on the other hand, can alienate beginners.

For example, on the first exercise, you're asked to write NSLog(@"Name"); When I did it, I first missed the semicolon, and got an error "expected ‘;’ after expression". Okay, fine and good, that makes sense. I added the semicolon and got "‘extern’ variable has an initializer" because I called NSLOG instead of NSLog. Even for a programmer, that's not a helpful error message...

Re: Try Objective-C

#65

Sorry for the slow response times on the challenge submissions everyone. We only have so many Mac Minis running these things . We are looking into ways to speed it up

In challenge # 22 in level 4, I am getting an error :‘extern’ variable has an initializer; I have tried the running the show answer solution but to no avail.

Re: Try Objective-C

#66

Only one complaint from me: error messages. I realize this is probably a complicated problem, but on the other hand, can alienate beginners. For example, on the first exercise, you're asked to write NSLog(@"Name"); When I did it, I first missed the semicolon, and got an error "expected ‘;’ after expression". Okay, fine and good, that makes sense. I added the semicolon and got "‘extern’ variable has an initializer" be…

Thanks for the examples, and I agree that error messages are super-important for beginners. We have written a bunch of code trying to "massage" error messages to be more helpful. I'll be adding these to the list, thanks!

Re: Try Objective-C

#67
post #7

Very nice presentation, but it seems like this could benefit from an Emscriptened browser-based Objective-C compiler. Fabrice Bellard's browser-based Linux boots in less time than this prints out "Hello, world!"

Wow, this is totally awesome. This is my first time hearing about emscripten and I've been a Cocoa and JS programmer for about 9 years. What are some of the coolest applications of emscripten?

Not sure if this qualifies as 'cool', but I used Emscripten to port parts of OpenSCAD to Javascript http://www.fabfabbers.com/openscad

Re: Try Objective-C

#68
post #60

Good stuff... I guess? I still fail to see the appeal of learning a language with such extremely limited value (only works, has tools and adaptation on a certain lawsuit-happy gadget-vendor's OS). Anyone? And what about principles? What about giving back to the community? Shouldn't hackers hacking away on the next big thing be using open technologies as open technologies was what enabled them to get hacking in the fi…

Politically I agree, but Objective-C is a better language than C++ or Java, and Cocoa is a better framework than the STL or the Java core libraries. That's before we get to the GUI experience. Learning it will make you a better programmer.

Since I became a convert to the "put your own VM in the frameworks and add a cute language for your core logic" kind of school of thought, I seriously cannot see the value in Obj-C and the Android/Java thing. I've been writing code in these environments for decades: I'm now seriously addicted to Lua.

2 years of Lua work, and I absolutely cringe with the idea of having to go back to Java/Obj-C/C++, in any context other than to push a bridge across the VM gap to some framework.

Its a smaller language, its lighter. It performs quite well, and can be put almost anywhere there is a lib.so file (so: everywhere). Choose what you want to link with, extend the external API's with Lua, and leave the whole problem of obscure languages for the young 'uns..

So, its not so much about my desire to pimp Lua, but my point is this: You can choose whatever language you want, actually, to develop a core host environment with, but use a very simple, sweet language for the majority of the work.

Post reply on HN