Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "wk110"
At my study's final exams, I coded a system with login and everything included.
Showed it at the final delivery:
Fake client: awesome! So how do I logout?
Yeah, you couldn't logout.30
This was during the first day of my first real dev job, straight out of college. I didn’t have have much experience with version control since I did mostly solo projects in college, and I wasn’t exposed to SVN or Git in school at all.
One of the senior devs was going to give me and another new guy a brief overview of the codebase. He sets us up with the GitHub repo for the codebase and tells us to clone the codebase locally. I didn’t really know what this meant but I felt kind of embarrassed to ask, so I just clicked “download as zip” on The GitHub repo.
After a minute he saw what I had done and was like “yeah, that’s not what you want to do” and showed me how to clone it. I was kind of embarrassed but I learned Git pretty quickly after that.
I don’t really have a moral to this story except that “no question is a stupid one” is much easier said than done for many people, and it can be embarrassing to ask certain questions sometimes.11
Admin: "Wait, I noticed unusual traffic."
Me: "What is it?"
Admin: "Looks like we have a bot here."
Me: "A bot? Didn't know we are so popular."
Admin: "It makes constantly login requests through our API, it already surpassed 600.000! I will ban it right away."
Me: "wait, that just sounds like my bot.."
Admin: "DUDE, WTF? ARE YOU SERIOUS?"
When there is bug, you don't know of, it can end up quite embarrassing.11
I found a python virus online a while ago that just corrupts your .py files, so I wanted to do something similar and after writing it I ran it on my pc, it corrupted all of my .py files.27
I accidently left log.debug("bollocks") ;
In an exception handler our customers log monitoring system picked it up and they questioned why and I quote here "why is there a spike in bollocks at 3am?"
That was an awkward conference call2
At an internship we had to make something and appearantly I learned php quite wrong at study so they decided that I'd have to pick a framework to program with.
Fair enough, a little research and I found one.
Held a presentation about the progress and mentioned the framework I used and everyone seemed quite impressed.
After the project someone came to me and asked me to take another look at that framework.
It appeared to be veeery fucking old, hardly documented and quite shit actually.
"so why did you choose it again?"
Showing to your friend algo you created.
Showing to him.
He is a dev too so he understood the situation.7
THIS is why unit testing is important, I often see newbs scour at the idea of debugging or testing:
My high school cs project, i made a 2d game in c++. A generic top down tank game. Being my FIRST project and knowing nothing about debugging or testing and just straight up kept at it for 3 months. Used everything c++ and OOP had to offer, thinking "It works now, sure will work later"
Fast forward evaluation day i had over 5k lines of code here, and not a day of testing; ALL the bugs thought to themselves- "YOU KNOW WHAT LETS GUT THIS KID "
Now I did see some minor infractions several times but nothing too serious to make me refactor my code. But here goes
I started my game on a different system, with a low end processor about 1/4 the power of mine( fair assumption). The game crashed in loading screen. Okay lets do that again. Finally starts and tanks are going off screen, dead tanks are not being de-spawned and ended up crashing game again. Wow okay again! Backround image didn't load, can only see black background. Again! Crashed when i used a special ability. Went on for some time and i gave up.
Prof saw the pain, he'd probably seen dis shit a million times, saw all the hard work and i got a good grade anyways. But god that was embarrassing, entire class saw that and I cringe at the thought of it.
I never looked at testing the same way again.6
3 or 4 days before the summer vacations, our teacher came in class and asked us to present whatever projects we've been working on and give a brief description...
Some guys went on the stage, then a few girls,
So being first time on the stage I was pretty nervous and started shaking and sweating a little bit.
I opened up the laptop and project was already open in AS, but had to restart emulator,
but the main thing was, i didn't notice the "blonde lesbians - PornHub" was minimized in the taskbar.
So I opened up cmd and typed "taskill -f -im chrome*" and it vanished. (a little fear increased)
when I finished presentation, some of the students were staring at me, so i made an excuse to go to toilet,
...and I ran out of dept.
after class finished my friends came up to me and said "we saw what was going on there in taskbar" and we laughed.
Going to forums asking for help as to why my nested for loop wasn't working correctly after the first loop only to realise I was using the variable i for both loops...
Felt like an absolute twat4
Not a programming experience but a testing one (because I am a tester).
My face turns red out of embarrassment when I defend a bug will full confidence and it turns out to be setup issue and gets marked as 'Not a Bug'.
Happens very often. Lol.5
So I was taking a Linux class in college. I knew Linux pretty good at this point but it was a required course for my degree. I found some other people who were programmers in other languages like python and C and we just fucked around the whole semester. End of semester is coming up and the teacher poses a problem: write a bash script to do this complex thing that bash isn't the best language. But it's a Linux class. Everyone is typing away while the four of us are stunned, having no clue. So we did the only reasonable thing: write a bash script which echos a full python script to achieve it into a file, run that python script, then delete it. We submitted first and got extra credit. She threw it up on the projector as an "extrodinary example" of a good script, having not looked at it. She complimented us profusely, never turning around or reading it.14
Connect to a client over remote desktop. Client says feature X doesn't work. I check and it works fine. Client insists that it doesn't, so I check again and it does. Happens a third time and I almost lose it.
But then I realize, I had mixed up the screens. I was looking at my own debugger where I'd already fixed the bug (>ლ)6
Have multiple and some server related but hereby:
I forcefully quit php on the server I use for devRant related stuffs because I wanted to quit the bakgrounded php process I had running for the dns proxy thingy since I somehow couldn't find the pid.
Two days later I noticed that none of my sites on that server where running anymore and started looking at nginx error logs.
It took me way too long to figure out that I had PHP-FPM installed which runs as a service and by forcefully quitting php the other day.... Yeah, you get it I think.
Started the process again and remembered that one 😅
I bet everyone here knows these two situations:
1. You have a bug, show the code to somebody else for debugging and the bug is gone, but as soon as you're alone again, it reappears.
2. Your program works fine, you want to show somebody what you accomplished and...
IndexOutOfBoundsException: The index was outside the bounds of the array.11
Same situation as my previous rant.
Was building the dynamic page loader thing (basically mvc part) but it just DIDN'T FUCKING WORK.
As a last resort I chose the views to render based on a few if-else's 😅
Hacky as hell but it saved me from doom!
Not exactly programming related, but I managed to clog the toilet of every office I've been (not on purpose).7
'hey honey look what i made! It works!'
- fiance looks, error messages over error messages, program crashes, files disappear, data loss, pure horror
To this day I don't know what happened. I had to restore my project and re-write the last half hour.4
So a few years ago when I was getting started with programming, I had this idea to create "Steam but for mods". And just think about it - 13 and a half years old me which knew C# not even for a half of a year wanted to create a fairly sizable project. I wasn't even sure how while () or foreach () loops worked back in the day.
So I've made a post on a polish F1 Challenge '99-'02 game forum about this thing. The guy reached out to me and said: "Hey, I could help you out". This is where all started.
I've got in touch with him via Gadu-Gadu (a polish equivalent of ICQ). So I've sent him the source code... Packed in .ZIP file... By Zippyshare… And just think how BAD this code was. Like for instance, to save games data which you were adding they were stored in text files. The game name was stored in one .txt file. The directory in another. The .exe file name in yet another and so on. Back then I thought that was perfectly fine! I couldn't even make the game to start via this program, because I didn't know about Working Directory).
The guy didn't reply to me anymore.
Of course back then it wasn't embarrassing to me at all, but now when I think about it...
Every time I think
"Who the fuck coded this peace of garbage"
And then git blame the file
Only to see that it was me... 3+ months ago2
When I was still a noob programmer, I was working on a website for a big client. We had a demo coming up in big city. So we drove there several hours and went to their office. All the management board and shareholders and what not were there.
So we started the demo. Everything had worked perfect the night before. But on that day, we were right away greeted with some stupid PHP error right there on the first page. Had to fix it quickly so we could continue with the demo, so I logged into their production server with SSH and started fixing the code with vim. I was connected to the projector, so my horrid noob code with cringy joke comments was there for everyone in the room to see.
Eventually got it working, but I saw several people in the room facepalming hard. Can't ever forget the day. :D1
>Auto complete not working
>Searches SO no answer
>Realized file saved as time.py
> Proceeds to contemplate career choice3
I accidentally wiped my entire drive because I fed my program the string: C:/Program Files/ProgramName/program.exe Without quotation marks and my program interpreted the space as a new command. It tried to delete C:/Program, and then the parent directory, C:/. I actually posted a “rant” on here asking how to recover data if you want to dig through my history.
*Edit* Actually, no, I must have deleted the rant asking about data recovery. My bad.5
I had done a fresh reinstall of Ubuntu Server on my server PC, cloned my websites from their GitHub repos, and couldn't for the life of me get Nginx to read them correctly.
I forgot to install PHP. 😑
My first post here, be merciful please.
So, I participate in game jams now and then. About two years ago, I was participating in one, and we where near the deadline. Our game was pretty much done, so we where posted a "alpha" version waiting for feedback.
Just half an hour before the deadline, we got a comment on our alpha alerting us of a rather important typo: The instruction screen said "Press X to shoot" while X did nothing and Z was the correct key. "Good thing we caught that in time, thankfully a easy fix" I thought.
This project was written in python, and built using py2exe. If you know py2exe, the least error-prone method outputs a folder containing the .exe, plus ginormous amounts of dll's, pyc files, and various other crap. We would put the entire folder together with graphics and other resources into a .zip and tell the judges to look for the .exe.
Anyway, on this occasion I committed to source control ran the build, it seemed to work on my quick test. I uploaded the zip, right before the deadline and sat back waiting for the results.
I had forgotten one final step.
I had not copied my updated files to the zip, which still contained the old version.
Anyway, I ended up losing a lot of points in "user friendliness" since the judges had trouble figuring out how to shoot. After I figured out why and how it happened, I had a embarrassing story to tell my teammates.3
So I wrote a code for a discord bot a few months back. It worked perfectly alright. Suddenly one day, the bot starts sending random shit to me!
Then I realised that my bot had been hacked because I didn't use the bot token as an environment variable while deploying!
Instead I added it to the code, which I uploaded on GitHub! 😐5
On my first week in the internship, I have to create a small website and it has to be finished ASAP. So I used Bootstrap.
After finishing I tested the website in chrome debugger tools for every screen size (design responsiveness), it was working fine. My stupidity was that I haven't tested on actual mobile/tablet.
The site was live, I send the link to one of my friends and he said "why everything is so small? looks like I'm browsing on PC". I quickly grab my phone and visited the site and it was not responsive on mobile. Started to check the code again, tested again on chrome tools it was working. But not on mobile. Changed the bootstrap file but no fucking changes on mobile.
After few moments of thinking, I realized that I haven't included the "meta viewport" tag. I felt so stupid and it was kind of embarrassing for me.
Now I first include meta tags before working on new project.5
Our website stopped working. A coworker said her guess from an error she saw in the logs was that it might have something to do with a bit of a commented line in .htaccess taking itself out of comment and into code due to a specific set of characters the line contained. I looked at .htaccess and thought “Nah, that can’t be it.” and proceeded to troubleshoot pretty much everything but that. After 30 minutes my coworker opened the file and fixed the comment and all was well. I felt stupid because on our team I’m supposed to be the expert that figures out stuff like this.
I attempted to correct a higher up to show off my *amazing knowledge* on the subject matter (aka 5 seconds of googling)
Turns out what the higher up was talking about was actually correct, but was so vaguely known that it took deep diving into the docs to even find. What I was talking about was similar and technically also correct, but not relevant in the situation.
I was still pretty new at this point too. Luckily it was online so I just shamefully deleted my comment, but they probably saw it anyway.
Tough being a newbie trying to impress people! Doesn't help being helplessly awkward as well2
It was the first time I worked on a big project with a big team, I looked at the given code and copied their code style.
I finished very fast and everything was working fine, was really proud of myself. I'd like to add some logging though.
Programm failed it was heavily async and parallel so 2 days of debugging had past the whole team was on board nobody knew what went wrong there.
As I stared into the darkness of my code I suddenly saw what went wrong 😂
As I adopted no curly braces style of the Team for
And I added logging above without braces everything broke 😂 it was indented properly so as a heavily python user everything looked fine2
So I have too many posts for wk110. It's sad. Here we go. I got a bad grade on an assignment for a hello world program in college. How do you write a hello world program that successfully prints hello world and not get 100 percent?
The teacher insisted that we write a console "hello world" program in C++, on windows. If he can't read hello world, you fail. So you must add `system("pause")` at the end so the window stays open. One problem: system() is horribly insecure and im stubborn. I refused to write exactly what he wanted, like everyone else did, because I try to not write code I know is unsafe. So I ended my script with cin.get() which also pauses for input. Unlike pause however it can't be any key, it reads a line, so you must hit enter. This was "unfavorable behavior" and ultimately I got something like a high C, low B grade. Only person to not get 100%8
Blaming someone and giving them a lecture on a bad code/bug then realizing it's not a bug or that I fixed it incorrectly.
I was giving a demo for a university project. It was a simulation of a bunch of healthcare robots in a 3D world.
When the demo started, two of the robots attempted to path through the front door at the same time and promptly got stuck on each other. We were allowed to manually unstick them, so we did so.
Once they were going again, they decided to not to turn down the hallway like they were supposed to. Instead, they drove through one of the walls of the house and continued until they disappeared of the screen.
We never saw them again.1
Yeah i applied for a job once without much js experience. I got invited for an interview and a couple of tests. The interview went well. I think the cognitive test wasn’t bad either.
However they wanted to see funky js shit i hadn’t ever done or see before and also was totally useless skill wise.
I asked if i could google answers (who doesn’t in their daily script job?) but i wasn’t.
I tried for like 5 or 10 minutes and then blurted out to the major CTO super tech savy master degree microsoft-o-worthy, that my js skills weren’t up for the task.
He gave me a couple of links to pdf’s with programming basics teached at a high school. Totally cool and understanding.
I walked away ashamed and probably red as a tomato. Excused myself for wasting his time and left as quickly as possible.5
In college I was working on a PHP app that needed to get a list of people to send emails to from a DB and send an email to all of them.
The good news is, I had hard-coded my own email address for testing so I wouldn't annoy anyone if things got messed up.
The bad news is, I had done something wrong and had an infinite loop. It was only running for 30 seconds or so, but the emails were coming in for hours.2
I spent two days of debugging for a typo. Literally two characters were switched.
Took my coworker 3 seconds to find it.1
It's not that big of a deal, but it's kinda embarrassing since I was one of the best students in the class.
Took a web design (HTML, CSS & a tiny bit of JS) class. I never really struggled; more like polished everything I already knew to become a bit better.
In class working on an assignment. So we have a folder dedicated on a server just for this class. The folder is accessible as long as you're on the school internet or using the VPN. So I have an assignment there. I drop it onto my desktop, because i had worked on it since the last time I was at this computer.
I opened the project in VSCode and begin making changing things. I opened the HTML file wasn't updating. "That's odd" I thought. Cleared the cache, opened and closed the browser. Still nothing. I called the professor over to see if had any clue what was going on.
My dumbass self was editing the file that was on my desktop, but I had opened the HTML file from the server. I felt so stupid but we both just laughed it off and went on.
We were on a time crunch for giving a demo. A friend wrote a piece of code and he said it was working exactly the way it should be and that we can directly transfer to my machine and run it. He ran the piece (on his machine to show me) and it worked.
I take the source from him transfer it on my machine (because mine was going to be used for the demo).
Demo begins, everything goes smoothly ...all up until the point of the last module demo. Alas, the transfered module didn't work. Tried debugging during the demo as everyone was cooperative and patient. Turns out I hadn't done an initial setup required for that module. Embarrassed! 😓
Should have tested before the demo. 😞
FML. But from that moment forward i make sure to test every code I get from others as well as the one I write.
For anyone planning to ask me, I don't remember what the piece of code even did. It was a small time side project with a company. Not revealing the company's name.2
Was helping an intern with testing and he was trying to hit a specific branch in the code and just couldn't get there. Spent probably 20 minutes trying to figure out what the hell was going on since by all reasonable logic the code should run. Getting other developers involved trying to figure out what the hell was going on. Then discovering he was using a stub of the class with the method we were trying to reach overwritten to simply return null. Pretty much just wanted to go on a walk at that point.
I had spent about 3 months working on a feature for a CAD software in a company where I was an intern.
The day it was ready I commited everything to the main branch and asked a senior dev to check it.
It didn't work… we spent 30 minutes, tried almost eveything, but the software kept crashing (even if "it worked on my machine").
At that point he said "ok, we won't include this feature, it's ok"... even if I worked really hard for months to make it work, I felt so bad.
A few hours later I found out that for all this time I was trying it in debug mode, and a few types of errors were ignored, something which of course wasn't happening in release mode. Worst day in that company.
The reason I wasn't testing it on release mode was the fact the solution was so big it took about 45 minutes to compile it (using IncrediBuild, compiling it using more than 10 machines at the same time), so I always used the debug mode to compile every small change in less than 2 minutes.1
Happened this weekend, bought a website template and added it to my git repo and after 10 minutes wait (slow internet and too much images) I realized I added the wrong template
Had to start again 🤦🏼♂️😪
I've been programming professionally for a year and it went without any embarrassing experience, even without thinking about preventing any embarrassment ._.
Am I boring?5
This is my #wk110 about a project from when I was a real n00b. It can also be read as a rant about myself.
So I decided to code my own terminal based password manager. Because, you know, whom can you trust the most; yourself or some random password manager from the internet?
Obviously, encryption plays a major role when storing such sensitive information. So n00b me decided to go with Base64.
I developed a password manager that stores your passwords in Base64 format.
What must I have thought?!
Perhaps the gibberish looks of Base64 encoded data made me think that this actually is encryption.
After having realized my stupidity, I quickly replaced Base64 with AES and more recently I completely rewrote the whole project which is now also available on gitlab: https://gitlab.com/bitteruhe/sesame
This act of stupidity still embarrasses me every time whenever I think about it, though.
I wrote a launcher for a game that was still alpha once. The developer uses zips generated from TeamCity to distribute the game. The launcher wrapped around that so it could download the latest file and unpack it as needed. What could go wrong?
This was written in C# via .NET using a ZIP library originally written for 3.x, I assume. Microsoft would later adopt a version of that library and I tried to migrate to get rid of a dependency that was technically no longer needed. It worked perfectly on my end. I think I tested on existing installations but given what happened next, I'm unsure. Regardless, I pushed it up.
Turns out it was only unpacking half the files. I got complaints out the wazoo on their Discord and I had no choice but to revert back to an old version and push that up. This had an unfortunate side effect of creating an LTS while I worked out the bugs in the new version. Luckily the game developer was away and likely didn't take notice or I probably would have gotten lectured.
When you make the whole damn game using c++ but you copy one tiny bit of code to use the mouse in graphics mode but they catch you and make you explain it to them and you can't...
This was back in high school when I was younger and dumber.
I just had the most embarrassing moment in programming... I am writing an administration / client / invoice webapp and I was testing an export function that worked locally, because everything that was being exported was inside the folder.
So I exported the files in test production, but some invoices didn't exist. So when they don't exist, the system creates a new invoice.
Because I was running on the test production (with client data) the system emailed the created invoices to the clients.. now I have to contact some clients and tell them the invoices were sent accidentally.2
I had literally JUST learned to code, after completing an online course. I had played around making some tiny C# programs was looking for my first Junior job. A recruiter got in touch and to him I sounded like I knew what I was talking about. So he contacted the employer, called me back me later on and said that the employer wanted to see some sample code of mine.
"Sure!" I said eagerly and pasted my programs into an email. My two programs were probably about 20 lines of code in total - both Console apps. One was a stopwatch which I "hadn't quite got working yet", the other a Quadratic Equation solver.
The response came back that I was "too Junior for the position".
I know we all have to start somewhere, but I painfully cringe when I think about this employer and probably alll the devs there crowding around his monitor, pissing themselves at my tiny programs.3
Back in my college, my professor was trying to demonstrate how to install hadoop using my laptop.
Now, he asked me to type my password
Even I thought it was asking my password. So I started typing it but my password was my crush's name (aakank....).
I typed till aaka and then realized what happened.
Fortunately I was able to handle the situation by typing
"Aakanakabaka" and saved my self.1
This story is related to Docker containers.
Three years back when I heard about docker my first impression of docker was mini Virtual Machine. Then when you start your first container it’s no way to get out apart from pressing ctrl+d or leaving it like a screen. One of the most embarrassing thing with it was I tried really really hard to setup SSH on one of the container to log in there somehow. Then I understood how to use Dockerfiles and the command called `docker exec`
I thought Dockerfiles are the most amazing thing I have ever used for docker. But then I got introduced to docker-compose, and now it’s same with kubernetes
Now a days I read most of the document before doing hands-on on any new technology.
A year ago i made a binary which very quickly checks all stuff we normally check on customers PCs manually via a few WMI queries.
It worked well on 3 dev machines, so i went to my department lead, told him to execute it and the fucking thing just spews WMI errors left and right.
Even though it showed us that some very low level stuff in his Windows installation was broken it was just embarrassing as hell.
Shortly after I had all checks fitted with a secondary method in case WMI fails.5
Working a a GIS company, which just makes this so much worse:
Had to do conversion of wind direction degrees to shorthand symbols (N, SE, etc). Everything ends up rotated by 90 degrees, and the project manager craps on the dude that wrote the API I get the degrees from. He claims innocence, so I get it next.
Turns out, I used the Cartesian system (where 0 starts on the right) instead of the cardinal directions (where 0, North, is at the top).
Yeah, still haven’t lived that one down...
I had a bug in my code, I was sure I fixed it but when I tested it nothing was charged. I asked my friend to take a look, and when he looked over my code I found out what the problem was: I tested with the older version.
Not knowing what persistence was and copying JS objects with JSON.parse(JSON.stringify(...)) trying to make it “pure immutable”.
it was the last time i used PHP for an school project. i and an other group decided to make an website. it was luck that no input was required. Because i already knew PHP and HTML i need to help them. the code they made was the cause i quit php. the site only worked after an redirect. it was irony that tje code looked like it was written from a junkey and the theme was drugs.7
Mixing up 1 comparison operator, fucking up the whole outcome of a script..
Be careful with your && and || guys!2
During my first job as software engineer I was assign to setup meta data upon implementing the meta data I accidentally forgot to remove the static og:title="Im ocabafox and Im handsome AF" and it was deploy to production. After few days someone send an email that when they share to facebook there is a text Im ocabafox and Im handsome AF. :D
Back when I was a total noob at programming probably 6-7year back. I once fucking try to memorize even-odd number program for the practical test because I was unable to understand anything related programming.
It was like - read 20times the include statement and try to remember what was in between < >.
I totally feel embarrassed now after looking back, that silly me didn't even try programming properly.1
Well, this has probably happened to quite a few people, but I’m going to share anyway.
I was programming for exams and stuff like that. I did everything 100% clean, it was nice. And then, in the last program, I had to do something with arrays, I don’t remember what now, but it remember that in my rush, I forgot that arrays start with 0. Oh boy...
So my code wasn't working and couldn't understand why. I had a statement like someVar == 'A' but when I wrote the letter A I didn't change my keyboard language from Greek to English and I didn't notice because the letters are the same in both languages. Spent like 8 hours commenting out and debugging code just to re-write all the code cause I thought the compiler is broken or I am losing my mind....1
I want to know of the educational systems around the world because I think that my country's educational system is the worst over them all.
In my country schools literally turn students into books & their worth is overwhelmingly decided by their marks. Because of that system students don't try to learn anything outside of school program. Currently I am suffering from that because I can't keep up with my school program & learning programming & algorithms for competive programming at the same time.
Sorry for my bad article & my bad English 😢.8
In my first company, they used to call php echo everywhere in the code. No one used ajax or anything async. So it always was
echo "results in some fancy <div> with some css";
First time I wrote an Ajax call, I didn't know how to format the data to read them in JS, since we used to directly echo results from php into divs and whatnot.
So I came out with this:
For every row, split the column using ||
and then delimit the end of each row using //
Then retrieve the result in Ajax, and split using JS on || and //
for example a user table with name and age:
I didn't even create constants to access them from the array later. I did shit like
var name = userRow
var age = userRow
I always pray no one will ever need to maintain this, and find out what I did :]
All I needed was a json_encode() lol
me, first job interview:
interviewer: so how about your knowledge of java
me: yeah, done some projects, should be ok
interviewer: what about polymorphism in java, can you tell me sth about it?
me (thinking i'm totally right): hehe, you can't do polymorphism in java!
guess what, didnt get the job :D7
Way back in university, I was trying to do an assignment for an OOP class and it had to be written in C++. I was writing a simple function since I was a beginner at it and I couldn't understand why my program wasn't working. I spent an entire practical class lesson trying to work out what the hell was wrong and in the end, I got my friend to look at it. After only 2 minutes of looking, he asked if I had declared my functions. Obviously I had not.
#define someError ( -1)
int func(params *param)
Spent like half and hour on debugger thinking why the fuck does it skip my statement. My manager who was passing by saw me puzzled and asked if he could help, so we spent another 10 minutes without success(tho my manager is technical guy but he had an unlucky moment I guess). Eventually senior manager saw our wtf faces and asked what is going on, it took one question for me to light the bulb "someError is a macro right?"
I guess you can imagine my embarrassment at that moment..
PS: Forgot return keyword before the error code.
Previous job I worked, we had a system for taking bookings. I may have made a slight miscalculation in implementing the payment api. Which resulted in people being double charged, undercharged etc. Tbh the payment gateway was ancient and we had to grapple with their SOAP API not fun. But just shows we all made mistakes, suppose it's how you deal with them, when they crop up that defines us as devs.
My first intern for school.
It was for less than two months (so I don't get paid), and it was developing HTML on Joomla!.
I lost money (since I was living on my savings, no scloarship during the intern, and had to take the train, which wasn't paid by the company, of course no), nothing more learned, I wouldn't call valuable that experience since I want to avoid CMS as most as possible, lost a whole summer.
I have it on my CV just to talk about it and say "Never again"6
The whole episode of me managing an outsourced team for about 6 months. I thought because I’ve managed other teams doing non dev things, it would be like that.
I’ve never been so wrong and NEVER AGAIN! I had to own everything and they’re code is so repetitive and confusing. It misses basic structure because I didn’t outline some things like knowing when a operation is complete and that if the same button appears in two pages it should do the same thing! Or that is you break up a SPA you shouldn’t just duplicate the whole files and then confusingly use randomly parts to so random jobs across all layers of the app. Ffs. Never want to work with a team that doesn’t have a plan to maintain the code they write. I felt like a failure but for me to make them successful I would have had to pretty much write the code.
Now I have to explain this embarrassing pile of curry spaghetti to my colleagues who need to do some other work on it. Fuck. I want to throw it out and start over so badly.
I should have told my boss a hard no on that one and let him know outsourcing would slow things down not speed them up. He just needs to stop trying to get software developed and deployed at the same time. Fuckers.3
This was sadly recent. I have git checkout aliased to ‘gco’.
I was on a dev branch with a load of uncommitted changes, and I accidentally ran ‘gco ..’ instead of ‘cd ..’ (I use them both quite often)
That was one of my more frantic google searches.....
Thankfully I was able to get all my changes back, but only thanks to IntelliJ’s local history feature allowing me to revert each file reload from disk.
Friend and me from the university need to write a program to parse Value-Change-Dumps from different files, and merge them together in a new file to easily compare them. This project last for the whole semester. The program was for one of the professors and we need to meet with him and give him an introduction how to use the program (was cli & gui based)
Long story short: enter office, give him the link to git repo. He clones it. Clicks on it and boom. Python error. Some Tkinter Error. OK ok after a few minutes we solved the issue by installing some additional packages and our program starts. But it doesn't work. About 80% of the buttons did nothing. WTF!??
Oh. We used git flow for fun and haven't moved the development branch to master and he cloned outdated code. We need nearly 30 minutes to solve this. 🤔And I'm just happy that this professor was just a calm guy . He was also happy because now he does not need to run multiple instances of GtkWave to compare his simulation results.
Implemented a function to a Drupal syst3m to link to a reference page with preselected filters. After days of struggling I noticed that this function already exists. It already were implemented with one of our modules...
Last week I was working on a web development assignment (php and bootstrap).
I had a few problems but the most annoying was that bootstrap didn't want to apply to one specific element.
I sat there, looking for the error for about 2 hours. When I finally found it I was raging inside. I mistyped a - instead of an = after the class attribute (i.e. class-"Foo").
The mistake was hard to spot because of a combination of the font and the low screen resolution - 2 hours wasted because of that shit
Accidentally reverted the repository wiping all the non-versioned custom patches in a production client! I thought it was my computer’s terminal. Luckily we’d got a backup from last deploy. Later we customized the bash prompt in all prod servers to avoid confusions like this.1
Was working on fixing some test cases in js, tried everything i could but part of test case was never executing.
After couple of days of pulling my hairs, found someone had overriden the test lib methods by mistake😭😭3
ummmm an update without where..
mates, if you are reading this plz forgive me! i was not focused!!
One fucking mistake! not a big deal..
Not the 'most embarrassing' part but not my proud moment either.
My sir have recently put me alongside him as the teacher assistant in this summer's batch. Last week he had to go somewhere so he asked me to take a github session with the class( well not exactly asked, but i just voluntarily commented) . mind you am myself a novice, never done anything beyond pushing data commits and pull requests. (But sir was fine with it , saying he wants the students to atleast enough knowledgeable to submit there homeworks.)
Fast forward to Night before class and i am trying to sleep but couldn't. I had all ppts prepared, hell i even prepared a transcript( hell i uploaded it to pastebin thinking i will look at it and read ).
But worst shit always has to happen when you do a presentation.
When the class started, the wify was not working. Those guys had never had done anything related to it so first thing we did was to make sure every of them gets git installed(with lots of embarrassments and requesting everyone to share their hotspots.not my faluts, tbh).
Then again, am a Windows-linux user with noobie linux and null mac experience. So when this 1 girl with mac got problems installing, i was like, "please search on SO" 🐣 .
So after half an hour, almost everyone had their git/github accounts ready to work, so i started woth explaining open source and github's working. In the middle of session, i wanted to show them meaning of github's stars ("shows how appreciated a repo is"), nd i had thought of showing them the react js repo . And when i tried searching it i couldn't find it (its name is just react, not reactjs ) so ,again :🐥🐥🐣
So somehow this session of 1-1.5 hour got completed in 4 hours with me repeating myself many many many times.
And the most stupid thing: our institute has every session recorded, so my awkward presentation is definitely in their computers 🐣🐣🐥🐥
Recently created an app and uploaded it on Play Store. The download rate was great until a few days back. Suddenly I saw that the download rate was dipping drastically.
Then I read, "Download rates of new apps on playstore dips because of change in play store algorithm".
Wow! Thank you Google! Also, fuck you 😐
In my early programming days I wrote a C++ program to store marks of n no of students but didn't got the output I checked for 3 hours then found that I was storing the data in another integer value and not in the array.
Back when I was starting out in a full stack role, I worked on a fairly big chunk of functionality that would trigger off a few entry points. It was wonderful for a few months. As we approached go live, our QA team started reporting weird intermittent issues. The logic wouldn't "trigger" the first time, but would on subsequent saves. Worse yet, the state required resetting of data every time we needed to test. Three weeks later, it boiled down to a 2 second time difference between the database's GETDATE() values and the new Date() object we passed in from our application.
I'll never forget that one system should be the source of truth again.
First time would be when I had two teachers working of a bug that resultet in the CSS not loading / updating properly. It took me around 1 hour as well to realize that the text file was encoded with some obscure windows encoding, that doesn't load chrome (and maybe other browsers) can't load properly.
Thanks notepad++, will never use you again for web development.
Second time would be when I presented an app I made too the same teachers in order to boost my mark. Bugs that never appeared before every where and the basic functionality of the app was questionable. I hadn't worked on that app for half a year and had to fix as much as possible in a short amount of time, which might have made it worse.
Don't ask why but thanks to my knowledge about the france language I got a better mark, even though it was spanish2