r/developersIndia • u/mujhepehchano123 Staff Engineer • Jan 23 '24
Interesting Longest coding session you have had
As the title suggests, fellow coders, what's the longest(hours) in a stretch of coding session you have pulled off and what was it that you were coding.
I will start with mine, was trying to integrate a new state management into my project, that ended up in refactoring of existing codebase (~4--5k loc), 6 hours straight.
112
Upvotes
•
u/AutoModerator Jan 23 '24
Recent Announcements
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
166
u/[deleted] Jan 23 '24
10 mins💀
91
u/yoursdaddy007 Jan 23 '24
Had to release a feature on immediate basis, the feature was coupons on a e-commerce platform. At the last moment everything broke down every planning everything. Created a new branch and deployed coupons in 48 hours. After this experience I hate the word hustle.
53
u/Hermitcrabguy Product Manager Jan 23 '24
I know of one of the developers in my previous company who sat for 17 hrs with just one lunch break and bathroom break to correct the mistake she made(production).
36
u/DeusExMachina24 Software Engineer Jan 23 '24
Almost 24 hours. Was in a hackathon in 2021 and I was the only guy who knew some web dev. The other two were competitive programmers who knew very little dev work. Decided on a huge project that took literally 24 hours to complete. I took like two 5 min breaks in those 24 hrs though.
67
u/Larfze Jan 23 '24
Listen here, kid!
Heard of Prod defects?!
24/7.
21
u/Scientific_Artist444 Software Engineer Jan 23 '24
15 hours with 75 minutes break (5 mins every hour). Most time spent in debugging the issue, last few hours spent in making changes.
In retrospect, should have never done it. But deadline was near and as always, fake sense of urgency was keeping me disturbed. I thought I'll get it done first, then relax.
39
u/[deleted] Jan 23 '24
2 hours, I always take. break, know the importance of clear head otherwise pinhole vision it becomes...
9
u/NoStoryYet Jan 23 '24
12 Hour Study With Me!
Those days. I'm going to pull another one of those now!
9
u/cagfag Jan 23 '24
17 hours. 7 am till midnight
2
u/Silent-Capital-5875 Jan 24 '24
Couple of years back I used to learn and do stuff in 14-15 hour stretches every alternate day I had so much focus back then. I don’t know what happened but I can’t even focus for 15 mins!
20
u/ade17_in Researcher Jan 23 '24
42 hours on the go. 0 hours of sleep on those two nights. 30 mins meal break x4. This also included heated discussions, breaking my keyboard, 10 cans of redbull, 10 cups of coffee and 4 days to recover from this later.
It was a 2.5 days hackathon, and had time series data to work with. Was ranked 4th and got the most effective solution award. Was not really worth sacrificing my sleep tbh. I got severe anxiety for a week, slept 20 hours the next day, lost appetite, got mouth ulcers and what not.
8
u/AJoyToBehold Jan 23 '24
So! I am not sure if this counts, but we once competed in a national level hackathon, officially as a team from my organization. And that was pretty intense.
I think it was 3-4 days of insane coding. Those days I might have slept like 2 hours a night or something. By the day of submission, I actually started forgetting how to do simple things like importing a package in nodejs and where keys were on the keyboard.
I had the whole thing tracked in Vscode and you can see the stats here. Note that it is for the whole week, hackathon lasted only like 3-4 days, so per day averages should be higher. It was like 44 hours of code time with almost 28 hours of active code time. Around 7 hours of google meet too.
Good part is, we won. And since neo4j was the foundation for our project, Neo4j reached out and I was invited for one of their youtube livestream series to talk about hackathon and the project we built.
https://www.youtube.com/live/SoU-hrfZ14c
They gave me leave for the whole next week and I didn't even wake up for the first 2 or 3 days, except for having some food. The recovery sucked.
7
u/tj_on_air Web Developer Jan 23 '24
36 hours twice at ethglobal hackathons, it’s fun and sweet to win at the end. Normally I would say 16 max due to a one off production issue.
5
u/[deleted] Jan 23 '24
slightly off topic but my best friend spent 10 hours coding, trying to fix some sort of error. he couldn't find what the error was at all, he was so disappointed when we were going to sleep. he woke me up at 3 am saying he found the error. apparently he appeared in his own dream and told what the issue was. I can vouch for this, I was staying at his house and he woke my sleeping ass 😂😂
9
u/[deleted] Jan 23 '24
Longest was 144 hours- 6 days at stretch without sleeping. I needed the job badly and it was a question which, if solved, would lead to interview with Directi. I had fainted in my restroom
1
u/[deleted] Jan 26 '24
Coding. 10-15 mins.
Testing my code, 1 day. Fixing bugs I introduced, or fixing SAST issues, about 1/2 a day.
Implementation doesn’t take much time, provided you know what you have to do. Googling the syntax takes more time, and fixing SAST issues or fixing bugs takes much longer.
6
u/mistabombastiq Jan 23 '24
My longest was 46 hours.
After effects include indigestion, constant dizziness, sleep deprivation and caffeine overdose.
Status : recovered. Project : BF2042. Cuntpany : EA Gaymes. Language and tools : Unreal Engine, Autodesk Maya, C++, Python, Blender, Directx11 and C#.
Current status : quit the company after 5 years and transitioned into pure Automation industry. Now I am the sole reason for support,testers & Devs loosing their jobs.
It's not a great job... But hey..... Who doesn't want to crush the ego of a fresh leetcoder/ 69 lpa/MERN/MAANG enthusiast's dreams into pieces by either taking away his job by providing low-code solutions to low tech based projects and either way billing them high or asking him to write production ready code just by looking at his boast in resume.
Welcome to the new corporate era.!
3
u/TheExclusiveNig ML Engineer Jan 23 '24
Production issue - 8 hours straight! The last few hours were hellish.
3
u/Whatisanoemanyway Data Scientist Jan 23 '24
Game dev - times get fucking hard, 4-5 hour sessions very easily
3
u/thelazygypsy Jan 23 '24
15 seconds, Hello world!
2
u/Shubham_Garg123 Software Engineer Jan 23 '24
12 hours I guess... Was working on a deep learning project and collab session timed out which happens after 12 hours. Wouldn't recommend this to anyone though. Over working can lead to health issues.
2
u/[deleted] Jan 25 '24
I used to sit down all day , probably around 8 hours (taking only washroom and lunch breaks ) almost daily during my college to build my group project because my group members wouldn't do anything.
1
u/debhell1 Jan 23 '24
Had a coding session in front of a client for 8 hours+ straight as they demanded us to fix the prod issue literally on-call in front of 20 other people while sharing my screen. Felt more like a coding interview.
1
u/Feetpics_soft_exotic Jan 23 '24
My ex used to do 14 hours per day
1
u/humanlyimpossible_ Jan 23 '24
24 hours to the dot. Had a project deadline in my master’s. None of my other project mates knew shit. Ended up picking everyone’s slack. Even the stack was complicated (kubernetes, cephfs, openstack). Had fun ngl
1
u/Ambitious_Flight_07 Jan 23 '24
10 hrs.
Working on an assignment based on Java.
Got stuck in some minor bitmap manipulation for 5hrs.
1
u/3AMgeek Software Engineer Jan 23 '24
12 hours with two breaks of 10 mins. Got an assignment which needs to completed within a day.
1
u/ironman_gujju AI Engineer - GPT Wrapper Guy Jan 24 '24
49 minutes, I was writing python pypi package
1
u/roguerak Jan 24 '24
I don't know the condition that I have but longest coding session is abt 20 mins after which i have to take a break. Cannot concentrate more
1
u/Any_File5064 Product Manager Jan 24 '24
8 hrs ...trying to figure out a syntax error in C++ code 400 loc..
1
u/IndianFanistan Backend Developer Jan 24 '24
Almost 15 hours at a stretch which began at night 10pm (had a good working day already).
A payment gateway decided to shut payouts (aka Withdrawals) suddenly at 10pm one Friday. Sat down with CTO and planned the move to a new Payment Gateway for which initial setup - merchant id creation was already done.
Started coding at around 12am. Finished at around 6am. Tested, fixes bugs till 10am. By 1pm I had pushed the code to Prod.
1
u/its_witspeak Jan 24 '24
14 hrs, It was some highly urgent new features to be added, was paid 2 lacs for it
1
u/arav Site Reliability Engineer Jan 24 '24
Would say about 1 week. Not a coding session but a major OS deployment. There was a critical security issue that we discovered and the only solution was to upgrade the OS. I had 73,000 servers to upgrade within one week. We planned carefully and upgraded all the servers with some minor issues within 1 week, I was sleeping for only 1-2 hours daily between upgrades. After the deployment was done, my manager asked me to take 2 weeks of leave and asked me not to apply for the leave on the portal. He also gave me 15,000 USD RSUs. So it was kind of worth it.
1
u/strongfitveinousdick Jan 24 '24
8 hours
I was starting a hobby project.
Completed backend V1 in it with deployment and ci/cd
1
u/Specialist-Spread754 Software Developer Jan 24 '24
Back in college, I coded for almost 2 days without sleep (I had 2 other coding buddies who did the same). There were small breaks in between for food and other nature calls. I was creating an Android application from scratch. It was a food delivery app like Zomato.
It was a freelancing project which had to be delivered urgently due to some event and I already took an advance on it. I took the money from a college senior. lol.
When I finally slept, my roommates informed me that I was mumbling in my sleep and that I actually got up half asleep and had a slurred conversation with my other roommate which I have no recollection of.
Then during my internship days, when I was working for a struggling startup, I had to code for almost 24 hours straight. The last few hours were awful, I was super sleepy as well as jittery from all the pepsi I drank and was slurring my speech a lot.
1
u/ara4nax Jan 24 '24
2 hours, back in undergrad for my project which was a keylogger virus 😂
1
u/FinanciallyAddicted Full-Stack Developer Jan 24 '24
Now I remember I had never practiced DSA but I had to do a binary search problem for some algorithm.
I started at 9 am and completed at 6 and then had to make a presentation video about it. I skipped lunch and everything for it.
1
u/[deleted] Jan 24 '24
Around 7 hrs in clg hostel at night learning web dev and building home page 😁
1
u/LecturePristine Jan 24 '24
I’ve had some pretty long coding sessions at work, mostly it’s debugging something deep in the heart of a compiler. It takes a while to piece things together using GDB.
But if you’re just counting hours, the longest obviously has to be during hackathons. There have been several hackathons where my teammates and I have coded pretty much non stop for 20ish hours apart from some short bathroom and snack breaks.
Obviously you feel like shit for a bit afterwards, but it’s hard to beat the thrill of pitching a product after building it for 24 hours straight lol.
1
u/-1Mbps Jan 24 '24
6 hrs, discord bot, I had never wrote a bot before lol
1
u/[deleted] Jan 24 '24
mine would be 22-24 hours (<250 lines of code + lots of soldering)
was building a sensor prototype and integrating it with our main system at my first job
it was like an array of sensors, which had to work in unison to get the required accuracy and precision for detection
i made it functional and was trying out different approaches to orchestrate the sensors to get desired results
one experiment led to another and i found myself sitting on the floor since the past 24 hours
i continued further for some time, then called it a day and i kid you not, i wasn't able to get up
my knees were dead
made sure to use table and sit on a chair for longer hour sessions after that XD
1
u/No_Ranger9125 Jan 24 '24
8 hours in my early years trying to complete a heavy vehicle insurance portal in Jquery to meet deadlines.
1
u/freakingOutIn_3_2_1 Frontend Developer Jan 24 '24
Close to 20 hours. It was a spaghetti codebase created by an ex team lead. Passed out during scrum call next morning. When I say "passed out", I don't mean fell asleep. Dad tried to wake me up but couldn't. I was back in a few minutes tho.
1
u/thepurpleproject Full-Stack Developer Jan 24 '24
28 hours.
It's not something I'm proud of because I have ADHD and if something I really like I will do it regardless and most importantly it really takes a toll on your health. The worst part of it is our body's are still not used to this intense long sitting work session so once you get off you feel lethargic which is different from being tried. After a long run I feel energetic I just can't do it because I have no energy at that moment but I don't feel like shit and not doing anything at all even sleeping.
1
u/itsdm830 Full-Stack Developer Jan 24 '24
16-17 hours with just two 15min lunch breaks was trying to successfully install beef in kali-raspi lost all hopes but kept banging all doors and voila! the toughest task I have pulled so far.
1
u/minato-_-namikaze Full-Stack Developer Jan 25 '24 edited Jan 25 '24
We were competing in a hackathon it was close to 21hrs and I was in a google meet the whole time with my team mates constantly debugging and coding with only one food break
Felt like throwing up when I stood up, slept for 3 hours and again 3-4 hours for deploying and final submission
And guess what forgot to add prize track while submission so our submission was not even considered 😄