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 - "full screen"
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.
Windows is not full of surprises. One can expect the (light) blue screen.
(Picture in comments because it stretches like yo mama pussy in the post)7
Dear Apple, You made an amazing UI but Windows sure does beat you in terms of ease of use.
So my company provided us with Macbooks, I've been a windows users for almost 7-8 years now.
The thing I want to rant about is how we cannot switch between same application windows in full screen.
In Windows, you press tab, voila, the other full screen window. For instance, I want to use 2 google chrome "full" size windows, I cannot just press tab and view the other one, Like whaaaat!
There should be a provision to use the other window of the same application.
The same thins is so easily done in windows machine.13
My last night :
- Had nothing much to work on
- Opened an anime site to spend sometime.
- Clicked on some really good shows.
- Realized full screen isn't working on that page.
- Fired up JS Console , spent next 30 minutes trying to get the video part full screen. Failed!!
- Opened up Google & navigated through stackoverflow looking for the fix. Still couldn't do it.
- Cursed the website for having a bad design.
- Left the site.8
When it comes to using XCode, I can’t be the only one who thinks it’s a stupidly large file. Took a whole day to download, I know having a WiFi speed of 20Mb/s isn’t great but on a brand new iMac with nothing else installed you’d except it to download and install pretty quickly.
Also what is it with the Mac and things not wanting to be full screen??4
How fucking hard can it be to show a simple image. Guess which app has this feature.
Images are cropped to frame, but you can tap to fit the whole image to frame instead. No way to see the image on full screen. Pinch to zoom works, but it will immediately unzoom if you let go even one finger.2