4 ms·
Actually, modern IDEs are super helpful with JS and Python, especially with type hints. I can export a function or class in a big JS project, go to any file, s
by winrid 5y ago
Actually, modern IDEs are super helpful with JS and Python, especially with type hints.
I can export a function or class in a big JS project, go to any file, start typing the method name, and Webstorm will suggest the import. With JavaScript!
Not as great as the Java integration but still pretty nice.
- kitd 5y agoCompletely agree. I recently had to work on an unfamiliar JS codebase. After initially pulling my hair out trying to understand what objects were being passed where, I decided to define some types and parameters using JSDoc . VsCode picked them up instantly and it was like coding with a language server after that.
- winrid 5y agoAlso recommend this to learn a new code base which will log every function call: https://www.npmjs.com/package/@phenomnomnominal/debug https://www.npmjs.com/package/@phenomnomnominal/debug
- fuzzythinker 5y agoThe repo has zero documentation. Do you use it on client, node, or both? Does it renders the calls in a tree?
- winrid 5y agoOh you're right, sorry. Here's the blog post the dev wrote: https://dev.to/phenomnominal/lazy-debug-logging-for-node-js-1221 https://dev.to/phenomnominal/lazy-debug-logging-for-node-js-... The idea is it logs every function call. Nice for picking up a new code base.