Earlier quoted context omitted.
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.
Hence it can flow, or it can crash!
CS quotes found while browsing Notepad++'s code
161–170 of 186 posts
Re: CS quotes found while browsing Notepad++'s code
#162Earlier quoted context omitted.
Sometimes it's OK to let loose and be a little immature. Life is short.
Some of the quotes are cancel-level inappropriate for 2022, though, so you may want to avoid promoting this topic in professional circles.
Re: CS quotes found while browsing Notepad++'s code
#163It'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.
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...
Re: CS quotes found while browsing Notepad++'s code
#164---
"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. "
Re: CS quotes found while browsing Notepad++'s code
#165I stumbled on this one before. Still one of my favorite quotes: --- "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 i…
Re: CS quotes found while browsing Notepad++'s code
#166Earlier 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.
Agreed. A certain amount of word–play is necessary for a happy and healthy life. Sadly I once worked on a team that didn’t understand this. 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 interes…
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 :)
Re: CS quotes found while browsing Notepad++'s code
#167Earlier quoted context omitted.
What line is it on?
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/... It's just the Space Invaders ASCII art. But fun, good times. :)
Re: CS quotes found while browsing Notepad++'s code
#168I stumbled on this one before. Still one of my favorite quotes: --- "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 i…
Re: CS quotes found while browsing Notepad++'s code
#169Re: CS quotes found while browsing Notepad++'s code
#170"Linkedin is basically a reversed Tinder.\nHot girls write to nerd guys and they didn't reply."