CS quotes found while browsing Notepad++'s code
github.com
github.com
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, we don't feel it, until people take it away from us.\n\nFor this reason, Je suis Charlie, not because I endorse everything they published, but because I cherish the right to speak out freely without risk even when it offends others.\nAnd no, you cannot just take someone's life for whatever he/she expressed.\n\nHence this \"Je suis Charlie\" edition.\n> 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.
https://www.taoistic.com/taoteching-laotzu/taoteching-08.htm
There's also a really good and short Ted Talk on it: https://www.ted.com/talks/raymond_tang_be_humble_and_other_l...
At least he said that. Not sure if he was first to say that though.
Apparently when his martial arts teacher told him he was too forceful, to be more like water, and then banned him from practicing until he understood. Short story, he went on a boat ride, got angry, started punching the river, then he got that aha moment.
Bruce Lee was actually a really wise dude. I also highly recommend the podcast.
---
"Francis bacon"
"Knowledge is power. France is bacon.
When I was young my father said to me: "Knowledge is power, Francis Bacon." I understood it as "Knowledge is power, France is bacon."
For more than a decade I wondered over the meaning of the second part and what was the surreal linkage between the two. If I said the quote to someone, "Knowledge is power, France is Bacon", they nodded knowingly. Or someone might say, "Knowledge is power" and I'd finish the quote "France is Bacon" and they wouldn't look at me like I'd said something very odd, but thoughtfully agree. I did ask a teacher what did "Knowledge is power, France is bacon" mean and got a full 10-minute explanation of the "knowledge is power" bit but nothing on "France is bacon". When I prompted further explanation by saying "France is bacon?" in a questioning tone I just got a "yes". At 12 I didn't have the confidence to press it further. I just accepted it as something I'd never understand.
It wasn't until years later I saw it written down that the penny dropped. "
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
Someone call a priest
Then I saw the subtle 'implements', which brought immediate repose to my soul.
IIRC they cited performance reasons when compiling the compiler for the decision not to split the file up, but I could be wrong on this.
https://gist.github.com/jwilk/2ff552b4f12ac758297cbb81b9991a...
Damn you Anonymous #136!!!!!!!
And now we have Docker :)
# (prompt: my dog ...) seems to be interested in the plot.
# I wonder what the dog is thinking about.
# Probably about the food.
# I should feed him.
under some code where I was plotting a forecast.
"Social media does not make people stupid. It just makes stupid people more visible."
> No one ever makes a billion dollars.
> You TAKE a billion dollars.
Quite relevant to the vulture capitalists and their fans who frequent this site.
Could you please elaborate?
Suppose we all lived on an island in a completely stable economy valued somehow at 1 trillion dollars.
Then imagine that a dozen or so explorers went to another island and started a completely independent economy that (after some centuries) gets also valued at 1 trillion dollars.
The latter billion dollar was created at the meager cost of a boat and the life work of some people.
This is a horrible analogy for anything that ever happened, but it is something that could possibly happen.
Maintaining a stable, accepted currency however, is quite hard and so is providing enough value for others, that they give you a billion dollars of a stable, accepted currency ...
If no one ever made 10^100 dollars, there would be no money at all.
So ... there is no money?
> 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 ça bizarre mais c'est juste un compliment d'objet direct.
"If some day a chair tells you you have a pretty ass, you'll find that weird but it's just a direct object compliment." It's a pun on "complément d'objet direct" (the object that is put directly after a transitive verb), intentionally being misspelled as "compliment d'objet direct" to mean that it's a direct compliment from an object.
> Mon pied droit est jaloux de mon pied gauche. Quand l'un avance, l'autre veut le dépasser. Et moi, comme un imbécile, je marche ! — Raymond Devos
"My right foot is jealous of my left foot. When one goes forward, the other wants to overtake it. And I, like an imbecile, I'm walking!
> "Mathematically, a cuckold is a whole who shares his half with a third [party]."
In French "moitié", which means "half", is also slang for "spouse" (or girlfriend, significant other, etc... you get the idea). "tiers" indeed means "third" or "third party".
"entier" means "integer" in a mathematical sense, but more generally, it means "whole", and by extension, "uncastrated".
So "un entier qui partage sa moitié avec un tiers" can be loosely translated as "an (uncastrated) man who shares his girlfriend with a third party" in addition to the mathematical meaning of "an integer that shares its half with a third".
- Brilliant!
A programmer had a problem, so he decided to use threads.
Now 2 has. He problemsWhy did the multi-threaded chicken cross the road?
other side. to the To get
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.I have never come accross a more valid argument. I, however, can't say the same about it's soundness XD
# UNIX command line Russian roulette:[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /* || echo *Click*But… there is no any other way to cross a street… in Russia.
nice
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++"
Well deduced!
>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...
> A, B implies not A thus not B
The problem is that you have to prove both A and (B implies not A), without self referentially assuming it in the first place,
[1] https://en.wikipedia.org/wiki/Fortune_(Unix) https://github.com/bmc/fortunes/blob/master/fortunes
i like this one, it puts a nice perspective on compromises.
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 looks both ways before crossing a one-way street.
Life is too short to remove USB safely.
I would rather check my facebook than face my checkbook.
How do you generate a random string? A: Put a Windows user in front of vi, and tell him to exit.
...
(One of my favourites is an alien message missing here due to HN's filtering of non-letters.)
.||.
.||||||. | | |°°°
||.||.|| | | |..
.°..°. | | | |
° ° ° ° °° °° °°°°
°. .° .|°°° .|°°|. |°.°| |°°°
.|°|||°|. | | | | ° | |..
| |°°°°°| | |. |. .| | | |
°° °° °°°° °°°° ° ° °°°°
..|||||.. °|° |°. |
||°°|||°°|| | | °. |
°°||°°°||°° | | °.|
.|° °°° °|. °°° ° °°
..||||.. |°°| |°°° .°°. .|°°° |°°°
.||||||||||. |..| |.. |..| | |..
.||.||.||.||.||. | | | | |. |
°|° °° °|° ° °°°° ° ° °°°° °°°°It's just the Space Invaders ASCII art. But fun, good times. :)
I stumbled across it in 2007, the day after Windows Vista was released. I installed Windows Vista, and the first thing that I installed was Notepad++. Shortly thereafter, I got a popup "God Damned Exception", but it wasn't immediately clear what application was raising it. I thought it was humorous to entertain the possibility that Vista had been released with this oversight. But... notepad++ was the only thing installed that was not Vanilla out-of-the-box Vista, so I searched through the notepad++ source to find/confirm it. It's been a favorite of mine ever since.
[0] https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
The only funny thing about that code is that someone took the time to type in hundreds of "funny" and "inspirational" quotes into the source code, gone to die in the depths of Notepad++.
(max-width in .container-xl. Why did they put that there? The website looks perfectly fine without it)
"X is slow because of the separation of servers and clients, i.e., the client-server model, i.e., its network capacity. It doesn't matter that it uses shared segments in the degenerate case -- it still takes a dozen context-switches amongst three different processes before an X client can even pick its nose."
[1] https://slashdot.org/story/99/08/04/2242224/ask-slashdot-com...
Unfortunately I couldn't find any information about this on Google but it was documented in one of the older change logs.
“You take the red pill an-“
“No thanks, Morpheus old pal! I’m off the meds for good! To Jupiter!!”
Why is the most important coder website build in a way that hides information so hard?
What purpose do the left and right column with empty space serve?
Once I used to install some user css to get 100% width for the content, but I got tired to do that.
How can such a design dinosaur survive for so long right in the center of "modern development tools"?
If you are, it's because this is not « the center of "modern development tools" ». It's a textboard and it serves that purpose well.
And this is completely off topic.
https://i.imgur.com/HkgCq98.png
If it did not explicitly set a max width, then the code would be much more convenient to read: https://i.imgur.com/hxoHJHM.png
It's a critique of overarching design consistency trumping actual usability.
---
Though to be fair it is still against the guidelines:
> Please don't complain about tangential annoyances—e.g. article or website formats, name collisions, or back-button breakage. They're too common to be interesting.
I guess you could talk about coding standards and code smells all day, but let's not. I'm impressed.
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_...
where do they pop out in the GUI?
and why the hell are there 7000+ lines in one file?
Type the word, without quotes, "random"
Highlight it.
Click the ? menu.
Click "About Notepad++".
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
Roughly : "I eat therefore I shit"
I never understood devs that do this, it reflects very poorly on them and it doesn't bring anything to the table. Way to show your immaturity.
I write code since 2006, 99% of it is private and is mostly read by me and I still don't do this.
Not sure about the author, but programming is most often a lonely exercise with alternating bouts of creativity and tedium. Comments like these bring out the humanity.
I love these comments. It would really make my day if I found those when trying to fix a bug a few years later.
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 there.
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 had been given the task to add an insignificant feature to a minor subsystem, and by chance the first two methods I added to my class had names that started with the letter A. I had to “ask” the user for confirmation, and I had to “authenticate” a widget. To keep myself interested, I pushed myself to continue the trend. I needed names for about six or eight methods, and the last two were the hardest. I had to lock some files to deny anyone permission to read them, and I had to record the actions taken in a database. I had the implementations written and tested, I just needed good names.
I ended up with the names “afsluiten” (literally “off–close”, or “to close off”) and “αναγράφω” (“anagrapho”, to inscribe, record, or publish). I laughed so much when I found both of them. They were perfect! I committed, pushed to a branch, wrote up a pull request, and then started a two–week vacation the next morning.
I anticipated that on my return we would all laugh at these funny names in our weekly meeting, that the team lead would request that I rename these two methods, and that I would then push to master with English names. Instead, I had a meeting with HR and the VP of Engineering about how I was mocking them, disrespecting their work, how unprofessional it was, and on and on and on. Apparently the team had been stewing on this “insult” for the whole two weeks, making it worse and worse in their minds.
I was rather sad when they fired me, but I have been so much better off ever since; the people I work with now actually know what humor is, and how to play. They can even express admiration and wonder when someone does something clever or slick. It’s like night and day.
I deeply appreciate that level of wordplay though! Glad it worked out for you in the end, and I hope you have continued to express true creativity in your code :)
The programmer chose the filenames: "holes" and "assholes". kudos!
NB: This was MSDOS days when filenames could be a maximum of 8 characters.
and author of Notepad++ made an open-source project used on a massive scale
(none is obligated it to work on open source, but I consider it admirable and praiseworthy, especially if someone is doing it successfully and helping many other people)
> it reflects very poorly on them
why?
Being uptight about it doesn't reflect super well on you either IMO.
Being able to joke is a sign of maturity. Some people loose this ability when they become adults.
we must cancel the cancel people.
Time to get back what is ours.
And keep the kids in safe spaces if they can't play outside.
This kind of humour is fine to see in passing on HN, but I'd be furious if someone put it in my production code.
Succeed? Have a personality?
My code is littered with expletives...