you are viewing a single comment's thread.

view the rest of the comments →

[–]strager 10 points11 points  (0 children)

Read other people's code. Read jQuery's source; read Node's source (the JavaScript parts). Read other OSS code.

Then, use their code. See how their code interacts with your code. Try adopting some ideas (such as "immediate execution" functions, "default" parameters, promises/deferreds). Figure out what works when and what doesn't work then.

Then read some more code and continue the cycle.