subreddit stringclasses 7
values | author stringlengths 3 20 | id stringlengths 5 7 | content stringlengths 67 30.4k | score int64 0 140k |
|---|---|---|---|---|
programmerhumor | maowai | iyku1k2 | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>People will generally be more impressed with a pretty UI.
However, Ill take an ugly as shit site that actually works any day, so long as its just ugly, not unusable.<|eor|><|sor|>The cutesy Google Home app animations and smooth interactions just send me into a fury after the 4th failure to add my device or after discovering that I need to factory reset my thermostat to change the wifi network.<|eor|><|eols|><|endoftext|> | 1,009 |
programmerhumor | RagnarokAeon | iyl5twv | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>bad back end will get you sued more often than bad front end<|eor|><|soopr|>ooof. Good point.<|eoopr|><|sor|>[removed]<|eor|><|sor|>At least with front, you *might* even be able to convince the users that it's their own fault.<|eor|><|eols|><|endoftext|> | 671 |
programmerhumor | son_of_abe | iyl21tw | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>People will generally be more impressed with a pretty UI.
However, Ill take an ugly as shit site that actually works any day, so long as its just ugly, not unusable.<|eor|><|sor|>The cutesy Google Home app animations and smooth interactions just send me into a fury after the 4th failure to add my device or after discovering that I need to factory reset my thermostat to change the wifi network.<|eor|><|sor|>Damn. This really highlights how deceptive a good front end can be.
Google Home is ALWAYS a headache to deal with. It practically never works with my home devices... but because it *looks* nice, it hadn't quite registered as a shit app in my mind until you spelled this out.
I'm a dumb user.<|eor|><|eols|><|endoftext|> | 470 |
programmerhumor | ThoriatedFlash | iyk9dkj | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>I've been around long enough where a awful looking website doesn't bother me. I'll take good backend with shitty front end any day.<|eor|><|eols|><|endoftext|> | 460 |
programmerhumor | BlurredSight | iyksn6j | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>You can make a bad frontend good, but making a bad backend good.. well good luck.<|eor|><|sor|>Depends on context, bad frontend like being the main software at a retail company for workers to use day to day oh well.
Bad frontend for an eCommerce website, yeah you're actively losing customers even if the backend is a bit fucky wucky like being really slow at processing payments or whatever.<|eor|><|eols|><|endoftext|> | 387 |
programmerhumor | jdbrew | iyklupk | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>bad back end will get you sued more often than bad front end<|eor|><|sor|>ADA has entered the chat<|eor|><|eols|><|endoftext|> | 342 |
programmerhumor | DynamicHunter | iylb3ce | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>bad back end will get you sued more often than bad front end<|eor|><|soopr|>ooof. Good point.<|eoopr|><|sor|>[removed]<|eor|><|sor|>At least with front, you *might* even be able to convince the users that it's their own fault.<|eor|><|sor|>It works on my machine<|eor|><|eols|><|endoftext|> | 333 |
programmerhumor | jdbrew | iyks3k0 | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>bad back end will get you sued more often than bad front end<|eor|><|sor|>ADA has entered the chat<|eor|><|sor|>Seriously... there are lawyers who just troll company websites looking for missing ALT tags so they can file suit and milk the company.<|eor|><|sor|>We got sued for it. I had a paper trail showing compliance going back of three years of annual audits and validated remediation changes. The plaintiffs lawyer consulted with a professional who agreed, we were fine and shouldnt be sued, and the plaintiffs lawyer said youre right, youve done nothing wrong, we still want a 15k settlement to go away. And we paid it, because taking him to court and proving were right would likely cost at least 10x what the settlement was. Our lawyers estimated closer to 20x
Edit: oh yeah, and the plaintiff, I googled him, his name was attached to hundreds of ADA lawsuits in NY, most of them all settled out of court. Dude was probably making millions a year in settlements over bogus ADA claims because fighting it is expensive. Legalized extortion.<|eor|><|eols|><|endoftext|> | 298 |
programmerhumor | AskMeHowIMetYourMom | iyl5tgv | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>bad back end will get you sued more often than bad front end<|eor|><|soopr|>ooof. Good point.<|eoopr|><|sor|>[removed]<|eor|><|sor|>These websites are just like me<|eor|><|eols|><|endoftext|> | 297 |
programmerhumor | __DJ3D__ | iykmj1e | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>All I see are the two kinds of full stack devs<|eor|><|sor|>Inside you there are two full stack devs<|eor|><|sor|>Please be gentle it's my first time doing backend and front end at the same time<|eor|><|sor|>
here, you deserve this<|eor|><|eols|><|endoftext|> | 293 |
programmerhumor | Scientater2265 | iyki5qx | <|sols|><|sot|>Which is worse?<|eot|><|sol|>https://i.redd.it/nkge9gp22f3a1.jpg<|eol|><|sor|>Bad front scare the users but at least it's functional<|eor|><|sor|>In genomics research, I trust the purely-HTML website more than the fancy ones. Thats how you know the info is coming straight from the person who discovered it! They have no time for your fancy cacascript and flashy buttons.
Edit: It also makes using ctrl-f easier, no sidebars for the string to be hiding in.<|eor|><|eols|><|endoftext|> | 273 |
programmerhumor | shah2018 | wk8vzs | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|eols|><|endoftext|> | 32,408 |
programmerhumor | the_ricktacular_mort | ijm7qxb | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>A programmer opens a confluence page and sees it was last edited in 2015, and you think that is me??? No. I am the one with the last edit!!!<|eor|><|eols|><|endoftext|> | 1,326 |
programmerhumor | BetterOffCamping | ijme8p3 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Unfortunately, it's either that, or the guy who understood that left last year.
Or, almost as useful, a 590 page design document last edited 4 years ago. On an active project.<|eor|><|eols|><|endoftext|> | 861 |
programmerhumor | Chewnard | ijm2qr3 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>...and if you ever need any of said documentation, I will have my headphones on so do not bother me ever. Best of luck!<|eor|><|eols|><|endoftext|> | 678 |
programmerhumor | LeoTheBirb | ijmezhp | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Me: "Where is the documentation?"
"It's on Sharepoint"
Me: "Where on sharepoint?"
"........."<|eor|><|eols|><|endoftext|> | 496 |
programmerhumor | lockerofmeat | ijm3dg5 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>This happened to me the other week, "...unfortunately for you, I am the documentation"<|eor|><|eols|><|endoftext|> | 286 |
programmerhumor | Hour-Invite2212 | ijlvun7 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>I am the one who merges!<|eor|><|eols|><|endoftext|> | 243 |
programmerhumor | lord_of_networks | ijmfza8 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Me: "Where is the documentation?"
"It's on Sharepoint"
Me: "Where on sharepoint?"
"........."<|eor|><|sor|>Isn't sharepoint just /dev/null for windows enviorments? Does anyone accually have proof sharepoint keeps the data you upload, since no one is able to find anything that alegely is on sharepoint<|eor|><|eols|><|endoftext|> | 238 |
programmerhumor | Feldar | ijmqdwh | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>A programmer opens a confluence page and sees it was last edited in 2015, and you think that is me??? No. I am the one with the last edit!!!<|eor|><|sor|>"Wait, the last person to edit this was me?"<|eor|><|eols|><|endoftext|> | 199 |
programmerhumor | Lizard_King_5 | ijn1jsv | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Unfortunately, it's either that, or the guy who understood that left last year.
Or, almost as useful, a 590 page design document last edited 4 years ago. On an active project.<|eor|><|sor|>The 2nd option is the guy who understood everything but left 4 years ago<|eor|><|eols|><|endoftext|> | 197 |
programmerhumor | cubs_rule23 | ijmc9a9 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>My position was absorbed yesterday and today they are reaching out for help. This is glorious timing to come across such a relatable meme.<|eor|><|eols|><|endoftext|> | 185 |
programmerhumor | EuphoricAnalCucumber | ijn3i3k | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>This happened to me the other week, "...unfortunately for you, I am the documentation"<|eor|><|sor|>It's called job security.
(Literally had a guy tell me this)<|eor|><|eols|><|endoftext|> | 183 |
programmerhumor | jb28737 | ijmg261 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>My position was absorbed yesterday and today they are reaching out for help. This is glorious timing to come across such a relatable meme.<|eor|><|sor|>"my contracting rates are 500/hr, minimum billable hours 35"<|eor|><|eols|><|endoftext|> | 143 |
programmerhumor | LeoTheBirb | ijmhrxh | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Me: "Where is the documentation?"
"It's on Sharepoint"
Me: "Where on sharepoint?"
"........."<|eor|><|sor|>Isn't sharepoint just /dev/null for windows enviorments? Does anyone accually have proof sharepoint keeps the data you upload, since no one is able to find anything that alegely is on sharepoint<|eor|><|sor|>Nobody truly knows. The void giveth, the void taketh.<|eor|><|eols|><|endoftext|> | 143 |
programmerhumor | technobrendo | ijnbq5i | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>A programmer opens a confluence page and sees it was last edited in 2015, and you think that is me??? No. I am the one with the last edit!!!<|eor|><|sor|>"Wait, the last person to edit this was me?"<|eor|><|sor|>Last edit: Jan 1 1970
...*oh lawd.*<|eor|><|eols|><|endoftext|> | 142 |
programmerhumor | Dave5876 | ijmhaad | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>A programmer opens a confluence page and sees it was last edited in 2015, and you think that is me??? No. I am the one with the last edit!!!<|eor|><|sor|>And that page? Albert Einstein<|eor|><|eols|><|endoftext|> | 128 |
programmerhumor | vhite | ijmts22 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>A programmer opens a confluence page and sees it was last edited in 2015, and you think that is me??? No. I am the one with the last edit!!!<|eor|><|sor|>This is literally what I get out of Confluence every time I try to use it. If I find something related to the module or feature I'm trying to learn about, at best it will be by someone from marketing team or user documentaion, telling me absolutely nothing about how things works in code.<|eor|><|eols|><|endoftext|> | 125 |
programmerhumor | shawnadelic | ijnix3b | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Unfortunately, it's either that, or the guy who understood that left last year.
Or, almost as useful, a 590 page design document last edited 4 years ago. On an active project.<|eor|><|sor|>The 2nd option is the guy who understood everything but left 4 years ago<|eor|><|sor|>It's like being an archeologist, combing through Git commit history and outdated documentation to try to piece together some semblance of understanding of how the system works and why it was built the way it was.
"Who were you, previous dev, and *why* did you decide to implement an overly complex microservices framework when a monolith would have been far more practical for this use case? Is there something important that I'm missing?"<|eor|><|eols|><|endoftext|> | 116 |
programmerhumor | John-1-1-7 | ijmzzg9 | <|sols|><|sot|>Look at me<|eot|><|sol|>https://i.redd.it/s0jyv0jq0qg91.jpg<|eol|><|sor|>Im about to quit my job because because Ive been a junior engineer with 5 years of experience at the same company now. Theres new management and in their words Im a junior and I dont have enough YOE to qualify for a promotion. But when it comes to Hey how do we do this? I know lets ask John-1-1-7 because hes the senior most resource!. None of my other contract engineers are bothered to even understand the code base even though they make 50% more than me. I got a new offer that earns me 113% more and am just waiting on some paperwork to come through before I hand in my papers. Then imma put a lawn chair out, sip margarita and watch the fireworks as everything falls apart. OH and the entire CI/CD pipeline was designed/implemented by me and uses my account since the ticket to give me unique credentials for it has been in backlog for 1 year now. The day I leave the whole deployment process comes crashing down :) . Its going to be fun to watch those senior engineers struggle to fix it.<|eor|><|eols|><|endoftext|> | 105 |
programmerhumor | odosuki | f0uhyo | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|eols|><|endoftext|> | 32,392 |
programmerhumor | force73 | fgyx80q | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|eols|><|endoftext|> | 801 |
programmerhumor | LimoenRoodsteen | fgz24hm | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|eols|><|endoftext|> | 765 |
programmerhumor | TheFeshy | fgz2ako | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|sor|>Oh no, it's in thousands of files. *Thousands*. They're just all interdependent.<|eor|><|eols|><|endoftext|> | 415 |
programmerhumor | speed3_driver | fgza48r | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>*Opens frmMain.cs in designer view*
Hmm, ok. About 4 controls. Not too bad.
*opens frmMain.cs in code view*
7,500 lines of code<|eor|><|eols|><|endoftext|> | 369 |
programmerhumor | MyOtherLoginIsSecret | fgzpykf | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|sor|>Oh no, it's in thousands of files. *Thousands*. They're just all interdependent.<|eor|><|sor|>This guy nodes.<|eor|><|eols|><|endoftext|> | 200 |
programmerhumor | goldenjuicebox | fgzgp5b | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>*Opens frmMain.cs in designer view*
Hmm, ok. About 4 controls. Not too bad.
*opens frmMain.cs in code view*
7,500 lines of code<|eor|><|sor|>dont make me think of Monday already<|eor|><|eols|><|endoftext|> | 199 |
programmerhumor | mardiros | fgz7i25 | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>"I call it the onion architecture, as it had lots of layers and made me cry when we had to cut through it."
Building Microservices, by Sam Newman<|eor|><|eols|><|endoftext|> | 158 |
programmerhumor | pocketMagician | fgzdayl | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Until you realize halfway through peeling that its an avocado with onion petals glued onto it. And it rattles.<|eor|><|eols|><|endoftext|> | 126 |
programmerhumor | gjvnq1 | fgz7a3x | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Also true for users. The more you use any piece of software, the more you will see how garbage it is.<|eor|><|eols|><|endoftext|> | 116 |
programmerhumor | jack_skellington | fgzvgbu | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>So, I discovered something the other day, and it gave me the sads.
I was trying to track down email addresses stored in our system. For the most part, it's pretty easy to understand the storage; it's just simple database tables with stuff tied to IDs in basic ways. If you pull a set of results, you just loop over the results and print stuff. Easy.
But on one Web page, I couldn't find where these email addresses were coming from. I went into the "view" of the page to find the token that was being printed, and there was a HUGE pile of code. You shouldn't have code in the view, so that was odd. But even more odd, there was no loop printing the email. Instead, there was a loop inside a loop, inside a loop. I got queasy. Somehow, there needed to be this "unraveling" of the data in order to find the email and print it. I triple-read the code just to be sure I understood. The sinking feeling: unlabeled JSON fields nested into a single record in the table.
With dread, I pulled up the table. I wanted desperately to see a users table with a 1:1 representation of users to records, and then a separate table with many emails per user, each tied to the user's ID. A nice one-to-many setup. Instead, inside the users table was a field called "data." It was a long text field -- any data you wanted to store, in any format. Store a novel, store a phone number, store anything. Inside that field, a complex array of JSON data, regimented somehow, so you could loop over it, but it was storing a lot of different stuff, so to get an email you had to not only loop through until you got to the number that meant "everything in here is email" but then you had to loop again because there were multiple email addresses inside, along with multiple notes about each, such as "this one is for work," and "this one is personal," and "this one is the primary account."
I now have to write a script that will pull all of that out, sort it, get it into a proper relational array type structure, and then dump it all into proper tables with proper relationships. The big problem right now is *I don't know what the other fields that are not email-related are for.* I'm going to have to crawl through the code, looking for each place where giant nested loops are happening in relation to this table, and reverse-engineer what everything means.
The developer who did this was let go a long time ago, but I did see this person socially at one point, and asked about it. This developer beamed with pride and said that it was an amazing discovery -- a trick that lets you associate multiple things with a single record.
Kill me.<|eor|><|eols|><|endoftext|> | 97 |
programmerhumor | Davraine | fgz9du9 | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|sor|>*in one function<|eor|><|eols|><|endoftext|> | 82 |
programmerhumor | Famous_Profile | fgzgi1p | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|># AbstractOnionFactoryBuilderStrategy.java<|eor|><|eols|><|endoftext|> | 60 |
programmerhumor | Coachqandtybo2 | fgzelpc | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|sor|>*in one function<|eor|><|sor|>The main function with a bunch of smaller `std::function`s that are only used recursively<|eor|><|eols|><|endoftext|> | 58 |
programmerhumor | MyOtherLoginIsSecret | fgzqskv | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Also true for users. The more you use any piece of software, the more you will see how garbage it is.<|eor|><|sor|>Yeah, but who cares about what users think?<|eor|><|eols|><|endoftext|> | 55 |
programmerhumor | AbstinenceWorks | fgzllhm | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Yeah, when my old company hired a new head of development, one day early on, he suggested we make a modification to our database layer to implement feature X. I looked at him and asked rhetorically, "What's a database layer?" He was probably wondering what he walked into.<|eor|><|eols|><|endoftext|> | 53 |
programmerhumor | Coachqandtybo2 | fgzqinm | <|sols|><|sot|>Pretty layers of encapsulation<|eot|><|sol|>https://i.redd.it/pw0d6vt0hqf41.jpg<|eol|><|sor|>Wait, you guys do layers?<|eor|><|sor|>Front and backend in one file gang<|eor|><|sor|>*in one function<|eor|><|sor|>One HTML file with one <script> tag with one function that does database communication on the front end.<|eor|><|sor|>the one function is called in a `while(true){...}` loop and the <script> tag is located in the <head> tag so it always loads asynchronously and only works every 1/10 tries because there's no <body> onload check<|eor|><|eols|><|endoftext|> | 44 |
programmerhumor | RebellionAllStar | v34hef | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|eols|><|endoftext|> | 32,367 |
programmerhumor | coffeewithalex | iaw3z5k | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|eols|><|endoftext|> | 1,226 |
programmerhumor | jwkdjslzkkfkei3838rk | iaw7mq9 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>retype three characters or press up 27 times? Easy choice.<|eor|><|eols|><|endoftext|> | 382 |
programmerhumor | daniu | iax1u5v | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>Yep, history grep is my go-to<|eor|><|sor|>In case someone doesn't know: you don't need to copy/paste the resulting command, the "event" number is enough:
\> history | grep git
> 495 git status
> 496 git push
\> !495
> git status
> ...<|eor|><|eols|><|endoftext|> | 240 |
programmerhumor | Automatic-Choice-794 | iaws5ck | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>Yep, history grep is my go-to<|eor|><|eols|><|endoftext|> | 221 |
programmerhumor | OpalescentLizard | iawoxtp | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>retype three characters or press up 27 times? Easy choice.<|eor|><|sor|>True, super easy! I'd take press up 27 times any day!<|eor|><|eols|><|endoftext|> | 122 |
programmerhumor | Quinnermenner | iaw4113 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>ctrl + r<|eor|><|eols|><|endoftext|> | 121 |
programmerhumor | rolloutTheTrash | iaw4to5 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>`$ history | grep <command/partial_command>`<|eor|><|eols|><|endoftext|> | 119 |
programmerhumor | ChickensInTheAttic | iawb0dr | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>And then you realise it's the wrong terminal....<|eor|><|eols|><|endoftext|> | 115 |
programmerhumor | turtle_mekb | iawp9z3 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>or just use the command `history` if `$HISTFILE` is something else, or to see commands ran in the current shell not previous shells<|eor|><|eols|><|endoftext|> | 91 |
programmerhumor | ViluziX | iaw4w98 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>to everyone saying ctrl+r or other things, too much effort. let me play the fun game of looking for that one simple command<|eor|><|eols|><|endoftext|> | 55 |
programmerhumor | salmonlikethephish | iawm1ip | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>`$ history | grep <command/partial_command>`<|eor|><|sor|>You can also execute the history with an exclamation point
e.g. history command output shows
`27 rm -Rf /`
To run that command without retyping or copy/paste do this:
`!27`<|eor|><|eols|><|endoftext|> | 46 |
programmerhumor | afourney | iaww7d0 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>For decades I just put this into .inputrc so that up arrow considers the already-typed prefix:
"\e[A": history-search-backward
"\e[B": history-search-forward
https://unix.stackexchange.com/questions/53814/configure-up-arrow-to-browse-through-commands-with-same-initial-characters-rathe<|eor|><|eols|><|endoftext|> | 44 |
programmerhumor | oddark | iawswg5 | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>`$ history | grep <command/partial_command>`<|eor|><|sor|>You can also execute the history with an exclamation point
e.g. history command output shows
`27 rm -Rf /`
To run that command without retyping or copy/paste do this:
`!27`<|eor|><|sor|>And `!!` for the last command which is great for doing `sudo !!`
Also `!^` for the first arg of the previous command, `!$` for the last, `!:n` for the *n*th, and `!:*` for all args<|eor|><|eols|><|endoftext|> | 42 |
programmerhumor | disappointed_moose | iax807v | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>or just use the command `history` if `$HISTFILE` is something else, or to see commands ran in the current shell not previous shells<|eor|><|sor|>The Powershell equivalent is stupidly complex.
Get-Content (Get-PSReadlineOption).HistorySavePath | ? { $_ -like '*<SEARCH_STRING>*' }<|eor|><|sor|>I don't have any Powershell experience at all but every Powershell command I've seen before looks stupidly complex<|eor|><|eols|><|endoftext|> | 42 |
programmerhumor | richardathome | iax5fjv | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>retype three characters or press up 27 times? Easy choice.<|eor|><|sor|>True, super easy! I'd take press up 27 times any day!<|eor|><|sor|>Every day is finger day!<|eor|><|eols|><|endoftext|> | 32 |
programmerhumor | AdjustedMold97 | iawmzhh | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>until you realize you closed the terminal window you used to run it<|eor|><|eols|><|endoftext|> | 29 |
programmerhumor | graphicsRat | iawt27z | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>Yep, history grep is my go-to<|eor|><|sor|>history | grep command<|eor|><|eols|><|endoftext|> | 25 |
programmerhumor | scriptmonkey420 | iax5oef | <|sols|><|sot|>Programmers pressing up to find that one command they ran 8 hours go be like<|eot|><|sol|>https://i.redd.it/h4vnbacp96391.gif<|eol|><|sor|>Ctrl+R goes a long way
If it's not set up properly then just grep through bash_history or whatever<|eor|><|sor|>or just use the command `history` if `$HISTFILE` is something else, or to see commands ran in the current shell not previous shells<|eor|><|sor|>The Powershell equivalent is stupidly complex.
Get-Content (Get-PSReadlineOption).HistorySavePath | ? { $_ -like '*<SEARCH_STRING>*' }<|eor|><|eols|><|endoftext|> | 25 |
programmerhumor | frenchkiwijuicy | plfoso | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|eols|><|endoftext|> | 32,337 |
programmerhumor | demon_ix | hcaibll | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>The author was born at a very young age.<|eor|><|eols|><|endoftext|> | 1,172 |
programmerhumor | Dragonhaunt | hcarb4w | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Grr. Who writes this stuff? I want to meet them and tell them a few things.<|eor|><|sor|>[deleted]<|eor|><|sor|>If you know its author you can easily and accurately determine who wrote it.<|eor|><|eols|><|endoftext|> | 674 |
programmerhumor | brainwater314 | hcaq04t | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>I got my current job in part because when asked about my thoughts on commenting software, I said that comments should almost never say what the code is doing, instead the code and names should be used for that. Comments should be reserved for why the code is doing something.<|eor|><|eols|><|endoftext|> | 585 |
programmerhumor | Roflkopt3r | hcaqxtc | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>The author was born at a very young age.<|eor|><|sor|>Every 60 seconds in Africa, a minute passes.<|eor|><|eols|><|endoftext|> | 549 |
programmerhumor | JB-from-ATL | hcaoty7 | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>"How do I cure a hangover?"
> Drink water before bed, drink less alcohol<|eor|><|eols|><|endoftext|> | 438 |
programmerhumor | MischiefArchitect | hcab5lw | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Cut it and count the rings...
... then press CTRL+Z<|eor|><|eols|><|endoftext|> | 319 |
programmerhumor | gunscreeper | hcau4qt | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>"How do I cure a hangover?"
> Drink water before bed, drink less alcohol<|eor|><|sor|>How to cure food poisoning?
>Don't eat poisonous food<|eor|><|eols|><|endoftext|> | 241 |
programmerhumor | GrandmaPoses | hcb65jk | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>I got my current job in part because when asked about my thoughts on commenting software, I said that comments should almost never say what the code is doing, instead the code and names should be used for that. Comments should be reserved for why the code is doing something.<|eor|><|sor|>// Upper management said it needed to be interactive<|eor|><|eols|><|endoftext|> | 240 |
programmerhumor | StrangeCasiuss | hcayl34 | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>The author was born at a very young age.<|eor|><|sor|>Every 60 seconds in Africa, a minute passes.<|eor|><|sor|>together we can stop this!<|eor|><|eols|><|endoftext|> | 166 |
programmerhumor | Archabarka | hcb8gq0 | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>I got my current job in part because when asked about my thoughts on commenting software, I said that comments should almost never say what the code is doing, instead the code and names should be used for that. Comments should be reserved for why the code is doing something.<|eor|><|sor|>// Upper management said it needed to be interactive<|eor|><|sor|>//This code is motivated to work by the encouragement of its mother, without which it would never have been able to handle the pressures of everyday life.<|eor|><|eols|><|endoftext|> | 153 |
programmerhumor | Godisabaryonyx | hcatfbw | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Grr. Who writes this stuff? I want to meet them and tell them a few things.<|eor|><|sor|>[deleted]<|eor|><|sor|>If you know its author you can easily and accurately determine who wrote it.<|eor|><|sor|>You can tell by the way it is.<|eor|><|eols|><|endoftext|> | 120 |
programmerhumor | Avion16384 | hcb9oca | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>The author was born at a very young age.<|eor|><|sor|>Every 60 seconds in Africa, a minute passes.<|eor|><|sor|>Scientists estimate the size if Africa to be as big as all African countries combined.<|eor|><|eols|><|endoftext|> | 118 |
programmerhumor | mans82 | hcafi5k | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Cut it and count the rings...
... then press CTRL+Z<|eor|><|sor|>Or do `git revert`.<|eor|><|eols|><|endoftext|> | 104 |
programmerhumor | Tweenk | hcafm9g | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Fault in your title.
isEven always returns a value. Otherwise you wouldn't know if it's even or not<|eor|><|sor|>No no no, the title is in fact accurate. The implementation is:
bool isEven(int n) {
if (n % 2) {
// We don't want the compiler to optimize this away
volatile uint32_t i = 0, j = 1;
while (i != j) {
++i; ++j;
}
return false;
}
return true;
}
You use the function by spawning a thread. If it doesn't exit after 100 ms, the number is odd.<|eor|><|eols|><|endoftext|> | 102 |
programmerhumor | Archabarka | hcba1jb | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>"How do I cure a hangover?"
> Drink water before bed, drink less alcohol<|eor|><|sor|>How to cure food poisoning?
>Don't eat poisonous food<|eor|><|sor|>Who is the current president?
>The president of the united states is the President of the United States.<|eor|><|eols|><|endoftext|> | 102 |
programmerhumor | BroscienceGuy | hca8s5o | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>Fault in your title.
isEven always returns a value. Otherwise you wouldn't know if it's even or not<|eor|><|eols|><|endoftext|> | 99 |
programmerhumor | eyekwah2 | hcalg52 | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>isOdd returns true if call to isEven returns false.<|eor|><|eols|><|endoftext|> | 98 |
programmerhumor | lacb1 | hcb0mde | <|sols|><|sot|>isEven returns if a value is even<|eot|><|sol|>https://i.redd.it/ru68sbjrfmm71.jpg<|eol|><|sor|>The author was born at a very young age.<|eor|><|sor|>Every 60 seconds in Africa, a minute passes.<|eor|><|sor|>together we can stop this!<|eor|><|sor|>...I'm not sure I want to know how.<|eor|><|eols|><|endoftext|> | 97 |
programmerhumor | spookiestevie | gr2m40 | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|eols|><|endoftext|> | 32,330 |
programmerhumor | phpdevster | frwh8yr | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|eols|><|endoftext|> | 1,205 |
programmerhumor | seniorpreacher | frwgecu | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|eols|><|endoftext|> | 1,008 |
programmerhumor | edave64 | frx4kte | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>Yes. But having worked with some more obscure languages, I can assure you this is by far not the worst crime a language can commit, and that some of us yearn for the day we may use JavaScript again.<|eor|><|eols|><|endoftext|> | 593 |
programmerhumor | Markyparky56 | frwuxr0 | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|sor|>`Array(16).join("wat" - 1) + " Batman!"`
_Addendum, highly recommend everyone to also watch his talk [The Birth & Death of JavaScript](https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript) which was frankly prophetic..._<|eor|><|eols|><|endoftext|> | 570 |
programmerhumor | Sushisource | frx1td0 | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|sor|>`Array(16).join("wat" - 1) + " Batman!"`
_Addendum, highly recommend everyone to also watch his talk [The Birth & Death of JavaScript](https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript) which was frankly prophetic..._<|eor|><|sor|>[deleted]<|eor|><|sor|>An error. (Ideally, impossible in the first place, but that can't happen without JS being totally different)<|eor|><|eols|><|endoftext|> | 536 |
programmerhumor | clonecharle1 | fry1fsl | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>Yes. But having worked with some more obscure languages, I can assure you this is by far not the worst crime a language can commit, and that some of us yearn for the day we may use JavaScript again.<|eor|><|sor|>I'll bite. What languages are you using that are actually worse than javascript? I've used a lot of the popular and formerly popular languages professionally. And some more geeky languages as a hobby. I've never used a language shittier and more error prone than javascript.<|eor|><|sor|>MUMPS. It's not just a disease, it's also a programming language. Although it is hard to discern which is which.<|eor|><|eols|><|endoftext|> | 329 |
programmerhumor | redsterXVI | frx2tjb | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>console.log('2' + '2' - '2');
>20<|eor|><|sor|>[deleted]<|eor|><|sor|>As a non JS-dev: no, it's really not.<|eor|><|eols|><|endoftext|> | 284 |
programmerhumor | K1ngjulien_ | frwuc7v | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>[deleted]<|eor|><|sor|>[deleted]<|eor|><|sor|>Because it allows you to catch a lot of errors before you even run the code.
"Property x is undefined" for example can happen less easily because you know statically what attributes your variable will be guaranteed to have.<|eor|><|eols|><|endoftext|> | 240 |
programmerhumor | temperamentalfish | frx0bla | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|sor|>It's a little unusual at first glance, but if you're attempting to minus one from a string what do you really expect it to do?
And *then* remember JavaScript was designed in a time where the is code crashing/erroring out would likely render (heh) the whole page malformed, so it had to "chug on" as best it could with what it was given.<|eor|><|sor|>>if you're attempting to minus one from a string what do you really expect it to do?
In a sane interpreted language? Runtime error: "What the fuck are you doing?"<|eor|><|eols|><|endoftext|> | 225 |
programmerhumor | joequin | frxw642 | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>Yes. But having worked with some more obscure languages, I can assure you this is by far not the worst crime a language can commit, and that some of us yearn for the day we may use JavaScript again.<|eor|><|sor|>I'll bite. What languages are you using that are actually worse than javascript? I've used a lot of the popular and formerly popular languages professionally. And some more geeky languages as a hobby. I've never used a language shittier and more error prone than javascript.<|eor|><|eols|><|endoftext|> | 224 |
programmerhumor | AnAverageFreak | frx1sjs | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|sor|>It's a little unusual at first glance, but if you're attempting to minus one from a string what do you really expect it to do?
And *then* remember JavaScript was designed in a time where the is code crashing/erroring out would likely render (heh) the whole page malformed, so it had to "chug on" as best it could with what it was given.<|eor|><|sor|>>if you're attempting to minus one from a string what do you really expect it to do?
In a sane interpreted language? Runtime error: "What the fuck are you doing?"<|eor|><|sor|>Or better: compile-time error.
This message has been sponsored by the Static Typing Club.<|eor|><|eols|><|endoftext|> | 221 |
programmerhumor | WhyIsTheNamesGone | frwo809 | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>Type coercion sucks, until you actually learn it. Then it's... okay. I'm not yet fluent enough to intuit it, but I am familiar enough to stop and think through the truth table without looking it up.<|eor|><|eols|><|endoftext|> | 218 |
programmerhumor | j-frost | frx24li | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|sor|>Maybe not so much inconsistencies if you know the rules, so much as just bat fuck insane rules.
https://www.destroyallsoftware.com/talks/wat
(starts at 1:30ish)<|eor|><|sor|>`Array(16).join("wat" - 1) + " Batman!"`
_Addendum, highly recommend everyone to also watch his talk [The Birth & Death of JavaScript](https://www.destroyallsoftware.com/talks/the-birth-and-death-of-javascript) which was frankly prophetic..._<|eor|><|sor|>[deleted]<|eor|><|sor|>An error. (Ideally, impossible in the first place, but that can't happen without JS being totally different)<|eor|><|sor|>At the very least it should be undefined (in the truest sense of the word). But yeah, error or impossible are even better.<|eor|><|eols|><|endoftext|> | 200 |
programmerhumor | neonKow | frwz7go | <|sols|><|sot|>Typescript gang<|eot|><|sol|>https://i.redd.it/k8l61hkck5151.jpg<|eol|><|sor|>List me some inconsistencies, I'm a javascript dev<|eor|><|soopr|>' ' == '0' // false
0 == ' ' // true
0 == '0' // true
false == 'false' // false
false == '0' // true
false == undefined // false
false == null // false
null == undefined // true
' \t\r\n ' == 0 // true
More at: https://github.com/denysdovhan/wtfjs/blob/master/README.md<|eoopr|><|sor|>>' ' == '0' // false 0 == ' ' // true 0 == '0' // true false == 'false' // false false == '0' // true false == undefined // false false == null // false null == undefined // true ' \t\r\n ' == 0 // true
For goodness sakes, you're in a programming sub. Format your code. Use semicolons. That is near unreadable.
' ' == '0'; // false
0 == ' '; //true
0 == '0' ; // true
false == 'false'; // false
false == '0'; // true
false == undefined; // false
false == null; // false
null == undefined; // true
' \t\r\n ' == 0; // true<|eor|><|eols|><|endoftext|> | 168 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.