About'99 baby King of microoptimizations. Full stack developer before knowing what full stack developer meant. Coded REST APIs before knowing what REST APIs were. My style has been described as "Functional and symmetrical.".
Joined devRant on 1/2/2020
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
Today, in "Typos that wasted hours of debugging"...
PHP is such a bitch when it comes to unset variables, why didn't it trigger a warning or something when I tried to $typo[$index]?? I may be missing something and my head starts to ache.
Fixed tho', lesson learned.4
Finishing this app we are developing and fixing all the technical debt from my first years in the company.
Wish me luck. 🤞1
They've been in a meeting with some clients the whole morning.
12PM, time for me to go. Say Happy New Year and am on my way home.
12:20 Got home, took shirt off, got something to eat from the fridge.
12:22 Bit the first slice of pizza. Phone rings.
- "Yo' we wanted to show them app 2 but I can't log in."
+ "I left the laptop (and the whole dev environment) there, and there's no PC on in my house (and no dev environment whatsoever)."
- "Well check with your phone. [SIC] Tell me when you fix it."
12:32 I had turned my personal computer on; checked the problem was what I imagined (unpkg lib with no version defined on the link had a new major/non-retrocompatible version); grabbed an online FTP tool; remembered IP, user & password; edited the single line that caused the problem; and checked it worked. Calling back.
+ "It's fixed."
12:38 CEO sent me an image of the app not working, due to a known bug.
+ "That happens if you try to access app 1 having accessed app 2 and not logging off." (app 2 isn't being used / sold, as it's still in development) "Try logging off and logging in again from app 1."
- * radio silence *
+ * guess they could get in *
They had the whole freaking morning. 😠
I'm the hero CMMi's level one warns you about. But at what cost.
Happy early New Year's Eve everyone.2
Artists complaining about the use of AI pictures is totally fine apparently, and politically correct.
Imagine if programmers complained about low-code/no-code tools. 💀9
I was going to say Adminer, but apparently VirtualBox too. I don't know which one I use more.
Also, my own library for DOM manipulation.
The production file edited in March was way more advanced than the development file edited in July... what happened here?
I want to implement Git on this one so bad. :( I wish I found the way and the time already (it's a very complicated situation).10
Out of NOwhere, VSCode moves the cursor instead of scrolling horizontally when I use the two-fingers sideways gesture on the touchpad.
Very angry, very sad, I hope it fixes itself just as spontaneously as it happened.7
Ok finally, I can tell now.
There's a college project I'm in with 2 more people that uses Python and AnyLogic (separately).
We also need to write some LaTeX, so as I was already using PyCharm for the Pyshit, I used it for the LaTeX and for Git.
I used it for Git too because I didn't know how it used Git and was worried that if I used the console it didn't recognize something or glitched out or something. And what the hell, it's a mature IDE, what could be so hard or possibly go wrong?
I had to re download the repo a couple of times because between pushes, pulls, merges and commits something happened and the repo ended in a weird state.
These are all the things I do:
Add, commit, create branches, merge, push, pull and delete branches.
So, I hadn't opened in some time. The last time I tried to bring something from another branch, and stayed up late to finish something. I was waiting for my classmates to join the call when I thought something like "Hey, I should commit what I did until now, it worked great.". When I examined the IDE I found out I was in the middle of a rebase or something. I start clicking buttons to at least try to commit. I press "Skip Commit". I lose everything.
What the fuck‽ As you can see in the comprehensive list above, I never do something similar to a rebase. Apparently when I tried to merge a couple of branches, the stupid IDE thought I tried to do a rebase and never asked me to finish it. Why do something I have never asked? Plus, why haven't you prompted me to finish the operation? That's so stupid. I'm never trusting IDEs again.
I was so lit for losing so many hours of work I did a couple of weeks before, I would have to think it and do it all over again because of something I never asked.
We spent an hour looking for a way to recover the lost code.
Why an hour, you ask, if you can use the Local History for that in PyCharm?
Because none of us had used it before and the articles we found said that you had to open it from the toolbar. From the toolbar it was greyed out.
Then I found the option in the contextual menu of the files. Recovered the LaTeX files but on the AnyLogic files, it was greyed out.
I had to open the Local History of the folder containing the AnyLogic file.
And that was that.
I almost faint.
Fuck Python, fuck PyCharm.8
OMG I have a proper rant from last night.
It involves an unwanted rebase and lost uncommitted code from weeks.
Tune up after my shift.4
Pink cheese green goes.
Do you listen to music that's not in English? Do you listen to music sung in Spanish? Do you know El Cuarteto de Nos? I'm not saying you should but... it's great.
The main singer in a systems engineer, and some lyrics have another meaning if you think about that. Look at Anónimo for an example.
My boss thinks database = table
I hope it doesn't bring problems in the long run.
Any "web dev for CEOs" material you recommend?6
That day we had the weekly meeting with my boss to tell him what was new since last week.
We were 2 developers, I did the backend and the other guy did the frontend.
I tell him we had nothing new on the frontend. Literally not even one more line of code.
He tells me he gave the other guy some money the day before to encourage him to engage a bit more on the project.
The meeting is about to end when we receive a message in the development group, the guy said he wasn't going to continue in the project.
Not like that, dude.5
Let's start a holy war:
Tab vs Enter vs both for autocomplete / suggestions.
Please justify your choice.13
Lie in the interview saying he was a frontend web developer and try to hide the fact that they didn't know JS. Wtf.6
> npm start
* proceeds to leave the workstation for coffee / tea / slack off
* comes back 15' later
* leaves again
Any heuristics on using new JS/CSS features?
I thought of waiting 2 years, but I just saw an article that recommended waiting 6 months.
Another factor could be covered percentage, based on caniuse. 98%+ is the coverage of things we can all agree we can use, so is 95%+ enough for new features? 90%+ (so 1 in 10 people wouldn't get the expected experience)?5
My CSS-only hamburger menu.
It's cool and all, just a few lines of code, but some days ago I tried to do a 2 sides hamburger menu.
Based on that I just copied it and changed every left for right. Worked. Like. A. Charm. I had to apply some z-index stuff of course but nothing out of ordinary.
I'm so cool. I'll upload it to GitHub ASAP, but it's not a priority rn.
This is the link that has brought me the most joy acceleration in my life.
Go see what it does yourself.
I love adminer so much.
Screw MySQL Workbench.
(this rant was saved since that day images stopped working, good job guys)4
I ran out of milk halfway a chocolate milk.
With no options left, I skeptically decided to add some water.
I had half a cup of milk, added 1/4 of water. Y'know, enough to look filled, not enough to ruin it in case it goes wrong.
No, freaking, difference. Loved it.
I added some more water to see how much it changes, and it's just slightly less thick and 70% milk flavour. Sure it's a change but now I know the limit.
I wish there were some stats on this site.
What are the most used tags?
How many tags have only been used once?
How many tags contain emojis?
What's the average username length?
What's the average rants per day count?
And so on.1
It's official, the "front end dev" doesn't know how to code.
And it's not a "Well I don't know JS because I use React." scenario, no. He has almost no idea of coding.
What was he thinking trying to build the front end of a very complex app with just HTML, CSS and stupid copied and pasted snippets?5
My phone was stolen so that's why I wasn't getting here to rant about this, but today I had to make a back up and remembered.
adminer's export function doesn't export the tables in the correct order for import. Doesn't take foreign keys into account.
Dude, that's the whole point of a relational database, relations between tables; if you don't take that into account then what's the point?
Is this the same for the rest of database managers or is it just adminer? Please tell me this isn't normal.4
Follow up rant: https://devrant.com/rants/4943574/...
(Funny link btw.)
I tell him "Fine, upload it to the GitLab repo I created a week ago and you never used it." on Friday.
Today, the day *before the presentation*: "Here, have the GitHub repo, ask for permission and you're all set up.".
He's getting the boot.3
I'm pretty sure I'm not the only one that will say gaming.
Because of gaming I've been in contact with computers a lot and learned a bunch of things that would become useful as the base for learning coding.
Things as simple as using and abusing the file system, file locking and files principles, Googling stuff, etc.4