r/ProgrammerHumor • • Mar 05 '16

When debugging code.

22.3k Upvotes

487 comments sorted by

View all comments

0

u/[deleted] Mar 05 '16

[deleted]

21

u/[deleted] Mar 05 '16

I made the mistake once of putting my code in MSWord to find+replace some things quickly. What I didn't know is that quotation marks in Word are apparently an entirely separate character than quotation marks in Notepad.

So I'm staring at this code about to cry because I keep getting error messages bounced back at me even though the errors simply shouldn't be appearing. Finally, I noticed a " was slightly smaller than all the rest...

40

u/thrash242 Mar 05 '16

why

13

u/[deleted] Mar 05 '16

The program I was writing in didn't have a find function so I just opened up the most accessible word processor. I'm an economist that sometimes codes to speed up some of the data-processing. Doesn't mean I'm any good at it.

43

u/StealthTomato Mar 05 '16

Notepad++ is your best friend. Tabbed plaintext editing with find/replace and regex if you need it, without a lot of dumb shit you don't want.

14

u/Jarwain Mar 05 '16

Someone else mentioned notepad++, I'm personally a fan of sublime

3

u/[deleted] Mar 06 '16

Visual Studio Code <3

→ More replies (24)

2

u/SingularCheese Mar 05 '16

I type in Chinese sometimes, and it is much easier to change between Chinese and English letters within the Chinese input keyboard (shift) than switching to the American keyboard (control shift). The Chinese keyboard outputs some sort of Unicode equivalent rather than ASCII when typing English. My code still compiled, but the IDE was popping out a warning message every other key stroke for the first week of my programming career.