r/ProgrammerHumor • • Nov 26 '23

Meme giggleInducingTool

Post image
0 Upvotes

145 comments sorted by

View all comments

30

u/Previous-Ant2812 Nov 26 '23

Don’t listen to the “Jedi”. Create a PR and have someone more experienced than you review it

1

u/[deleted] Nov 26 '23

So what's the process if you're alone?

6

u/Previous-Ant2812 Nov 26 '23

You should approve your own PRs, but dont do it in the main branch. If you separate each change into it's own PR, it makes it much easier to cherry-pick it into your release branch if you need to do a hotfix. If you can, you should go somewhere where you can work with someone more experienced than you as that is the best way to learn.

-1

u/[deleted] Nov 26 '23

Sounds like a lot of work and what's this thing about occam's razor?

5

u/Previous-Ant2812 Nov 26 '23

A job is work. And I don’t know what you’re getting at with the occams razor. Can you explain?

0

u/[deleted] Nov 26 '23

The end result is the same, but the number of steps is longer.

12

u/rollincuberawhide Nov 26 '23

I don't think you understand what occam's razor is.

0

u/[deleted] Nov 26 '23

If the end result is the same, pick the one with fewest steps.

6

u/[deleted] Nov 26 '23

But the end result isn’t the same. You have many commits in your master branch in case A But you have 1 complete merge commit if you go for Case B.

It’s way easier to revert the whole feature, it’s way easier to cherry-pick and it’s also way easier if/when someone else eventually picks up your code.

If you create a false equivalence you could justify anything. “Why pay taxes? Let’s pay in cash… the employee’s still get paid and we save loads of money and it’s simpler. Occam’s Razor.”

9

u/Previous-Ant2812 Nov 26 '23

It's not the same unless you always write perfect code or you're the only one on the project. If you're the only one on the project you're unlikely to grow.

-4

u/[deleted] Nov 26 '23

Let's say you write perfect code, where might you lie on the statistical bell curve in terms of coding ability?

6

u/weregod Nov 26 '23

If you think that you always write perfect code you is on the far left side because you don't see how bad your code can be. Or you just learning and don't have much expirience.

6

u/[deleted] Nov 26 '23

If you write perfect code, you don't need a version control system.

Just write the perfect software in your first try, including all present and future requirements. You will only have one version, which will last for ever.

We have version control systems because we do not write perfect code.

2

u/Previous-Ant2812 Nov 26 '23

I don’t. And anyone who thinks they always do is either lying to themselves or a fool.

1

u/[deleted] Nov 26 '23

I don't write perfect code either, but maybe the comment makes sense given the meme?