Hacker News new | ask | show | jobs
by geuis 5525 days ago
Javascript is incredibly easy to develop in. Most folks who say that its hard or messy don't understand it and are approaching it the wrong way.

I'm learning Objective-C right now, and it seems to be hard to develop in, at first. Why do I have to put @ in front of strings, or NSLog(@"%@", myVar); to log a string? Why are there so many data types? Wtf is up with all the brackets?

As soon as I actually started at the very basics, this stuff started to make sense. Its a different language with its own ways of solving problems. Its me as the new guy on the team that has to learn the rules before I can start complaining that things don't make sense.

1 comments

Objective-C is basically C, so you have to deal with a lot of stuff that is usually hidden in scripting languages. I think he was referring to the fact that javascript code tends to become tangled like spaghetti.
That's actually a really good point. In my career I never learned C, but rather started with basic C++ in college then moved into frontend development early on, so I was never fully exposed to low-level languages at a deep level until relatively recently.

I know what you mean about the spaghetti effect, but this is easily mitigated if you know how to structure your code.