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
Feed
All
Post Types
- Rants
- Jokes/Memes
- Questions
- Collabs
- devRant
- Random
- Undefined
Cancel
All
-
Got one right now, no idea if it’s the “most” unrealistic, because I’ve been doing this for a while now.
Until recently, I was rewriting a very old, very brittle legacy codebase - we’re talking garbage code from two generations of complete dumbfucks, and hands down the most awful codebase I’ve ever seen. The code itself is quite difficult to describe without seeing it for yourself, but it was written over a period of about a decade by a certifiably insane person, and then maintained and arguably made much worse by a try-hard moron whose only success was making things exponentially harder for his successor to comprehend and maintain. No documentation whatsoever either. One small example of just how fucking stupid these guys were - every function is wrapped in a try catch with an empty catch, variables are declared and redeclared ten times, but never used. Hard coded credentials, hard coded widths and sizes, weird shit like the entire application 500ing if you move a button to another part of the page, or change its width by a pixel, unsanitized inputs, you name it, if it’s a textbook fuck up, it’s in there, and then some.
Because the code is so damn old as well (MySQL 8.0, C#4, and ASP.NET 3), and utterly eschews the vaguest tenets of structured, organized programming - I decided after a month of a disproportionate effort:success ratio, to just extract the SQL queries, sanitize them, and create a new back end and front end that would jointly get things where they need to be, and most importantly, make the application secure, stable, and maintainable. I’m the only developer, but one of the senior employees wrote most of the SQL queries, so I asked for his help in extracting them, to save time. He basically refused, and then told me to make my peace with God if I missed that deadline. Very helpful.
I was making really good time on it too, nearly complete after 60 days of working on it, along with supporting and maintaining the dumpster fire that is the legacy application. Suddenly my phone rings, and I’m told that management wants me to implement a payment processing feature on the site, and because I’ve been so effective at fixing problems thus far, they want to see it inside of a week. I am surprised, because I’ve been regularly communicating my progress and immediate focus to management, so I explain that I might be able to ship the feature by end of Q1, because rather than shoehorn the processor onto the decrepit piece of shit legacy app, it would be far better to just include it in the replacement. I add that PCI compliance is another matter that we must account for, and so there’s not a great chance of shipping this in a week. They tell me that I have a month to do it…and then the Marketing person asks to see my progress and ends up bitching about everything, despite the front end being a pixel perfect reproduction. Despite my making everything mobile responsive, iframe free, secure and encrypted, fast, and void of unpredictable behaviors. I tell her that this is what I was asked to do, and that there should have been no surprises at all, especially since I’ve been sending out weekly updates via email. I guess it needed more suck? But either way, fuck me and my two months of hard work. I mean really, no ego, I made a true enterprise grade app for them.
Short version, I stopped working on the rebuild, and I’m nearly done writing the payment processor as a microservice that I’ll just embed as an iframe, since the legacy build is full of those anyway, and I’m being asked to make bricks without straw. I’m probably glossing over a lot of finer points here too, just because it’s been such an epic of disappointment. The deadline is coming up, and I’m definitely going to make it, now that I have accordingly reduced the scope of work, but this whole thing has just totally pissed me off, and left a bad taste about the organization.8 -
Samsung introduced a useful feature to their smartphones just to cripple it one year later.
In 2015, Samsung introduced camera quick launch to their Galaxy S6, where the camera could be accessed by double-pressing the home button. Before that, the double press accessed the far less useful S Voice.
A year later, with their Android 6.0 update and the phones that had Android 6.0 pre-installed (starting with the Galaxy S7), they ruined it with a useless "Camera has been opened via quick launch" pop-up that would appear if the camera app detects that the phone is in the pocket. This was detected using the front and rear proximity sensors.
If this useless pop-up was closed with the "back" key or by tapping the background behind the pop-up or by doing nothing for five seconds, the camera application would close itself. It would only stay open if the user tapped the tiny little "OK" button that could easily be missed in a crucial moment.
This made it impossible to blindly launch the camera while the phone is still inside the pocket, defeating one of the greatest benefits of the feature. And closing that pop-up takes time that could lead to a moment being missed by the camera.
Additionally, Samsung introduced a bug in Android 6.0 where launching the camera within seconds of going into stand-by mode would cause it to exit automatically after a few seconds.
Screenshot credits: https://forums.androidcentral.com/t...4 -
Another weekend comes in. What are you gonna do about it?
Last Weekend:https://devrant.com/rants/101988426 -
It's 10:30 at night, you have had two large glasses of wine, and its time to "play the shit outa minecraft!"...3
-
I don’t know why it annoys me so much but writing the date the wrong way is fucking ridiculous America! It’s Day fucking month fucking Year imbeciles!3
-
Like pull-to-refresh, auto-selecting the file name in "save as" dialogues is a design trend we are perpetuating without questioning its usefulness.
The "rename" feature of file managers and the file name fields in "Save as" dialogues and screenshot tools automatically select file names without the ending, expecting the user to want to replace it.
It would more sense to place the cursor between the file name and the ending ".png".
I can't remember the last time I replaced a file name. I almost always rename files to add a comment or time stamp at the end.
Adding a comment after the time stamp, for example, "Screenshot at 2024-02-04 12-04-37 progress bar.png", makes more sense than replacing the file name. A file name with a time stamp is more easily searched.4 -
Productivity hack - For me, it’s mostly a single word - planning. I wasn’t always good at it, definitely not yet a “master” of it, but breaking that proverbial elephant up into smaller pieces, and organizing a plan of action for dealing with them is the #1 productivity “hack” for me. Sorry that it’s not an actual shortcut, or anything…I personally don’t believe in those anymore. Complementary habits to this are thoroughly commenting code, having descriptive commit messages, file names, and variable names, maintaining documentation. Use that Readme.md. This is true of any project, even if I’m the only developer - never underestimate your own ability to totally forget shit.1
-
Guys how do you access samba from your android phones? any genuine app? there was one by Google but they removed it from the play store2
-
My watch gives me periodic reminders to stand up.
I just so happened to be on the crapper at the time. I had just come to the conclusion of my business and before I could, it reminded me to stand up.
For a split second, I was like, man this thing really is living my life for me.1 -
Why does Python get so much hate? It is literally like a Basic programming language. Easy to learn and guaranteed to get a job because of massive demand.9
-