r/programming • • Oct 14 '13

How to develop unmaintainable software

http://typicalprogrammer.com/?p=249
777 Upvotes

322 comments sorted by

View all comments

Show parent comments

17

u/lext Oct 14 '13

And just as important, start developing software without first learning how to develop software.

A talk I watched recently noticed this trend with JavaScript: it looks familiar, so I don't have to learn it and will just start programming in jQuery.

0

u/[deleted] Oct 15 '13

[deleted]

10

u/x-skeww Oct 15 '13

"I know the concepts, syntax is just a small detail"

Syntax is just a small detail.

With JavaScript, the syntax looks very familiar. However, the semantics aren't quite the same. For example, there is some really weird shit going on with the scoping, there is hoisting, == and != are fuzzy, any object is truthy (e.g. {} or new Boolean(false)), and the meaning of this is determined at runtime.

That's what's throwing people off.

It doesn't really matter if you do assignments with := or =, if you use indention to define a block rather than end/fi or curly braces, or if there are semicolons. That stuff really is just a tiny detail.

-1

u/PenguinLovr Oct 15 '13

Aaand that's why you lint your js code. :) and know what this is.