Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "wow a gem"
-
Someone is wondering how to get this piece of code working as expected on StackOverflow:
for (var i = 1; i <= 2; i++) { setTimeout(function() { alert(i) }, 100); }
Found this gem in answers. :D14 -
!dev
!!politics (kinda)
Here’s a gem from our recent harassment and diversity training at work:
Speaker: “All of these things are protected from discrimination in California! Wow! It’s a huge list, isn’t it? Now let me ask you a question: is a single white male under 40 protected?”
Everyone: *crickets*
Fucking really?
After immediately jumping on all of the other speaker’s questions, you can’t answer this one?
And later, here’s another gem:
Speaker: “If you witness an employee harassing another employee outside of work and work hours, completely unrelated to work, should you report it? What if you ask the person being harassed and she says no?”
Speaker: “Always report it! While it’s not *technically* required by law, you must report it! Why? Because you have the same protections she would! And maybe it’s easier for you to say something than for her.” (Surprise gendering was her own addition)
Fair on that last point, but against the person’s wishes? Totally not cool. Maybe it wasn’t harassment, or you don’t know the situation. Heads up: you probably don’t. Or maybe it wasn’t a big deal at all, but you think it’s earth-shattering. But all that reporting it against someone’s wishes does is create drama and possibly legal trouble. And if it wasn’t harassment or the case goes poorly, you just created enemies for yourself, or for one or both of them if you’re reporting it anonymously, and possibly even ruined one or both of their jobs/careers by doing so. Good fucking job, asshole.
Snitches get stitches.16 -
So I needed a break from all the straight computer logic for days... so i figured i had 2 options, argue with chatGPT or go back to a dating app.
I chose the latter.
Im ocd with notifs... i NEED the bubble to be gone.
Found this gem...
"Hey beautiful Sara ;) my names is James king it very nice 2 meet u wow u look like a angel that fall from heaven 😘u mind me of a rose because how beautiful you are am how beautiful the rose is am I the best guy on badoo that u would ever talk with on badoo I actually look for Friendship and relationship ;) how are u today am wyd"
So... because im curious, esp when it comes to perplexing linguistics... im def gonna ask if English is his 1st language.
Normally i can tell within a sentence or 2... even tend to know their native tongue by then... this one has me stumped.
Anyone wanna guess if hes a native English speaker???
Maybe ill make a modest prize poolif there's a few entrants.
(he has plenty of pics so ill be able to legally find out in a few min... but ill wait til i dont get a response for a week)
Ill probably make a script to strip out the auto-messages... replying with an auto ofc... and the mundane crap that shows they definitely didnt go beyond the pics.13 -
Please excuse the "photo of my monitor" picture, but it really was the easiest way to do this...
So, I'm finally getting around to that to-do list item of wrapping my head around Nrwl Nx workspaces, and I stumbled onto this little gem: https://itnext.io/easy-typescript-m...
I didn't take long for the "what the fuck" moments to start cropping up, and then I decided to check what comments might have been left on Daily.dev regarding this one (see attachment).
THAT little nugget there is what led me to the ultimate "what the actually fuck" moment, which is only truly appropriate for DevRant..
Create an Nx workspaces, only to initialise a project with `npm` directly, using a path under a new `libs` folder, next to the `packages` folder, only to build the library, and literally install it into the Nx workspace's `node_modules` folder, b order to import it into the app that exist in the same workspace.
So, seriously.. like.. WHAT THE ACTUAL FUCK? What is this guy smoking?? I need to know so I can stay the fuck away from it! Wow. My brain hurts now.7