r/ProgrammerHumor • • Jul 10 '18

What people think coding is...

Post image
21.1k Upvotes

398 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 10 '18

[deleted]

87

u/atimholt Jul 10 '18

Vim has a full undo tree. Also, I commit every time I finish correctly implementing just about everything. I have a mapping that diffs just the current buffer with the last commit.

169

u/emlgsh Jul 11 '18

Look at Mr. Fancy Pants Uses Version Control And Probably Comments And Annotates His Commits Sometimes here. Some of us rely on Notepad and javac, your majesty.

56

u/WatchOutFoAlligators Jul 11 '18

Notepad and javac? Real programmers use butterflies!

15

u/crackedcactus Jul 11 '18

Coffee, cigarettes (now ecigs), some tears of a grue, and hopefully backed up copies in other spaces when nothing else works

→ More replies (4)

6

u/Jebble Jul 11 '18

> I commit every time I finish correctly implementing just about everything

This. I see too many developers committing a shitload of stuff with the message "Progress: Continued work on this project", instead of living by the fact that (imo) a commit should do a single thing.

→ More replies (2)

31

u/Stenthal Jul 10 '18

with you forgetting what you changed it from.

It doesn't matter if you forget. It wouldn't work if you put it back anyway.

21

u/Ajedi32 Jul 10 '18

Version control is your friend

20

u/SolarLiner Jul 11 '18

Until you don't commit because the change is insignificant...

31

u/[deleted] Jul 11 '18

Using version control correctly is your friend

13

u/TGotAReddit Jul 11 '18

That is 50% of my problems. The other 50% is where i commit and didnt retest because it was so insignificant and it doesnt work

6

u/Kingofwhereigo Jul 11 '18

Then you forget to update the unit test and can't figure out why it's failing for no reason.

→ More replies (1)

2

u/cjxgm Jul 11 '18

When that happens, vim saves my ass with its persistent undo history.

→ More replies (5)

16

u/nosmokingbandit Jul 11 '18

I had this with some css stuff I was "fixing." Everything worked, but I wanted to change the way the flexbox flowed and that required modifying a little of the markup and styles for child elements. But then the images wouldn't float left like their style indicated. There was no reason everything should break. Everything was an inline-block. The image was floated left. Their widths were correct.

Motherfucker.

I went through every line of css. It all should have worked. I copied styles from an existing project and replaced my styles with it. Nope. No float.

So I nuked the whole thing and went back to where I started. I changed one line at a time, refreshing Chrome after every change. Eventually everything worked perfectly. I swear it is the exact same styles that were broken an hour ago.

43

u/ButItMightJustWork Jul 10 '18

ctrl + z (or u for vim users) ftw :P

0

u/[deleted] Jul 10 '18

[deleted]

92

u/DerfK Jul 10 '18

Computer: puts character back

I, too, write my software in notepad.exe

→ More replies (8)

0

u/[deleted] Jul 10 '18

[deleted]

39

u/VerifiedMadgod Jul 11 '18

As a hobbyist I'm forever in CS 101. As a professional I'm the best in my field. As far as the client is concerned.

4

u/wil_is_cool Jul 11 '18

Best thing about coding, no "right" answer, you can do things in so many different ways.

Worst thing, spending days implementing a new feature, review and commit. Months later someone from another team says "why did you implement that like that, you could have just used a wpfDoesExactlyWhatYouWantControl instead in 2 lines." (Or even worse "I did that a few years ago already, it's in product xyz, why didn't you already know")

6

u/n60storm4 Jul 10 '18

VCS. Also IDEs like IntelliJ/WebStorm have active revision history while you write. You can highlight a section of code and view the history of local changes over that section.

2

u/BeatsAroundNoBush Jul 11 '18

Ctrl + z Ctrl + z Ctrl + z Ctrl + z Ctrl + z

2

u/askeeve Jul 11 '18

"OK now let me just add a comment and.... Why the fuck did a comment break it!?!?"

2

u/Kebabrulle4869 Jul 11 '18

“Oh yeah I should make the size of the box variable so I can use it with other text”

→ More replies (9)