by thealchemistdev · 3y ago · 0 comments
local> ssh user@example.com
user@example> git init --bare $DIR
user@example> exit
local> git clone user@example.com:$DIR
I've seen VPS services for as low as $4 a month.I'm with you in camp baffled.
I compare it to using gmail as your professional email. It's a bad idea; even if it never bites you, because the cost is so little and the harm is so great if it ever screws up.
Except I can see why average joe user might not think about it, and I don't think developers have that excuse. You should know and understand that tech is risky enough. Same reason there was no excuse for the kik zero padding debacle. The fact that a LOT of people did a lazy dumb thing doesn't make it not dumb or lazy.
Of course you could do all of these things with enough work. But why would the average developer want to? Do you really think most developers care so much about Microsoft owning GitHub?
They use this for access:
(somewhat ironicaly code hosted on github. Not sure its still being updated..)
we currently don't use it, just because its on the same network as our site.. though because its git and it replicates the repo everywhere its less of an issue.
As for myself, I don’t like GitHub UI, which is slow, has low information density, and is generally lollipop-like; and its social media aspect, which often turns the bug tracker into a Twitter equivalent with viral bugs, emojis to cheer and boo people.
So I set up a cgit instance for myself. Patches can be sent over mail as attachments generated with git format-patch (attaching files to mails isn’t hard). Issues can similarly be sent over mail and described in a BUGS file.
That’s sufficient for my single person projects. Probably also for n-person projects for small values of n (let’s say 7). Past that I’d set up a Gerrit instance, which IMO has the best UX of all code review tools available, free or not; and a Redmine for ticket tracking.
There is no situation in which I'd want to do all of the above work for every single repository I setup.
I have hundreds of repositories that I own on GitHub for things like school assignments and personal projects. If I start a weekend project as you describe then the first 4 hours are going to be setting my repository up.
Nobody wants to do this. Just because something is difficult or time consuming doesn't mean that it is good or useful. Doing this once would be a fun learning experience. Doing it more than once is a useless chore.
What the heck are you talking about?
The only work you'd have to do "for every single repository" is the single git command.
Getting a server, managing access and discoverability, setting it up for browser access, setting up backups, those are things you would do once.
If that's a waste of four hours, valid argument, but it's not a waste of four hundred hours. You're grossly exaggerating the cost.
Oh and you didn't mention keeping the server updated but that's probably ten minutes of effort once a month.
> Doing this once would be a fun learning experience. Doing it more than once is a useless chore.
Then there's no problem.