|
|
|
|
|
by antoineMoPa
3623 days ago
|
|
It is a problem that is easily fixed. I like the fact that javascript allows you to write ugly code to make something work fast. When it works, you can refactor quickly by naming anonymous functions / using Promises / using whatever framework. Here is my nodejs algorithm so far: - Code something ugly with 4-7 anonymous function levels
- Realize I'm in callback hell
- Refactor and make sure all functions have access
to the variables they need.
(Because the scope is often changed while refactoring)
- Test
- Repeat
|
|