Hacker News new | ask | show | jobs
by jackkinsella 2316 days ago
As with any good habit, it's important to reduce resistance. If you want to eat healthy, have juicy apples at hand in the fridge.

I made a conscious decision to start installing all my dependencies into a folder within my project source-code so that I can painlessly jump to the dependency's source and read it. (E.g. in the Ruby world, this means installing to "./vendor" in your project).

The effect of doing this is that it's easier for me to read the source code of a library than it is for me to leave Vim and look up the docs online. VoilĂ , now I'm reading more source.

1 comments

I write Python mostly, and whenever I want to quickly look at what a library is doing, I just right click and do Go To Definition (what it's called in VSCode, I believe it's something similar in IntelliJ/PyCharm) and it'll jump through the library folders in my virtualenv to get to wherever the function/class is.

Then I don't have to think about dependencies as much, albeit in Python there's always a struggle with that :P