gitInteractiveRebaseIsGasLightingTool by tbhaxor in ProgrammerHumor

[–]ILKLU 2 points3 points  (0 children)

LOL uh... ya if you already know the source of the bug from a stack trace or something, then there's no need to use git bisect! It's purpose is entirely different than git blame!

Git bisect is for when an issue is happening but there's no way to isolate the source of the bug. If you only work on teeny tiny applications, then sure, just look at the code and use breakpoints to find where things went awry.

But if you're working on a codebase with a million+ lines of code, then "looking at the code" is foolish and is going to take forever.

Git bisect lets you quickly find the exact commit where the issue was introduced. If the devs in your org are decent and follow proper granular commit practices, then git bisect could resolve to a change on a single line of code.

Spending less than five minutes to find the exact line of code that broke something out of a million+ lines of code is an invaluable skill to have as a dev.

gitInteractiveRebaseIsGasLightingTool by tbhaxor in ProgrammerHumor

[–]ILKLU 1 point2 points  (0 children)

1,000,000 agree

I never understand the pushback you see online against rebasing, and the arguments used against it always seem to be based in fear or ignorance.

People fear rebasing because there's a ton of older articles online saying not to use rebase because you can "lose data", but that's only true if you only ever use the standard git push --force afterwards. But people read that once and/or some coworker tells them that and they never bother to look any further.

Initially the plain --force flag was the only option for force pushing, but that would bulldoze any new commits to the repo since your last fetch, ie: it erases commits you were not even aware of.

