← Back to context

Comment by charcircuit

1 day ago

The user shouldn't have to think about such a thing. Version control should handle everything automatically and not force the user into doing extra work to workaround issues.

I always hated the “write your code like the next maintainer is a psychopath” mantra because it makes the goal unclear. I prefer the following:

Write your code/tools as if they will be used at 2:00 am while the server room is on fire. Because sooner or later they will be.

A lot of our processes are used like emergency procedures. Emergency procedures are meant to be brainless as much as possible. So you can reserve the rest of your capacity for the actual problem. My version essentially calls out Kernighan’s Law.

Organizing your files sensibly is not necessary to use LFS nor is it a "workaround". It's just a pattern I am suggesting to make life easier regardless of what tools you decide to use. I can't think of a case where organizing your project to fail gracefully is a bad idea.

Git does the responsible thing and lets the user determine how to proceed with the mess they've made.

I must say I'm increasingly suspicious of the hate that git receives these days.