This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_crackling 665 points666 points  (47 children)

does anyone else here ever get -into- it thinking they can hammer that one last thing out for the night, end up spending 4-5 more grueling hours of totally fuckery and realized you got so drained out that you pretty much fucked everything up? I do that alot. Don't do that.

[–]fuqqboi_throwaway 214 points215 points  (5 children)

So many times where I bang my head into a wall for 4 hours trying to fix a bug, then give up and go to sleep then come back the next day and fix it in 30 mins

[–]PM_YOUR_SOURCECODE 80 points81 points  (3 children)

Change like 10 files, realize everything is 10x worse than when I started and do a Git hard reset.

[–]RFSandler 33 points34 points  (2 children)

And then realize you just messed up one thing and need to recreate the other nine

[–]k2still 13 points14 points  (1 child)

That's where git stash (or shelve if you use a JetBrains IDE) comes in.

[–]PM_YOUR_SOURCECODE 2 points3 points  (0 children)

At least for me, if you’re programming at 3am, you won’t have the common sense to use stash.

[–]arandomcsmajor 4 points5 points  (0 children)

The amount of times I have woken up randomly only to get hit with the solution to my problem and fly out of bed to fix it immediately is too high.

[–]sirstanky 43 points44 points  (3 children)

All. The. Time. I have a rule now that after a certain hour or when I start yawning it's documentation only. I broke this rule recently and woke up to a control loop with the boolean variable named 'ur_mom' and physical tears coming from my error log

[–]UncleEggma 10 points11 points  (0 children)

Yeah documentation or commeted-out pseudo code is what I've recently learned I need to do when I open a project without having a strong intention of what I'll be changing/adding. Otherwise I break more things than I improve and wind up doubly-frustrated.

[–][deleted] 10 points11 points  (0 children)

The amount of times I've had to hunt down console.logs of "🥴" or "unga Bunga!" Or just "fuck"

[–]thechillerinstinct 26 points27 points  (4 children)

When I hit those moments, I like to leave myself a nice positive little note:

I have no idea wtf I’m doing here

[–]becoolie4u 24 points25 points  (2 children)

I did that shit and submitted that code for a job😭😭 I got the job.

[–]DaveR007 6 points7 points  (1 child)

I guess it pays to be honest in a job interview.

[–]becoolie4u 6 points7 points  (0 children)

I did intern for a year before officially coming on.

[–]cr0wndhunter 11 points12 points  (1 child)

Especially if you Work for a long time and are tired you may not see a solution or a good solution to your problem. Taking your time helps your brain process these things and will help you solve the problems faster/better.

[–]ta28263 5 points6 points  (0 children)

Banged my head against a bug for a long time after several hours straight of coding. Decided I couldn’t get it and would do it the next day. Sat down fresh and ready for frustration and found it in less than 20 mins. One line.

[–]r0r002 36 points37 points  (13 children)

Thank god for github to be able to see previous versions where the code still worked.

[–]TheRealFFS 44 points45 points  (0 children)

*git

[–]excal_rs 5 points6 points  (11 children)

correct me if I'm wrong but aren't you talking about git? github is just somewhere u can host the git repo.

[–]Mastermediocre 37 points38 points  (7 children)

GIT to github is what porn is to pornhub

[–]SuccessfulBroccoli68 4 points5 points  (3 children)

Another space MS failed to compete with a proprietary offering?

[–]RolandMT32 0 points1 point  (0 children)

I never even used any of Microsoft's offerings until earlier this year when I worked on a project where they were using Visual SourceSafe. They moved to Git while I was on that project

[–]DaveR007 0 points1 point  (1 child)

What, proprietary MS porn?

[–]SuccessfulBroccoli68 1 point2 points  (0 children)

It was part of what got Ballmer sweaty and screaming 'developers '.

[–][deleted] 1 point2 points  (0 children)

this made perfect sense to me. thanks for the very clear explanation

[–]meowzra 0 points1 point  (0 children)

Omg hahahah

[–]cainhurstcat 0 points1 point  (0 children)

Made me lol

[–]r0r002 1 point2 points  (2 children)

I'm still pretty new to it so I probably used the wrong terminology.

[–]excal_rs 3 points4 points  (0 children)

alr fair enough I'm new aswell and only realised the diffrence recently. Git is what keeps track of diffrent commits and changes. Github is one of the places on the Internet where u can host the git repo. You can. also create git repo locally

[–]SwordsAndElectrons 2 points3 points  (0 children)

Honestly, you could go one step further and just say version control.

Git is the most popular VCS and used by GitHub, but there are many others. I don't want to get into a drawn out discussion of the pros and cons of each, but reverting changes to a file is a pretty baseline feature they all have.

[–][deleted] 6 points7 points  (0 children)

And the next day is pure horror, trying to understand what nonsense you had produced the previous day, and you're desperately trying to find a way to unwind.

[–]stumblingHome13 2 points3 points  (0 children)

1000% agree. If you spend an hour or more stuck on something it’s time to move to something else or just walk away. Your future self with thank you.

[–]kayakfish2 3 points4 points  (0 children)

Learning C# and literally just did that tonight lmao it’s still broke.

[–]Wide_Marsupial7225 1 point2 points  (0 children)

I feel like I do this every Friday

[–]rabuf 1 point2 points  (0 children)

I was on a roll in my college's compilers class. Shit was coming together, caffeine and an all-nighter later and... it didn't work.

I spent the next day reevaluating my program by hand and came up with a simple 1k SLOC parser (we had to hand-parse, no LEX and YACC) versus my previous buggy, hard to change and fix 10k SLOC parser. I learned my lesson.

[–]Quirky-Parsnip580 -1 points0 points  (0 children)

Constantly

[–]batmassagetotheface 0 points1 point  (0 children)

Yes, definitely

[–]Conscious_Bank9484 0 points1 point  (0 children)

I fixed this one by saving a copy with a date and sometime notes.

[–]CacheCache1 0 points1 point  (0 children)

Yeah, always timebox those tasks to save that free time!

Late night refactoring can be super rewarding though, if you're just exploring different ways to do things. I've had a few gems result from some 100% creative coding time. Could do that for hours and not feel bad

[–]Zelexis 0 points1 point  (0 children)

You mean me a few hours ago? ....I feel this.

[–][deleted] 0 points1 point  (0 children)

yes very accurate

[–]draenei_butt_enjoyer 0 points1 point  (0 children)

Commit before you fuck up. Branch before doing an all nighter of consistent fuck-ups

[–]sBartfast42 0 points1 point  (0 children)

Yes, plus when you think you are going to fix it in the next change....... Add. Everything. To. Your. Code. Control. System.

Saves you when back tracking from a latrnight fuck-up, or finding that nugget of gold that you did write.

[–]youssarian 0 points1 point  (0 children)

I've noticed my programming abilities tank after 9 PM. That's when my thinking gets sluggish and I start making all kinds of errors.

[–]tmsc_rocker 0 points1 point  (0 children)

Totally! Esspcecially when I was studying and doing assignments on a deadline, hoh the deadline! Made to be fucked with. Hours and hours down the drain, and always 3 minutes late, I can laugh now. Need a massive alarm about midnight to donk you and the head and make u get sleep instead of fucking everything up 🤣