Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
Search - "are you an idiot"
I’m surrounded by idiots.
I’m continually reminded of that fact, but today I found something that really drives that point home.
Gather ‘round, everybody, it’s story time!
While working on a slow query ticket, I perused the code, finding several causes, and decided to run git blame on the files to see what dummy authored the mental diarrhea currently befouling my screen. As it turns out, the entire feature was written by mister legendary Apple golden boy “Finder’s Keeper” dev himself.
To give you the full scope of this mess, let me start at the frontend and work my way backward.
This function allows the user to better see the rows in the API Calls table, for which there is a also search feature — the very thing I’m tasked with fixing.
It’s worth noting that above the search feature are two inputs for a date range, with some helpful links like “last week” and “last month” … and “All”. It’s also worth noting that this table is for displaying search results of all the API requests and their responses for a given merchant… this table is enormous.
This search field for this table queries the backend on every character the user types. There’s no debouncing, no submit event, etc., so it triggers on every keystroke. The actual request runs through a layer of abstraction to parse out and log the user-entered date range, figure out where the request came from, and to map out some column names or add additional ones. It also does some hard to follow (and amazingly not injectable) orm condition building. It’s a mess of functional ugly.
The important columns in the table this query ultimately searches are not indexed, despite it only looking for “create_order” records — the largest of twenty-some types in the table. It also uses partial text matching (again: on. every. single. keystroke.) across two varchar(255)s that only ever hold <16 chars — and of which users only ever care about one at a time. After all of this, it filters the results based on some uncommented regexes, and worst of all: instead of fetching only one page’s worth of results like you’d expect, it fetches all of them at once and then discards what isn’t included by the paginator. So not only is this a guaranteed full table scan with partial text matching for every query (over millions to hundreds of millions of records), it’s that same full table scan for every single keystroke while the user types, and all but 25 records (user-selectable) get discarded — and then requeried when the user looks at the next page of results.
What the bloody fucking hell? I’d swear this idiot is an intern, but his code does (amazingly) actually work.
No wonder this search field nearly crashed one of the servers when someone actually tried using it.
I'm in a few women in tech groups. A woman, who is a highly experienced developer, shared that she had a conversation with her male friend, who is a startup founder. He said that his criteria for recruitment are high levels of math and physics since high school and early interest in programming (e.g. age of 10). She said his criteria made her sad and excluded.
A fellow woman developer commented that it's reasonable to feel sad when you learn your good friend is an idiot. I snorted some Monster out of my nose reading this and I'm still coughing and chuckling.
To be honest, the founder's requirements do sound super ridiculous, and I imagine his startup is made up of clones of the same guy type, wearing different shades of gray t shirts and sandals with socks.58
"Please move the logo left. The text goes a bit under."
Do you guys think people realize how unclear they are, and are just too fucking lazy to write the full spec? Or are they just so fucking stupid they don't realize I literally have no fucking clue what to do exactly with comments like these?
I guess Hanlon's razor applies here, but some days I just don't know...
Happy Friday! ☠️3
So I saw a blurb about AlphaCode from DeepMind. I went to look at their website:
What I see is the most insanely detailed spec for code I have ever seen in my life. I haven't even seen college programming problems this detailed before. Most specs "I" get are like one or two sentences long "if" it is even written down. A lot of the time the direction is: write some stuff and we will tell you what we hate. Just figure it out.
So DeepMind is claiming they can produce code as well as the average programmer because they ranked 54% in a coding competition. What a complete misleading claim and absolute bullshit conclusion. I am all for creating new tech around generating code, but this is just to sell snake oil to an idiot manager at a startup.
This is going to lead to some really fucked up rants here at devrant.6
We find our hero, fullstackclown🤡, again harrowed by idiotic management.
Our backdrop and set: A Google calendar appointment was booked between the managers and fullstackclown. fullstackclown had created an all-day appointment for today which reads: "fullstackclown on site".
With the scene set, let us begin our tale..........
Manager: Are you going to be on site today?
fullstackclown🤡: Do you see the appointment I booked on our calendar stating that indeed I will be on site today?
fullstackclown🤡: you are an absolute idiot
I literally don't know what to do anymore. I mean it's RIGHT THERE IN YOUR CALENDAR. HOW MUCH MORE CLEAR DO YOU WANT IT TO BE?! DO YOU WANT A TWILIO APP THAT SENDS YOU A PRERECORDED VOICE MESSAGE IN MY VOICE, CONFIRMING MY CALENDAR APPOINTMENTS?!
What type of mindset causes this type of behavior of double or triple checking things as simple as a calendar booking? Honestly shows a complete breakdown of normal mental functioning in my opinion.5
Hey, i am an idiot when it comes to web development and i wanted to kindly ask a question.
I am developing a blazor wasm webapp and i want to give the user some kind of onboarding process. the kind where some parts of the ui are highlighted with explanation on what which button does or area of ui is for.
how do you call something like that? I just need something to google for.
Thank you for your invaluable time and again sorry for my stupidy3
New office stories during the emotional turmoil...
Story 1: The creepy fuck
So being unaware of the fact that I was connected with this guy on LinkedIn already.
Ron walks upto my desk and greets me on my first day on floor. Weird, but whatever.
I politely interact, because gotta make friends and create my following to get shit done.
The next day, randomly comes asking for a laptop sticker and I am like WTF! He is like sticker was an excuse, I just wanted to say Hi!
Day 3: same random creep shit. Talks about personal topics and invades personal space uninvited.
Day 4: Keeps starring at me while I ignore and judges me evidently with stupid suggestions on how to exist without being asked for.
Fuck this guy.
Story 2: The classic case of Dunning Kruger effect
So I get introduced to my tech team today and everyone start piling on me to guide them on decision making. The CTO creates a Slack thread with me and Co-founder asking me to get things moving on priority.
The co-founder shut him out right away. Fucking hilarious.
But, a retard starts schooling me on how to use Slack. Lmfao.
Me being polite, said I'll follow.. dude starts bragging on how he wrote company policy to get everyone on Slack yada yada..
To be honest, the Slack experience is beyond broken based on what these idiot has setup.
He literally opened my Slack and responded to the CTO thread.
That's where I got pissed. I upfront told him that hey! Calm your tiddies down. I know how to use Slack. I have used it since it was in the beta.
I have been in much much mucy bigger orgs and places more well structured than what you have here.
I told him on his face what the flaws where and how I felt a downgrade from where I am coming from.
The look on his face was priceless and he started sweating. Lol
Never again he'll school anyone.
I mean I understand if you are humble and genuinely guiding a new hire. But being cocky unnecessarily and shoving things down my throat without yourself knowing shit or know about the other person is purely asshole move.
Anyway, I am still upset about the scam. Fuck this world.8
Me: I’m having trouble filling out the state tax form online. The form won’t let me check the box “I live in X city.”
HR: You don’t have to fill out the form if it doesn’t apply to you.
Me: Why are you treating me like an idiot? And why the fuck are you making assumptions about where I live?