Writing tests in vscode with vitest is actually pretty fun. lots of green checks 😀

https://cdn.hzrd149.com/8d6fca62072fbf519f4163d3ec4c9e26b80db3f4579769f24ef90c978cf46402.webp

Reply to this note

Please Login to reply.

Discussion

you should try WebStorm

i couldn't live without my Goland... the reason is that every symbol in the code is a hyperlink to something... the symbol database can be a bit wonky sometimes so i sometimes have to make it invalidate the cache but everything, i mean everything control-clicks to something that explains what a thing is... i don't even look at documentation anymore because of this

it's not as straightforward with OOP languages, but even still for javascript WebStorm is way better than VSC

look @ doc. ever?

Go has a protocol for putting documentation into comment headers above functions and symbols, and when you jump to the code you can actually see the implementation itself, if the documentation is a bit weak, you can usually make some sense of it by reading what it does

documentation is never done properly when it is too much extra work... there is a saying, something like "lies, damned lies, and documentation" they are the most vulnerable to bitrot of any part of the process of software development... very often you make some effort to write it, and then you debug it, fix bugs, which forces you to change the algorithm fundamentally, and then the documentation is wrong, but you forget to fix that because it doesn't affect the results of the tests

T U m

You can use Doxygen in C and C++, and most IDEs support comments in this format. C# supports XML inline docs that can be packaged with the product. Java uses javadoc and offers inline docs when linking to a package with a jar or souce package.

it's built into the language specification, there is a standard library function that reads a source code and shows you the documentation, it's all in a neat 127mb of installation package

the guys who made Go have been in this business for a loooooong time and all that fragmentation for universally needed things in the dev process are just not ok

T U/*