Pic related is what I do even for simple HTML/CSS stuff. I just like the idea of sectioning things into neat little categories.
In JS I like using functions for the same reason, it seems so tidy. I might have autism.
Pic related is what I do even for simple HTML/CSS stuff. I just like the idea of sectioning things into neat little categories.
In JS I like using functions for the same reason, it seems so tidy. I might have autism.
>I might have autism.
user, I...
i do not comment
Depends
>Jupyterlab
I try to do full notes before each section with useful links and other stuff
>Whatever text editor I'm currently using
Like yours but with other stuff in each line.
At work I rarely comment code unless it's unexpected behaviour. The codebase is quite self-documenting. Only client code is commented in a javadoc style to autogenerate docs from it.
CSS, whenever I actually touch that shit, I also categorize, but by splitting it into multiple files and using include-directives.
Focus on writing clear, concise code and structure your programs well, you'll find there isn't much to comment.
DOXYGEN
O
X
Y
G
E
N
I only ever comment on things that need explanation. Comments aren't necessary if you write easy to read code.
>// initialize car
>Car car = new Car();
>// write comment
>// initialize car
>Car car = new Car();
>//these bullets are gonna expand into lead flowers
>// write comment
>// initialize car
>Car car = new Car();
>//Random comment because im so quirky xD
>//create a new car object by initializing a new object of type car named “car”.