Live data from Hacker News

CS quotes found while browsing Notepad++'s code

github.com

81–90 of 186 posts

Re: CS quotes found while browsing Notepad++'s code

#81
post #3

Adding #L7102 to the URL gets you straight to the quotes: https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...

To see them in action, type the word "random" in Notepad++, select it and go to the ? -> "About Notepad++" menu. A new tab will appear where one quote will be typed out.

Re: CS quotes found while browsing Notepad++'s code

#82
post #60

Earlier quoted context omitted.

really gotta wonder if he really said it or its misattributed to him.

https://www.youtube.com/watch?v=cJMwBwFj5nQ At least he said that. Not sure if he was first to say that though.

There are some zen quotes and teachings that compare our minds to the contents of a cup vs the vessel (body). In Daoism you have the yin/yang aspects. Afaik The quote seems to be his.

Re: CS quotes found while browsing Notepad++'s code

#86
post #19

It's curious to see how these quotes add over time and how they progress from dad jokes to more sophisticated, event statements Empty your memory, with a free(), like a pointer.\nIf you cast a pointer to a integer, it becomes the integer.\nIf you cast a pointer to a struct, it becomes the struct.\nThe pointer can crash, and can overflow.\nBe a pointer my friend." or Freedom of expression is like the air we breathe, w…

The first one is based on a Bruce Lee quote :) > Empty your mind. Be formless, shapeless, like water. You put water into a cup; it becomes the cup. You put it into a teapot; it becomes the teapot. You put water into a bottle; it becomes the bottle. Now water can flow, or it can crash! Be water, my friend.

Sadly C and C++ have aliasing rules, so casting a pointer to another type is often UB instead of having the underlying memory take the form of the new type.

Re: CS quotes found while browsing Notepad++'s code

#87

Translations for the few quotes that are in French: > Je mange donc je chie. — Don Ho "I eat therefore I shit." It's a pun on René Descartes' "Je pense donc je suis" (I think, therefore I am). > Mathématiquement, un cocu est un entier qui partage sa moitié avec un tiers. "Mathematically, a cuckold is a whole who shares his half with a third [party]." > Si un jour une chaise te dit que t'as un joli cul, tu xtrouveras…

* Don Ho is the author of Notepad++.

Re: CS quotes found while browsing Notepad++'s code

#90
post #84

8272 lines of code in a single file. I guess you could talk about coding standards and code smells all day, but let's not. I'm impressed.

This is pretty common in the C world.

Look up the source code of common Unix utils, too, or a popular game...

LS [0], WolfensteinET (idtech3) [1]

[0] https://github.com/wertarbyte/coreutils/blob/master/src/ls.c

[1] https://github.com/etlegacy/etlegacy/blob/master/src/game/g_...

Post reply on HN