Live data from Hacker News

CS quotes found while browsing Notepad++'s code

github.com

111–120 of 186 posts

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

#111

Earlier quoted context omitted.

Coding is not a serious act for some of us. We play, we build, we create and have fun. This doesn’t mean what we code is low quality or hacky. But this requirement doesn’t exclude the permission to have fun. Sometimes a variable name, sometimes a hex value, sometimes a comment or Easter egg. Life is too short to be too serious about anything and everything. I write code since 1999 or so. I still have fun here and the…

Exactly! It makes no difference to the compiler what you call a variable, but it makes a difference to the human. Whenever I do a pandas dataframe melt, I name the variable "melted_cheese". I could just name it something plain/boring, but life is simplybetter with melted cheese.

I came across a council system for recording the holes that ultility companies dig in roads. Often a specific job would require several additional "associated" holes to be dug around the main one.

The programmer chose the filenames: "holes" and "assholes". kudos!

NB: This was MSDOS days when filenames could be a maximum of 8 characters.

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

#114
post #12

"The best things in life are free. Notepad++ is free. So Notepad++ is the best. " Logically incorrect. Maybe that is the joke. Should be: "The best things in life are free. Notepad++ is free. Therefore if something is not free, it cannot be one of the best things, or notepad++"

The joke is indeed the false syllogism: https://en.wikipedia.org/wiki/Syllogism#Syllogistic_fallacie... Well deduced!

It's also the cartesian ontological argument for the existence of God.

>The God is perfect.

>If the God did not exist it wouldn't be perfect.

>Therefore God must exist.

https://en.wikipedia.org/wiki/Ontological_argument#Ren%C3%A9...

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

#115

I guess with a C++ file this big, you need some humor to keep your sanity. Anyway, this one resonated with me: "vi has two modes - 'beep repeatedly' and 'break everything'" Here is another interesting one: "A cookie has no soul, it's just a cookie. But before it was milk and eggs. And in eggs there's the potential for life", Jean-Claude van Damme

I see this huge C++ file and I raise you a Java file that's so enormous github refuses to render it: https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/...

There’s one of those for C++ too, say hello to the .NET garbage collector: https://github.com/dotnet/runtime/blob/main/src/coreclr/gc/g...

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

#116

In C++ it's harder to shoot yourself in the foot, but when you do, you blow off your whole leg. Bjarne Stroustrup Is it though? I feel it's as easy to shoot my foot as to modify few lines of C++ code and get 200+ lines of STD error messages.

That's not shooting yourself in the foot, that's a compiler slapping you in the face for attempting to.

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

#119

Earlier quoted context omitted.

Exactly! It makes no difference to the compiler what you call a variable, but it makes a difference to the human. Whenever I do a pandas dataframe melt, I name the variable "melted_cheese". I could just name it something plain/boring, but life is simplybetter with melted cheese.

I came across a council system for recording the holes that ultility companies dig in roads. Often a specific job would require several additional "associated" holes to be dug around the main one. The programmer chose the filenames: "holes" and "assholes". kudos! NB: This was MSDOS days when filenames could be a maximum of 8 characters.

This is brilliant. I'm archiving this in my Folklore notes.

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

#120
post #30

I can't believe that I just created a few lines of C driver to print out the messages: Good programmers use Notepad++ to code. Extreme programmers use MS Word to code, in Comic Sans, center aligned. Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. Emacs is a great operating system, lacking only a decent editor. A good programmer is someone who always l…

[deleted]
Post reply on HN