Hi, @Hensahi.
Any help, advise?
Advice:
-
Learn how to use a debugger[0]:
Most of the problems with JS come from an incomplete or insufficient understanding of how the code is executed. Any debugger works,Python tutor
[1] is a good option (it has some limitations). -
Use MDN:
There is a lot of information and examples:
-
Think above the code[2]:
Writing code is an awkward way to explain anything … so it is a good idea (before start writing code) to analyze the problem and try to get a solution using other tools (pen and paper is useful most of the time). -
Use heuristics:
I think that most of the time programmers use an heuristic[3] approach to problem solving.
- Memory is really important:
Programming most of the time is not about being “smart”, but about having solved a similar problem.
Cheers and happy coding
Notes:
[0] John Carmack:
[1] Python tutor examples:
https://pythontutor.com/javascript.html#mode=edit
This video is a step-by-step explanation/solution (using Python tutor
) of the lesson “replace loops using recursion” https://youtu.be/_NsEWXD4lJ8
[2] Leslie Lamport:
[3] I have wrote about heuristics before
Good ways of learning algorithms? Your advices? - #11 by Diego_Perez