Details
-
Github
Joined devRant on 12/17/2017
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
-
const ifs = i => {
if (i === 1) return '2'
// (a lot more ifs)
}
const switches = i => {
switch (i) {
case 1: return '2'
// (a lot more cases)
}
}
console.time('time')
for (let i = 0; i < 1_000_000_000; i++) ifs(i)
console.timeEnd('time')
// time: 637ms
console.time('time')
for (let i = 0; i < 1_000_000_000; i++) switches(i)
console.timeEnd('time')
// time: 949.524ms18 -
For the love of buggery, stop watching bloody videos on your bloody phone with the bloody volume turned up.
I was thinking about something, just starting to get in the zone, when suddenly that tinny little speaker opened up a portal into the howling chaos of the underworld.
It sounds like cats fucking in an empty grain silo.
For the next half an hour, there is no room in my head for anything apart from the diabolical echoes of that bollock-wrenchingly hideous noise.3 -
Story time...of how HR actually did its job of taking care of employees.
So, I started at this new gig on December, the boss was all sunshine and promise (big red flag now to think back). Then as time passed, he started seeming...off. To a point I considered quitting my boss just after 2 months of working for him.
Then one morning we had a project meeting. He started verbally abusing me, calling me incompetent, bashing my work (of which he knew ~nothing, his experience 30 years back). Earlier in the week he demanded me to make a presentation which he in this meeting told is complete bullshit without actually reading any of it. He told me 'I am your boss, you do exactly as I say' when I told him something is technologically impossible in the situation we're in. He *actually* told me to break the law with data protection...
This was like wtf dude. That's not how you manage people. So, I made an HR ticket about his behaviour. They were *shocked* and escalated the matter.
Long story short: he was a bully, he's getting fired, my team has a new manager. My workplace actually appreciates my expertise.
Bad thing in this is, now I actually need to continue doing my job. ;_;7 -
Why can't we move standup to a little later in the day? Like, just before lunch?
I can't seem to get going with any work before 9am standup, takes ±20mins to get into it and focused, then another ±20mins afterwards to get into it again.
I miss the days when I only had one 30-minute weekly progress check-in with my manager which involved weekly tasks, larger project updates, all of the stupid agile ceremonies in one 30-minute session. Got a lot of shit done.7 -
The absolutely terrible and anti-customer "service" provided by Comcast should be illegal.
My bill went up $25 this month without any warning whatsoever, and all I get is their braindead AI they are training with customer voice data. So I shout jibberish into it until it connects me to a human.
I have actual choices where I live, so I'm going to cancel. -
If you host a forum for dev discussions, make sure that, even in code blocks, every single or double quote will be replaced by quirky typographic quote characters that resemble their ASCII equivalents so closely that cut-and-paste programming will be punished by hours of searching the error in the wrong place.4
-
Today my cat, my oldest girlfriend, passed away. She chose to be in the sun for her passing. I'm happy she had a good life in the end with all the space she needed. She did not suffer. It was sudden and just a cardiac arrest.
May she hunt many more mice and little birds in the afterlife.16 -
The only person responsible for the server maintenance has put in his resignation period in.
The other person that has access to the servers does not know the difference between production & lab.
Fun times ahead11 -
Monday is already going. I got the news a coworker is fired for selling company data.
What a shitshow this company is and how does it still exists2 -
Wanna make a good outdoor shot but only have a bad camera on hand? No problem!
1. Place the sun into your frame
2. Click it to adjust exposure
3. Shoot
Yes, this limits what you can shoot, as it’s not always possible to keep the sun in the frame. But, in exchange, the sheer amount of light will make your pic _very_ sharp, as if it was engraved, colors will be restrained and balanced on pretty much every camera, noise level will be zero, and a REAL lens flare will serve as a nice finishing touch.2 -
I choked on my own saliva and I coughed so much I felt like my chest would explode, and now I've got chest pain because of it.
I hate life at this point.9 -
Me: *opens existing shared telegram channel*
Me: Hello developers of SDK xxx, we have another issue. We've gotten 2 reports from users of problem X occurring while using the SDK to contact your servers. It happens here, then this happens, using version Y. Code is the same open source app + library as before if you need to check it, same 2 files as before. Here are some screen shots of the error in the app too, just in case
*3 days later*
Dev: yes this does indeed seem to be a problem. Can you provide us more info to debug this effectively?
Me: ..... I sure can ..... if you let me know what it is you need ..... because you currently have access to absolutely everything already .... and i've been waiting 3 days, some specifics of what you need would be great!!!3 -
ChatGPT, Copilot, React, how to make a link in a frontend website?
To create a link in a frontend website, create a span, a div, or a paragraph that contains the link text. In your JavaScript web app, add an event listener to that element that opens the link on click. If you want to claim you're accessible, add an aria-role to the clickable element. To make debugging harder and only possible for the real arcane experts, let your framework generate generic ids and class name hashes for styling and event handling, like "item_09fcfck" or "elementor_element_foo_bar". Avoid, at all price, to use an a href element!2 -
I had a zoom meeting with a new company who came looking for ME. I did NOT look for them. I already have a job (but they pay 3-4x more than my current job).
It went well. How the fuck was this a technical interview. Guy only asked me what ive worked on so far by now. Nothing technical n shit
At the end
Hr asked me how much bands i want 💰💰💰(here we fucking go again)
I had to stall it and avoid question. The guy started rolling his eyes and turned off his webcam. The fuck is your fucking problem Bitch?
Then she said we cant move to the next 76th interview unless i say range or minimum. I don't give a fuck anymore. I said my minimum
She started writing it down and, i have never in my life seen someone disconnect a zoom call after that.
Literally hr was saying Thank u for taking the time to join the interview, the guy also said thanks, i started saying thank you for your time an- they fucking disconnected the fucking call. In the middle of my fucking sentence. I did not manage to finish my fucking sentence from how fast they disconnected.
NOW I'LL ASK FOR DOUBLE OR NOTHING AT THE END INTERVIEW DUE TO THIS BEHAVIOR. GET FUCKED4