3 ms·
IDEs do a good job with dynamic languages too, if you document your types and function definitions it will provide you same features as a static language. You n
by simion314 6y ago
IDEs do a good job with dynamic languages too, if you document your types and function definitions it will provide you same features as a static language. You need to avoid abusing eval or similar constructs like p[kind+"_name"].
- NateEag 6y agoAlso worth pointing out that even static languages often have escape hatches into metaprogramming that defeat tooling. I've seen Java codebases use reflection heavily enough to utterly confuse the IDE.
- simion314 6y agoYes, just to add the information in case someone is wondering, for example PHP has "magic" functions , I do not use this feature but is used by ORM libraries to make it easy to access table columns. But using PHPDoc I can specify the existence of this columns and then all the warnings are gone and I can get auto-completion help(this helps a lot to improve coding speed and can catch errors if you put a type in a table column name. This will not work for stuff that is random object from a JSON but so far I never worked with random data.