Hacker News new | ask | show | jobs
by noir_lord 2690 days ago
If I have a particulary gnarly function I didn't write that has no comments (it happens more than I like) I'll print it out and use colored pens.

It's a once/twice a week thing but nothing is as effective (I tried using my 2018 ipad/pencil but I just don't really like writing on it, the lack of surface resistance is wrong).

1 comments

Random question -- how do you print code? Do you copy the file into a text editor? I've looked a few times and it seems like Sublime and VSCode both don't have a print feature...
I mean, just save the file as .txt and open it in Notepad, TextEdit, or whatever is the default editor in your desktop environment of choice. Should have a print function.

Otherwise you could stick it in <pre> / <code> tags in an html file, open it in a browser, and print from there.

Lots of options...

I paste the function into geany (I’m on Linux) and print from there.

Usually I have IntelliJ open and it can print quite nicely.