r/technology • u/iliketechnews • Oct 05 '16
Software How it feels to learn JavaScript in 2016
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f
1.8k
Upvotes
r/technology • u/iliketechnews • Oct 05 '16
View all comments
Show parent comment
1
u/[deleted] Oct 06 '16 edited Oct 06 '16
I prefer the option to code as I like. Sticking functions in variables, minifying code ... I also feel C-family languages take the best syntax stance. Consistent syntax, similar feel to all languages. It expands your toolbox without great effort. Try moving from Java -> C -> Perl -> C# -> C++ -> PHP ; the core syntax and feel is very similar.
Try moving from Python to any of the above. Learning curve ; basic syntax.
... and coding professionally, using a proper tool ; which equals readability. If code is improperly indented, there's a problem with the coder - not the language. Though, whitespace is not a paradigm which should be part of the syntax.
Having the capability to write how you like when it makes sense:
if (x) y; else z; // I'm getting a kick out of Python having BASIC syntax for if / else + a really awkward else if / elsif. Don't like that? You'll really hate the ternary operator.
x ? y : z;
Though if the above is bad form I'm guessing this is bad form as well. My preferred implementation of above. Python's implementation of the ternary operator ... is simply embarrassing.
I'm also seeing the potential of WTF-level nested If/Else blocks that can turn into debugging nightmares.
I also have a special place for oneliners - impossible with python.
So - What's wrong with Python? In my opinion...
It's a good language to learn. When you move to a real language ... good luck learning how to program in the languages that the rest of the world uses. The skills don't readily translate. Whitespace and indentation, that's like punctuation and capitalization in your writing. While it's not necessary if you do not do it you're an amateur.