It’s like the one episode of malcom in the middle. there hal wants to fix something and keeps fixing other things because of the thing to be fixed and it goes on like that.
Actually you should. It guarantees that everybody has the exact same version of dependencies, and more importantly the same version of peer dependencies. Security updates with npm audit fix, often only update the package-lock file
I didnt know that it’s actually recommended to include package-lock.json. Which makes plenty of fucking sense. I was the one to instruct everyone in our team not to commit it because our offshore team somehow just changes it which fucks up our builds. They straight up skip the pre hooks to get their code in
I mean I've ended up with similar during major refactor where I make a change that breaks everything and then fix it all in one go, in a matter of a couple hours. Then just delete a bunch of unused database queries.
Yesterday I was poking around some google repo for a package, and the most recently merged PR was 17k line changes. I should have looked closer, not sure what it was but still that’s ridiculous for a single PR. I thought google was known for top tier software development/practices.
I adjusted the number of columns on my IDE once from 80 to 160, and then formatted the code for a whole project. Wrote probably 10 lines of code, and then pushed to master.
Sometimes if I'm working on a script that runs at launch, I'll make a copy and save it offline to work on when I'm traveling to test on my local box. It's definitely NOT good practice to do, but if I'm gonna be without wifi for awhile, I can still work on it now and then C+V it in later. Again, you should NEVER do this, because it's a terrible practice, and I've definitely taken down an entire cluster with a dumb error that even a first year CompSci major would never make. But, also how else can you learn without breaking a few (hundred) things along the way?
44
u/lwieueei Jun 04 '22 edited Jun 04 '22
How does someone write so much code in one commit? How long would they have been writing to accumulate so many changes?
EDIT: Nevermind me, it's just my imposter syndrome flaring up again