News for hackers. Stuff that matters.
Re:Jeff Bezos Turned Narrative into Amazon's Competitive Adv... by noir_lord on Friday February 08, 2019 @06:45PM (#19119700)
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).

Re:Jeff Bezos Turned Narrative into Amazon's Competitive Adv... by stephencweiss on Friday February 08, 2019 @06:53PM (#19119736)
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...
Re:Jeff Bezos Turned Narrative into Amazon's Competitive Adv... by mroche on Friday February 08, 2019 @07:25PM (#19119860)
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...

Re:Jeff Bezos Turned Narrative into Amazon's Competitive Adv... by noir_lord on Saturday February 09, 2019 @03:39AM (#19121364)
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.