I'm sort of in the same boat, but I'll tell you what's been helping me keep my sanity:
The debugger is your friend. Figure out how to get it attached anywhere if you haven't already.
That means running node with --inspect-brk=<port number> that also means figuring out where spawns are.
This exercise will greatly aid you in overcoming any surprising control flow going on by allowing you to single step the program. JS is one of those languages I just have to cling to my debugger in.
Two: node has two "ClassLoaders"(CommonJS/ESM). They don't mention squat about the differences between them until the middle of the nodejs documentation.
Start learning dependencies one by one. There's really no other way around it.
Avoid using regex for XML/HTML. Try something more akin to SAX parsers. Seriously. There:s way too much pain in doing regex XML processing. You could literally rewrite the damn thing in java faster than getting a shoddy, flaky JS monstrosity reliable.
God help you if they're doing weird Async/Event nonsense.
Keep cracking at it, but be aware, I think JS has broken my brain, because I just don't even like programming anymore since I started dealing with the language and all the necessary tranpilation/toolchains.
The debugger is your friend. Figure out how to get it attached anywhere if you haven't already.
That means running node with --inspect-brk=<port number> that also means figuring out where spawns are.
This exercise will greatly aid you in overcoming any surprising control flow going on by allowing you to single step the program. JS is one of those languages I just have to cling to my debugger in.
Two: node has two "ClassLoaders"(CommonJS/ESM). They don't mention squat about the differences between them until the middle of the nodejs documentation.
Start learning dependencies one by one. There's really no other way around it.
Avoid using regex for XML/HTML. Try something more akin to SAX parsers. Seriously. There:s way too much pain in doing regex XML processing. You could literally rewrite the damn thing in java faster than getting a shoddy, flaky JS monstrosity reliable.
God help you if they're doing weird Async/Event nonsense.
Keep cracking at it, but be aware, I think JS has broken my brain, because I just don't even like programming anymore since I started dealing with the language and all the necessary tranpilation/toolchains.