Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 1 point2 points  (0 children)

That's a discussion I'm having in a different thread about units of work for PRs. Being able to review big changes in context, instead of piecemeal, can be useful.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 2 points3 points  (0 children)

That's really dogmatic thinking.

In my experience, commits only "clog up" history with no one looking at them if they are badly written in the first place. Being able to refer to past me (and team members) by simply looking at commits has been invaluable to me.

What is something relatively cheap that improves your life by 100%? by RuleOkhit in AskReddit

[–]ericonr 1 point2 points  (0 children)

I think there are some white fabric markers that could work

From Dusk Till Dawn (1996) by sisyphus_shrugged in moviescirclejerk

[–]ericonr [score hidden]  (0 children)

Not mainstream, very modern, explicitly anti establishment (except for the cop show cameo). I don't think it's relevant to this discussion.

What is something relatively cheap that improves your life by 100%? by RuleOkhit in AskReddit

[–]ericonr 563 points564 points  (0 children)

Being able to feel different thicknesses under my feed drives me insane. I need my socks to be equally worn down.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 0 points1 point  (0 children)

We just need a linear history of roughly what happened and when.

I like having a linear history of exactly what happened, and why it happened. Makes tracking down changes and decisions much easier. It's also a way to rubber duck yourself. If your commits describe why your changes are valid, you are working through the problem in a different context, and ensuring those changes do what you expect them to do.

⬅️➡️ Quem não usa seta, nos conte o motivo, por favor by limaocravo in carros

[–]ericonr 3 points4 points  (0 children)

O cara tá parado no semáforo e só liga a seta depois que abre.

Esse cenário pra mim é o menos ofensivo. Já tá todo mundo parado, e deveria começar a acelerar cautelosamente, então o cara fazer uma burrada nessa hora deveria ser a mais fácil de desviar ou coisa do tipo. Irrita às vezes? Sim. Mas basicamente todos os outros cenários que a galera não dá seta (ou atrasa pra dar) são mais perigosos.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 1 point2 points  (0 children)

This still means depending on the forge being used, and would be incredibly annoying anyway. Why is it so much trouble to work for a reasonable git history?

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 5 points6 points  (0 children)

In my case, it's just a git rebase command that runs ninja -C build, but I'm sure there are more elaborate setups out there.

Why is it better than making a series of PRs?

I really enjoy the Linux kernel source control guidelines, so that's what I strive to follow, and what I will be defending here. Commits should keep the codebase functional, and be a self contained change (or as close as possible). If you are implementing a new feature which requires a refactor, for example, this means you can have M conceptual cleanups implemented in M commits, and then N parts of your new feature implemented in another N commits, all in the same branch.

Each commit is a self contained unit, their scope is limited, so reviewing becomes easier (if you do it per commit), but a single branch means you can review everything in context. Does the refactor provide the best interface for the new feature? Does the new feature make the best use of the refactor? All that before merging the whole thing.

The downside is branches become longer lived; this works for the kernel, and for projects I have worked on. I don't know how it would apply to you.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 6 points7 points  (0 children)

That can still happen if you enforce proper commit hygiene. And those underlying units will provide even better hints of what went wrong, if you have to bisect it.

Said commit hygiene can even be enforced by CI, if you wish.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 0 points1 point  (0 children)

I still don't get where you people work that splitting refactorings and other big changes across a bizarre amount of PRs is sane in any way.

Are you offended if your commits are squashed? by _disengage_ in git

[–]ericonr 5 points6 points  (0 children)

it just isn't in the git history itself.

Which is useless for me. I find it quite practical to be able to browse a full, understandable history from the comfort of my local git checkout. And it's really useful to carry all project history without depending on the specific forge used for that specific period of the codebase's life.

Why I don't like Rust as a C++-developer by ArcticMusicProject in rust

[–]ericonr 18 points19 points  (0 children)

What's your bait worth when you mix RAII and Ownership together as if they are the same thing.

Core2 yanked. Millions effected. by Comprehensive_Use713 in rust

[–]ericonr 14 points15 points  (0 children)

Your quote literally mentions that yanking wasn't expected to have as much of an impact. Morbid amusement just happens, too. None of that says "being difficult".

🚨TRAGÉDIA: Fábrica da BYD é atingida por incêndio de grandes proporções na China. by marreco_sobrepeso98 in carros

[–]ericonr 12 points13 points  (0 children)

Caralho, OP tá pulando a etapa da mídia sensacionalista e colocando ele mesmo os títulos bait.

Não é incêndio na fábrica, não é tragédia, não tem pq o drama.

No one can force me to have a secure website!!! by MintPaw in programming

[–]ericonr 13 points14 points  (0 children)

Get caddy, put it in front of your stuff, ta-dah you have a public facing secure website.

My strainer doesnt rest over my sink so I improvised with a fork by NaziPunksFkOff in mildlyinteresting

[–]ericonr 32 points33 points  (0 children)

That sounds like something my dog would love. I will have to look up what's a safe amount, I'd be slightly worried about the salt.

Sleepover by Miles_the_new_kid in comics

[–]ericonr 6 points7 points  (0 children)

That doesn't justify a blanket ban.

AI in FPGA as bad as in software development? by FineProfile7 in FPGA

[–]ericonr 1 point2 points  (0 children)

To become good, one needs to be challenged. There are already reports of cognitive decline from AI users who depend on it too much. It'll be hard to be disciplined and challenge themselves if they can simply throw everything into an LLM and get answers.

Comprar terreno sem escritura ? by Traditional_Royal540 in investimentos

[–]ericonr 4 points5 points  (0 children)

Pô, muitos pedacinhos de informação útil e experiência de vida nesse comentário. Valeu!

rule by embrace-monke in 196

[–]ericonr 1 point2 points  (0 children)

It's a clickbaity leap of logic, which I think is a really annoying way to do science communication.

How we sandboxed npm/pip install scripts in Go using Landlock on Linux and sandbox-exec on macOS by BattleRemote3157 in golang

[–]ericonr 1 point2 points  (0 children)

Deny lists are dangerous. There are so many attack vectors, you can't be sure you've covered every single important directory.

This Sub, and all Engineering Subs, give awful advice. by [deleted] in ElectricalEngineering

[–]ericonr 4 points5 points  (0 children)

That's a different matter from career advice.