14 ms·
CS quotes found while browsing Notepad++'s code
- kaptainscarlet 4y ago> The best things in life are free. > Notepad++ is free. > So Notepad++ is the best. I have never come accross a more valid argument. I, however, can't say the same about it's soundness XD
- callesgg 4y agoWe are missing a premise about whether Notepad++ is a thing in life.
- 2Gkashmiri 4y ago"Me: \"I'm 45 years old but I've got a 19 year-old young man's body\"\nHer: \"Show me\"\nI opened the freezer to show her the body.\nShe screamed.\nMe too.\n") } nice
- mitnk 4y agolol.. https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/Notepad_plus.cpp#L7323 https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
- fargle 4y agomade my day. some good old (and new) ones in there. where do they pop out in the GUI? and why the hell are there 7000+ lines in one file?
- shakna 4y agoMake a new file. Type the word, without quotes, "random" Highlight it. Click the ? menu. Click "About Notepad++".
- quickthrower2 4y agoPermalink: https://github.com/notepad-plus-plus/notepad-plus-plus/blob/e5708bf3ea3bf2c14bc3b2074d51515dae4ff567/PowerEditor/src/Notepad_plus.cpp#L7102 https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
- deleted 4y ago[deleted]
- divbzero 4y agoAdding #L7102 to the URL gets you straight to the quotes: https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/Notepad_plus.cpp#L7102 https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
- prvt 4y agoI added #L7102-L7368, but it disappeared automatically after I clicked submit.
- personjerry 4y agoYeah HN does that, screws up reddit comment links too.
- sillysaurusx 4y agoIt’s one of the most annoying features of HN. I’ve tried submitting GitHub comments to no avail, since it’s impossible to get a permalink to them.
- matkoniecz 4y agoI guess you could create redirect page redirecting to specific comment and submit that?
- fenomas 4y agoHN rewrites headline text by default, but if you edit and save afterwards it doesn't rewrite the second version. Maybe the same is true of the URL text?
- sillysaurusx 4y agoUnfortunately normal users can’t edit the url after submitting.
- manholio 4y ago
- gregjor 4y agoROTFL. Enough for ten standup routines in there. "Take my Surface Pro 3, PLEASE!" 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++.
- genocidicbunny 4y agoThe following wchar_t* wtf[] has an interesting tail string too.
- deleted 4y ago[deleted]
- divbzero 4y ago“To iterate is human, to recurse divine.”
- quickthrower2 4y ago"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++"
- rzzzt 4y agoThe joke is indeed the false syllogism: https://en.wikipedia.org/wiki/Syllogism#Syllogistic_fallacies https://en.wikipedia.org/wiki/Syllogism#Syllogistic_fallacie... Well deduced!
- yreg 4y agoIt'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_Descartes https://en.wikipedia.org/wiki/Ontological_argument#Ren%C3%A9...
- afiori 4y agoThe ontological argument is a valid deduction > 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,
- quickthrower2 4y agoSounds like proof by contradiction
- quickthrower2 4y agoAlso the definition of an alibi!
- dlivingston 4y ago
- UberFly 4y agoAlso related: https://grantwinney.com/the-nsfw-quotes-of-notepad-plus-plus/ https://grantwinney.com/the-nsfw-quotes-of-notepad-plus-plus...
- vincnetas 4y agoIt'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, 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
- user_ 4y agoThe 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.
- swyx 4y agoreally gotta wonder if he really said it or its misattributed to him.
- jmnicolas 4y ago>"Je mange donc je chie." 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.
- deleted 4y ago[deleted]
- nightski 4y agoSometimes it's OK to let loose and be a little immature. Life is short.
- eurasiantiger 4y agoSome of the quotes are cancel-level inappropriate for 2022, though, so you may want to avoid promoting this topic in professional circles.
- nvln 4y agoOne person's immaturity is another persons humor. 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.
- justanorherhack 4y ago
- prvt 4y agoTip: Use "shift + scroll" to read long quotes.
- kleiba 4y agoI can't seem to get this to work for me (Firefox on Windows).
- phito 4y agoIt sure does work for me, firefox on windows too.
- kleiba 4y agoReally?? Hmm, I wonder what's different on my setup then. Thanks for letting me know.
- rypskar 4y agoWorks on my Firefox on Windows, for shift + scroll focus need to be on the element you want to scroll. Arrow keys works even better
- MikePlacid 4y agoHow do I get Shift here? (Safari on iPad)
- therouwboat 4y agoI wish they would just use full width of my screen.
- tralarpa 4y ago1280 pixels. This is the width that should be enough for everyone according to github. (max-width in .container-xl. Why did they put that there? The website looks perfectly fine without it)
- deleted 4y ago[deleted]
- jll29 4y agoI 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 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.)
- raldi 4y agoWhat line is it on?
- recuter 4y agohttps://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/Notepad_plus.cpp#L7366 https://github.com/notepad-plus-plus/notepad-plus-plus/blob/... It's just the Space Invaders ASCII art. But fun, good times. :)
- raldi 4y agohttps://pastebin.com/raw/Vccu1vff https://pastebin.com/raw/Vccu1vff
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- I_complete_me 4y agoHad some fun with vim this morning... .||. .||||||. | | |°°° ||.||.|| | | |.. .°..°. | | | | ° ° ° ° °° °° °°°° °. .° .|°°° .|°°|. |°.°| |°°° .|°|||°|. | | | | ° | |.. | |°°°°°| | |. |. .| | | | °° °° °°°° °°°° ° ° °°°° ..|||||.. °|° |°. | ||°°|||°°|| | | °. | °°||°°°||°° | | °.| .|° °°° °|. °°° ° °° ..||||.. |°°| |°°° .°°. .|°°° |°°° .||||||||||. |..| |.. |..| | |.. .||.||.||.||.||. | | | | |. | °|° °° °|° ° °°°° ° ° °°°° °°°°
- rytis 4y ago> "Vidiu Platon": "I don't care if it works on your machine! We are not shipping your machine!" And now we have Docker :)
- makach 4y agoWhat functionality in Notepad++ triggers showing one of these quotes?
- svet_0 4y agoType random, select the word and click ? -> About Notepad++
- poglet 4y agoI recall a feature that would show a quote in a new document each time the application was opened. I'm not sure if This is the same quotes in the source. Unfortunately I couldn't find any information about this on Google but it was documented in one of the older change logs.
- rchard2scout 4y agoYes, it's an easter egg. Add -qn="random" to the Target in the shortcut you use to open Notepad++
- e-brake 4y agoImagining the shock when these show up in Codepilot auto suggestions..
- jwilk 4y agoIn a more legible format: https://gist.github.com/jwilk/2ff552b4f12ac758297cbb81b9991a00 https://gist.github.com/jwilk/2ff552b4f12ac758297cbb81b9991a...
- stavros 4y agoThank you for this, though I will recommend that next time you use something that wraps, as this view still doesn't work for phones (I have to keep scrolling left and right).
- dxyms 4y agoJust click on raw
- phantomread 4y agoIronically if you hit the “Raw” button near the top of the GitHub file view then the resulting plaintext is nicely wrapped on (my) mobile.
- stavros 4y agoOh excellent tip, thanks!
- jansan 4y agoThanks, another issue with the OP's link is that it is flickering wildly when scrolling on my machine.
- de_nied 4y ago# UNIX command line Russian roulette:[ $[ $RANDOM % 6 ] == 0 ] && rm -rf /* || echo *Click*
- CosmicBagel 4y agoOh great notepad of the lake, what is your wisdom? "Social media does not make people stupid. It just makes stupid people more visible."
- MikePlacid 4y ago“A good programmer is someone who always looks both ways before crossing a one-way street.” But… there is no any other way to cross a street… in Russia.
- anticapital 4y agoMy favourite one so far: > 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.
- tern 4y agoThis only makes sense from a naively individualist perspective. If no one ever made a billion dollars, so to speak, there would be no money at all.
- samb1729 4y ago> If no one ever made a billion dollars, so to speak, there would be no money at all. Could you please elaborate?
- afiori 4y agoThe amount of money/value/richness in the world is not constant. 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.
- mnsc 4y agoIt also makes sense from a marxist perspective. How billionaires/capitalists take the surplus value from manual labour and all that untrendy stuff.
- nurettin 4y agoIt is not trendy, because labour is not something that exists by itself in a vacuum.
- deleted 4y ago[deleted]
- abrookewood 4y agoHeh heh heh ... {TEXT("Elon Musk"), QuoteParams::rapid, false, SC_CP_UTF8, L_TEXT, TEXT("Don't set your password as your child's name.\nName your child after your password."
- mojifwisi 4y agoTranslations 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 ç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!
- eps 4y ago* Don Ho is the author of Notepad++.
- smitty1e 4y ago[Tiny bubbles of laughter go here]
- pablomalo 4y ago"comme un imbécile, je marche" has the double meaning of "I walk" / "I fall for it". A possible translation would be "And I, like an imbecile, go along with it".
- GuB-42 4y ago> > 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]." 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".
- Gentil 4y ago{TEXT("Anonymous #136"), QuoteParams::rapid, true, SC_CP_UTF8, L_TEXT, TEXT("Documentation is like sex:\nwhen it's good, it's very, very good;\nwhen it's bad, it's better than nothing.")}, Damn you Anonymous #136!!!!!!!
- vodou 4y ago8272 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.
- winrid 4y agoThis 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 https://github.com/wertarbyte/coreutils/blob/master/src/ls.c [1] https://github.com/etlegacy/etlegacy/blob/master/src/game/g_main.c https://github.com/etlegacy/etlegacy/blob/master/src/game/g_...
- stargrazer 4y agosqlite has the option of a single file build. They found that the compiler can optimize best within one compilation unit.
- bluelightning2k 4y ago"Knock knock "Race condition\" "Who's there? - Brilliant!
- taink 4y agoIn the same vein: A programmer had a problem, so he decided to use threads. Now 2 has. He problems
- thomasjudge 4y agoYour local pedant feels compelled to share that this is a paraphrase of a quote from JWZ on regular expressions, which in turn credits back to a quote from someone named D Tilbrook on awk https://news.ycombinator.com/item?id=10997140 https://news.ycombinator.com/item?id=10997140
- a_e_k 4y agoI've also seen this variant: Why did the multi-threaded chicken cross the road? other side. to the To get
- raydiatian 4y ago> “ If I'm the Father of Open Source, it was conceived through artificial insemination using stolen sperm without my knowledge or consent” “You take the red pill an-“ “No thanks, Morpheus old pal! I’m off the meds for good! To Jupiter!!”
- kramerger 4y agoI 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
- grishka 4y agoI 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/src/main/java/org/telegram/ui/ChatActivity.java https://github.com/DrKLO/Telegram/blob/master/TMessagesProj/...
- shepherdjerred 4y ago> public class ChatActivity extends BaseFragment implements NotificationCenter.NotificationCenterDelegate, DialogsActivity.DialogsActivityDelegate, LocationActivity.LocationActivityDelegate, ChatAttachAlertDocumentLayout.DocumentSelectActivityDelegate, FragmentContextView.ChatActivityInterface, FloatingDebugProvider Someone call a priest
- selfmodruntime 4y agoThis is past a priest. It looks more like a job for John Constantine
- HeckFeck 4y agoFor a second I thought we'd entered the realm of the truly cursed, known as "Multiple Inheritance". Then I saw the subtle 'implements', which brought immediate repose to my soul.
- jdporter 4y agoomg, this is primo java trolling. at least, I think you're being sarcastic...
- leogout 4y agoThe one before the last is ascii art (I hope the formatting doesn't get messed up, sorry if it does). EDIT : It actually does, so here is a screenshot instead : https://ibb.co/Kr67DHk https://ibb.co/Kr67DHk
- jvik 4y ago[flagged]
- POPOSYS 4y agoIsn´t it a very obvious thing to get the idea that the information of this site should not be hidden inside an ancient three-column design that resembles the antique NukeCMS (PHP)? 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"?
- jrimbault 4y agoAre you talking about news.ycombinator.com ? 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.
- kroltan 4y agoNo, they are talking about GitHub's website, which wastes a lot of horizontal space only to then show a horizontal scrollbar within the content: https://i.imgur.com/HkgCq98.png 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 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.
- eimrine 4y agoThank you for giving a link with these quotes, I haven't seen it before I tried to open link from your screenshot. BTW I do not see no issues: https://imgur.com/a/2Kq4K4r https://imgur.com/a/2Kq4K4r
- lemursage 4y agoI actually tested a bunch of those on GH Copilot -- sure enough, it does autocomplete certain prompts. No wonder, some are probably known quotes. Anyway, when I'm feeling down in my VSCode environment, I enter some random prompts in search of a pun. Most of the time it's just random rambling but hey: # (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.
- ki_ 4y ago> Should array index start at 0 or 1? My compromised solution is 0.5 i like this one, it puts a nice perspective on compromises.
- hamasho 4y agoIn 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.
- boris 4y agoThat's not shooting yourself in the foot, that's a compiler slapping you in the face for attempting to.
- throwaway2037 4y agoDid you ever read the infamous fake interview? It always makes me laugh. Ref: https://www-users.cs.york.ac.uk/susan/joke/cpp.htm https://www-users.cs.york.ac.uk/susan/joke/cpp.htm
- bitL 4y agoCompare it to C and Assembly language at the time C++ was first written...
- deleted 4y ago[deleted]
- joesix 4y ago
- Uptrenda 4y ago>8k lines in a single file >mfw
- dschuetz 4y agoActually, this is a great idea. I also would like the idea to compile some quotes and puns into binaries.
- dylan604 4y agoit's always fun to use the strings command on binaries just to see if there's humor to be found
- knutwannheden 4y agoWould be interesting to see what GitHub Copilot makes of this.
- emeril 4y ago"Linkedin is basically a reversed Tinder.\nHot girls write to nerd guys and they didn't reply."
- hulitu 4y agoDamn, this is so right.
- simmons 4y agoThat's great, and it's not all CS quotes. It reminds me of the quotes from the old UNIX fortune program [1] that many systems or accounts would be configured to use to show a quote on each login. [1] https://en.wikipedia.org/wiki/Fortune_(Unix) https://en.wikipedia.org/wiki/Fortune_(Unix) https://github.com/bmc/fortunes/blob/master/fortunes https://github.com/bmc/fortunes/blob/master/fortunes
- bitL 4y agoElon should have talked to Bill Gates before firing half of Twitter: "Measuring programming progress by lines of code is like measuring aircraft building progress by weight."
- Ericson2314 4y agoI kinda miss Notepad++. Or rather, I miss the OS having a unified look and feel, and Notepad++ being a great editor within the constraints of a unified look and feel.
- johnthuss 4y ago“Your mother is so fat, the recursive function computing her mass causes a stack overflow.”
- Mr_Modulo 4y agoI'm a Notepad++ user and I'm not a fan of some of these quotes. I wonder if someone has already made a cleaned up version of Notepad++. I would certainly be interested in that.
- an1sotropy 4y agoKind of niche and specific to X11, but one my favorite quotes is from jwz [1]: "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-comparing-the-guis https://slashdot.org/story/99/08/04/2242224/ask-slashdot-com...
- daveslash 4y agoAn old favorite of mine is the exception message "God Damned Exception" [0] 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/master/PowerEditor/src/winmain.cpp#L750 https://github.com/notepad-plus-plus/notepad-plus-plus/blob/...
- Karawebnetwork 4y agoI 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 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. "
- kingofpandora 4y agoI wish I could go back in time and tell you that "Time flies like an arrow, and fruit flies like a banana."
- raldi 4y agoAn apple is Maryland.
- pipeline_peak 4y agoIf I'm ever using Notepad++ at work, I'm probably not doing noble work. That being said, it's one of the best tools for those type of jobs.