News for hackers. Stuff that matters.
Re:Ask HN: Who Wants to Be Fired? by thijsvandien on Wednesday October 02, 2019 @08:24PM (#21142296)
What are the arguments against version control here (if any)?

Honestly the project sounds quite interesting, but I can imagine the circumstances make it painful.

Re:Ask HN: Who Wants to Be Fired? by reificator on Wednesday October 02, 2019 @08:30PM (#21142347)
> What's are the arguments against version control here (if any)?

* I don't understand it

* You're overcomplicating things

* We're not using any of that free shit here

* It doesn't say Microsoft or IBM

* The last guy we hired that tried to use it was smarter than I was so anyone else who tries is a threat to my leadership. (because everyone knows you can only manage people who have a strict subset of your own knowledge. If one of your peons dared learn something before you, that would be the end of your reign.)

the list goes on...

Re:Ask HN: Who Wants to Be Fired? by Chirael on Wednesday October 02, 2019 @10:07PM (#21142887)
“We’ve never needed it before, so why do we need it now?” (actual argument against it at my current workplace)
Re:Ask HN: Who Wants to Be Fired? by reificator on Thursday October 03, 2019 @02:09AM (#21144195)
My response:

You've never looked at a piece of code that you wanted to see the history of?

You've never needed to revert a single change a few hours/days/weeks later?

You've never needed to track down the person who wrote a piece of code in order to ask them for clarification?

You've never needed to see the original change reason for a line of code that is doing some weird, specific thing that seems out of place?

You've never needed to have two people edit the same file at the same time?

Re:Ask HN: Who Wants to Be Fired? by crististm on Thursday October 03, 2019 @04:03AM (#21144717)
I've got these responses on a similar question: "we don't need to see the commit logs so who cares about them or the history being pretty and clear? Nobody is looking at the history!"!!

The question was "Let's submit pull requests as a clean job not as a homework draft. Why don't we allow push force on work branches so that we can squash fixup commits after review?"

Blows my mind that those are senior developers that are otherwise seemingly competent at what they do. There is some pinch of job security there though.

Re:Ask HN: Who Wants to Be Fired? by bmarkovic on Friday October 04, 2019 @01:38AM (#21155081)
There are valid reasons for a "never rewrite history" policy, but their validity pales further you go from the master branch.

The thing is that in a lot of scenarios people need to do huge chunks of work in feature branches. Sometimes a 3000 line "refactor the world" squashed commit is really unhelpful. The best policy is always well thought of weighted case-by-case decisions.

However, on projects with a lot of hands on the keyboard such policy is unrealistic and someone will do the opposite of what they should and wont ask or discuss. People, especially in our business, hide incompetence behind aloofness and silence.

So in that case, with a lot of people that are hard to manage, stiff policy is the best choice and there probably are reasons why people want to preserve history, no matter how hairy it looks, at least it's there and you can find stuff in it.

Re:Ask HN: Who Wants to Be Fired? by crististm on Friday October 04, 2019 @02:41AM (#21155374)
I bet they are willfully blind to that difference.
Re:Ask HN: Who Wants to Be Fired? by AlexCoventry on Wednesday October 02, 2019 @10:43PM (#21143056)
* Someone used git to publish a HIPAA violation on github.
Re:Ask HN: Who Wants to Be Fired? by reificator on Thursday October 03, 2019 @02:01AM (#21144157)
If HIPAA is a concern host your own server.

If you can't trust your employees to adhere to HIPAA or other mandatory regulations, you need better employees.

If your source code contains personal information, usernames, passwords, etc that should not be exposed to the public, you need to address that immediately regardless of any irrational stances on version control.

Re:Ask HN: Who Wants to Be Fired? by mcv on Friday October 04, 2019 @02:17AM (#21155259)
> "If you can't trust your employees to adhere to HIPAA or other mandatory regulations, you need better employees."

You need a better process. Developers aren't lawyers. Of course they should be aware of HIPAA requirements, but better is to ensure they simply don't have access to sensitive production data except in very controlled circumstances, while making safe anonymised test data available for anything they need test data for.

Re:Ask HN: Who Wants to Be Fired? by ken on Wednesday October 02, 2019 @08:47PM (#21142468)
> It doesn't say Microsoft or IBM

GitHub does, now, though I really hope that isn’t necessary for a company to adopt version control.

Re:Ask HN: Who Wants to Be Fired? by dragonwriter on Wednesday October 02, 2019 @09:31PM (#21142715)
And Visual Source Safe and TFS did previously.
Re:Ask HN: Who Wants to Be Fired? by skellera on Wednesday October 02, 2019 @09:05PM (#21142570)
Why didn’t you just recommend Azure Repos? It’s a great product and fits what you need.

https://azure.microsoft.com/en-au/services/devops/repos/

Re:Ask HN: Who Wants to Be Fired? by reificator on Wednesday October 02, 2019 @09:25PM (#21142673)
* Azure means cloud and cloud means no

* It didn't exist at the time, but there was an on-prem that MS offered a few years back. It was forced on another department with no version control experience. It lasted about two weeks.

Re:Ask HN: Who Wants to Be Fired? by skellera on Thursday October 03, 2019 @09:55AM (#21146957)
Re:Ask HN: Who Wants to Be Fired? by skellera on Thursday October 03, 2019 @09:53AM (#21146934)
On prem gitlab then? Just throwing out ideas.
Re:Ask HN: Who Wants to Be Fired? by eberkund on Wednesday October 02, 2019 @11:32PM (#21143340)
There are self hosted Azure products also.
Re:Ask HN: Who Wants to Be Fired? by scott_s on Thursday October 03, 2019 @10:25AM (#21147316)
I've learned there are arguments that are not worth winning, and if you find yourself in one, your priority should be getting out of the situation that created the argument.
Re:Ask HN: Who Wants to Be Fired? by perl4ever on Wednesday October 02, 2019 @09:46PM (#21142784)
I'm not sure what the answer is for version control, but I refuse to accept it's Git. I don't understand how it became so popular - did nobody say "wait, there might be a reason why Linus is known for cloning an OS and not coming up with a brilliant design for one from scratch?"
Re:Ask HN: Who Wants to Be Fired? by benbristow on Thursday October 03, 2019 @12:06PM (#21148572)
Git is great. Lightweight, scales effortlessly, learning curve isn’t too bad, decentralised by design and because it’s so widely adopted it works pretty much everywhere.

What else are you gonna use? SVN? shudder

Re:Ask HN: Who Wants to Be Fired? by perl4ever on Thursday October 03, 2019 @05:46PM (#21152594)
The learning curve isn't too bad? Do you actually use Git? Like, from the command line?

I have no issue with a friendly wrapper in general, but after starting with the basic interface, I don't trust a wrapper to be logical, complete, and well thought out, given the foundation.

Re:Ask HN: Who Wants to Be Fired? by benbristow on Thursday October 03, 2019 @05:54PM (#21152646)
Yes, I use Git mainly from the command line and I've used it on Linux, OSX and Windows. I've also used quite a few GUIs including SourceTree, Github Desktop and GitKraken. I've been using it for a while now!

In the end it really boils down to a few commands that you use often, checkout/push/pull/commit/clone/branch/diff/status etc. It can definitely get confusing at times when you get merge conflicts and want to start playing with rebasing and stuff like that.

I've used it with teams with no experience with Git whatsoever and they're usually fluent at the basics within a week or so.

If you get stuck the command you need is usually a 2 minute Google away.

There's also this which is fantastically named! https://ohshitgit.com

Re:Ask HN: Who Wants to Be Fired? by bmn__ on Thursday October 03, 2019 @05:48AM (#21145205)
> I don't understand how it became so popular

Git follows in spirit the model of BitKeeper, a software that already worked exceptionally well for Linus and other kernel devs. So Git had both a known good design from the very beginning and a decently sized installed user base (kernel devs) with an important project (the kernel).

IMO there's nothing wrong with the cloning of software. You make it sound bad, can you give reasons?

Re:Ask HN: Who Wants to Be Fired? by misterdoubt on Thursday October 03, 2019 @12:02AM (#21143546)
OK.
Re:Ask HN: Who Wants to Be Fired? by rjplatte on Wednesday October 02, 2019 @08:31PM (#21142355)
He thinks it's all cloud based. It's sad, yes.

I honestly enjoy the work when I know what's going on. We have a lot of unique problems to solve, and I have gotten positive changes made, as well as some really good weeks where I pounded out some good code, but other times it's slow, sad, and frustrating.

Re:Ask HN: Who Wants to Be Fired? by newnewpdro on Wednesday October 02, 2019 @09:14PM (#21142617)
Like others have suggested, use git locally, there's no need for them to be involved or aware of that detail. Do you consult them on what text editor to use?

There's a skill to learn in keeping engineering concerns to yourself. It's unsurprising when management or executives are faced with decisions in unfamiliar topics they err on the side of Nay. Your mistake is involving them at all.

Re:Ask HN: Who Wants to Be Fired? by fouc on Thursday October 03, 2019 @12:08AM (#21143590)
this ^

Using git locally is a tool just like your code editor. There's no need to ask your boss about that.

Since you're the only developer it's mainly to make it easy to revert any mistakes and to have confidence in deleting useless stuff (that you can recover later).

Re:Ask HN: Who Wants to Be Fired? by reificator on Wednesday October 02, 2019 @08:33PM (#21142364)
Re:Ask HN: Who Wants to Be Fired? by wbl on Thursday October 03, 2019 @01:45AM (#21144089)
?? Git works just fine without any of that. CVS has been around since 1990, RCS since 1982. And SCCS is old enough to be OP's father.
Re:Ask HN: Who Wants to Be Fired? by reificator on Thursday October 03, 2019 @01:48AM (#21144105)
> ?? Git works just fine without any of that.

I echo your ??. Sure you don't need a central repository to use git. What does that have to do with suggesting some git hosts that aren't cloud based?

Re:Ask HN: Who Wants to Be Fired? by wbl on Thursday October 03, 2019 @02:23AM (#21144266)
You can have a git repo on a server that developers use ssh to access just with git. The bells and whistles aren't part of the core job. It's just my general griping about software these days.
Re:Ask HN: Who Wants to Be Fired? by reificator on Thursday October 03, 2019 @02:34AM (#21144321)
I get where you're coming from, but I still don't think it deserves a ??. Most people in most environments want a GUI they can click around in.

I'm very comfortable with git at the command line, but I still think it's valuable to have a web interface. For instance, with a web GUI I'm able to share a link to a specific line or range in a file in a specific commit.

Typically if I need to do that I'm asking a question or requesting a change, and in that case I want there to be as few barriers as possible to increase the chances that the other person cooperates. Asking someone to clone/pull the repo, checkout a hash, and then view a line in a file is a much higher barrier than asking them to click a link.

Re:Ask HN: Who Wants to Be Fired? by bmarkovic on Friday October 04, 2019 @01:43AM (#21155113)
Good luck doing code reviews with a distributed team using that.
Re:Ask HN: Who Wants to Be Fired? by teambayleaf on Friday October 04, 2019 @08:05PM (#21162938)
Linux is one of the most massively distributed projects in the world, and it just works fine without GUI review tools. If Linux devs don't need such tools like gitlab, why you?
Re:Ask HN: Who Wants to Be Fired? by DarkStar851 on Wednesday October 02, 2019 @09:00PM (#21142528)
Big +1 for Gitea/Gogs, that thing will run on a toaster. Super low memory footprint and great for small shops.
Re:Ask HN: Who Wants to Be Fired? by mcv on Friday October 04, 2019 @02:15AM (#21155252)
> "What are the arguments against version control here (if any)?"

No good ones of course, but there is one that I think is superficially very compelling:

It keeps a permanent record of everything that has ever been part of the codebase. If HIPAA required medical and patient data to not be stored anywhere except under highly controlled circumstances, the CEO might be afraid that data might end up in version control.

And that's not an entirely unreasonable fear; developers writing a quick PoC could include data in the project because it's quicker than setting up the infrastructure required. And of course they'll later fix it, but the version control system will still keep a record of it.

Of course there are tons of bad practices about this, but here's the thing: bad practices do happen, even if it's just as a temporary measure, and version control will create a permanent record for that.

Of course the right way to do this is to ensure that the developers only have access to anonymised test data and not to real sensitive production data; and to ensure that production data is always and only stored under the proper, secure circumstances required.

It's still a red flag, but the reasons might be more subtle and complex than simply "I don't understand it".