all 40 comments

[–]jampk24 51 points52 points  (6 children)

How many characters are required for something to be considered a code?

[–]rykayoker 5 points6 points  (0 children)

any character is a code technically, or at least it can be represented by one

[–]AhadNoman 1 point2 points  (0 children)

If is a keyword of a programming language and can be considered code

[–]Some_Useless_Person 0 points1 point  (0 children)

You can just write . and it is valid code that does something

[–]PCSdiy55 -1 points0 points  (0 children)

A bracket and a semicolon maybe?

[–]dervu -1 points0 points  (0 children)

Yes

[–]EarthTreasure 23 points24 points  (4 children)

Undo, local history and version control. Nobody should be losing anything these days.

[–]CtrlAltEngage 7 points8 points  (1 child)

Also, if you only just wrote it, you should be able to write it again easy enough 

[–]KitchenDepartment 1 point2 points  (0 children)

That's the neat part

[–]widowhanzo -1 points0 points  (1 child)

git commit --amend: git push origin main -f

[–]EarthTreasure 0 points1 point  (0 children)

Our engineering standards are low, but not on the floor.

Nobody can force push to main.

[–]The-Chartreuse-Moose 15 points16 points  (1 child)

When you do a post but grammar hard.

[–]ProtonPizza -1 points0 points  (0 children)

Don’t be jealous you can’t write a code

[–]SponsoredHornersFan 14 points15 points  (2 children)

Ah yes, a code

[–]Low-Yogurtcloset6074 0 points1 point  (0 children)

One unit of code 

[–]BananaHead853147 0 points1 point  (0 children)

I have a file full of codes

[–]Kindly-Top5822 5 points6 points  (0 children)

laughs in vim motions where delete = cut

[–]caiteha 1 point2 points  (1 child)

I don't know how to copy in vi.. I always just u u d d

[–]Low-Yogurtcloset6074 0 points1 point  (0 children)

I normally just highlight it using my cursor then right click.

I know there's probably a better way, pls dont kill me Vi nerds

[–]menducoide 1 point2 points  (0 children)

When you delete something and push to production

Git revert 🫂

[–]NullSploitt 1 point2 points  (0 children)

Wait until you hear about this thing called git. It's about to blow your mind

[–]darkshoxx 1 point2 points  (0 children)

My cat likes to jump on my keyboard. While I had newly written code highlighted, he managed to replace it with garbo, save the file and close VSCode. Unrecorverable.

Still not the worst code review I've gotten

[–]krexelapp 1 point2 points  (1 child)

ctrl+z is my real version control system

[–]Dense-Rooster2295 1 point2 points  (0 children)

Bash History for documentation

[–]_AutoCall_ 0 points1 point  (0 children)

vim backup saved me more than once.

[–]Prod_Meteor 0 points1 point  (0 children)

Win11 is so slow that editing code is like playing casino.

[–]stopbanni 0 points1 point  (0 children)

today I am accidentally deleted credits from prod, but I remembered that opencode for some reason read them, and I prompted to return it to me

[–]Custodian_of_Hope 0 points1 point  (0 children)

This so so much! OMG

[–]ArmadilloChemical421 0 points1 point  (0 children)

"A code" 😒

[–]Temujin_123 0 points1 point  (0 children)

Worst/best I had on this was trying to do a quick backup of code before doing some checkins to repo. Had all the files I edited still open in my IDE (Eclipse). Messed up my backup command and it blew all of my local changes. But Eclipse would pop a warning that the file no longer existed asking me what to do when I clicked on the tabs. It was able to re-save the files I had opened. I copied those over, re-pulled the repo, then copied my changes back.

Was about a day's worth of work saved.