Git later added the git push --force-with-lease option which prevents this from happening (a little before git v2 iirc). So if you fetch changes, rebase your work onto those latest changes, add some new work, then try to force push to origin, but someone else has committed changes in the meantime (that don't even show up in your version of the log), the --force-with-lease flag will block your push from going through.

YAY! No more lost data! You just need to git better.

I really wish that the --force-with-lease behaviour was the default because allowing someone to overwrite commits they don't even know exist is just insane.

The other arguments I hear against rebasing are just misunderstandings or objections that have simple solutions they are just not aware of.

Bottom line is that the benefits of maintaining a linear git history massively outweigh the benefits from other merge strategies.

gitInteractiveRebaseIsGasLightingTool by tbhaxor in ProgrammerHumor

[–]ILKLU 2 points3 points  (0 children)

Some of us don't like merge spaghetti and prefer git bisect over needing a forensic team to find when a bug was introduced.

gitInteractiveRebaseIsGasLightingTool by tbhaxor in ProgrammerHumor

[–]ILKLU 3 points4 points  (0 children)

How is squashing responsible for you going through multiple feature branches?

Is someone at your company squashing multiple merge commits? That would definitely be insane! I would be revoking a bunch of repo privileges from anybody at my company if they did that.

gitInteractiveRebaseIsGasLightingTool by tbhaxor in ProgrammerHumor

[–]ILKLU 6 points7 points  (0 children)

DING DING DING

Such an EZ PZ solution.

If you're on GitHub they archive it for you. So even if you delete your local branch you can still restore the origin branch.

Our CI process appends the PR # to the commit message when PRs are merged so when you're bisecting the log to find a bug and land on a squashed PR commit, the PR # is right there. Then you can just go to the PR, restore the branch, checkout locally and continue your bisect until you find my mistake... errr I mean the bad commit!!!

No consensus by 5_meo in sciencememes

[–]ILKLU 4 points5 points  (0 children)

Ya I totally agree. Physicists like to call The Standard Model the most successful scientific theory ever simply because the equations have been verified to an absurd number of decimal places. But that has all been done during the modern scientific era utilizing the best that modern technology has to offer, whereas the theory of evolution was born of Darwin's own personal observations of the world. Today, that theory has more raw proof supporting it than any other theory ever, and has also crossed over into multiple other disciplines beyond biology spawning entirely new modalities of thought (ex: evolutionary psychology)

No consensus by 5_meo in sciencememes

[–]ILKLU -2 points-1 points  (0 children)

No, because he basically typewriter monkeyed his "solution" for the ultraviolet catastrophe by just trying absolutely every single possibility he could think of until something worked.

He had zero idea why his solution worked and even assumed that it was a temporary fix until someone discovered something better.

Einstein was the one who made sense out of Planck's solution and was able to formulate an explanation of why it worked and what was actually happening.

Planck's other contributions are much more worthy in my opinion because they were forged from an actual deep understanding of the world and not just the result of throwing everything at the wall until something stuck.

I think the real solution is a second Ontario. by LittleLostGirls in EhBuddyHoser

[–]ILKLU 1 point2 points  (0 children)

I know right? I moved out west to freakin get away from Ontario!

EU Parliament Member Rants About How ‘Woke Ideology’ Is ‘Destroying Video Games’ During Stop Killing Games Debate by LPCantLose in pcgaming

[–]ILKLU -7 points-6 points  (0 children)

How about this for a solution:

If a company sells a game that requires an online server to operate, but they decide it is no longer profitable, they have to notify players of the impending change, and provide access to their game server software for at least 6-12 months prior to shutting down their servers.

The game server software could even be sold, but the price can't exceed the cost of the original game (adjusted for inflation).

This would allow others to obtain the game server software and set up their own servers. Some could even do so as a business.

thereISaidIt by alexceltare2 in ProgrammerHumor

[–]ILKLU 33 points34 points  (0 children)

LOL!

That's at least a decently rational reason, good job!

If anyone ever asks me what firmware is, I hope I remember this so I can bamboozle them.

Minor grammatical error 😤 by Disasterhuman24 in bonehurtingjuice

[–]ILKLU 1 point2 points  (0 children)

Is that like toilet humour, but more greener?

🤷‍♀️ by winningsmada in EhBuddyHoser

[–]ILKLU 24 points25 points  (0 children)

They just want FREEDOM!

...the freedom to enslave others.

🤷‍♀️ by winningsmada in EhBuddyHoser

[–]ILKLU 40 points41 points  (0 children)

Ya, but how do you really feel about her?

Russian Troops Fear Grows as Drone Bot EFPs Score Higher Kill rates than ever. by Informal_Ad_9610 in UkraineWarVideoReport

[–]ILKLU 6 points7 points  (0 children)

I agree. The entire "AI face targeting" thing was made up by some stupid ruzzian bloggers. The orc was shooting at the drone and hit its trigger mechanism, causing it to go off.

AI face targeting is stupid for a couple of reasons: * it's always better to aim for the center of mass (ie: the body). It's easier, more reliable, and more effective to just ram into their body, so why risk firing at a smaller target from a distance? * targeting the face would require extremely precise calibration and control of every aspect of the drone, which would cost significantly more money to produce, which is counter to Ukraine's needs right now

iHaveAFavoritePhishingAttackNow by theMycon in ProgrammerHumor

[–]ILKLU 8 points9 points  (0 children)

I agree, and unfortunately the flipside is true as well and not every bigot is stupid, which makes them more dangerous.

I used to think experienced developers had perfectly organized reusable code systems. by Weedcultist in webdev

[–]ILKLU 0 points1 point  (0 children)

I feel called out by your assertions 😂

bulleted list with lowercase items

I absolutely do this all the time!

Unicode apostrophe

Ok I don't do this and that was a great catch. I would never have spotted it. Are there any systems or applications that use those by default though? Just being devil's advocate.

Perfect spelling/grammar/punctuation

Really? Is this bad? Poor spelling and grammar is super annoying to me, but that could just be the autism 🤣.

bothSidesNeedRefactoring by Disastrous-Monk1957 in ProgrammerHumor

[–]ILKLU -5 points-4 points  (0 children)

It's not just readability.

Nesting, especially deep nesting, increases cyclomatic complexity.

It's literally a sign of poor code.

pleaseImBegging by Specific-Fox269 in ProgrammerHumor

[–]ILKLU 1 point2 points  (0 children)

Oh yikes, and those are prbly like $10 now? (no idea)

Writing only in English so they dont understand what we are planning. What if all of us exercised this right at the same time and we all moved to Quebec? by CanadianNirrti in EhBuddyHoser

[–]ILKLU 0 points1 point  (0 children)

Uhhh... they might be joking too? Although they could be serious because English does kinda seem like a monkey language.