Better HN
topnewbestaskshowjobs
Log inSign up

rmtech

387 karma · joined Nov 8, 2018 (8y ago) · 273 submissions

Submissions

comment 6y ago · link · parent

Yeah I think this is actually pretty important. I wonder whether associativity of unrelated changes generalizes to other git problems?

comment 6y ago · link · parent

> With git, it's something you _directly_ interact with so I would expect you to understand it in great detail.

Yes, you are describing what is broken about git: its abstractions are leaking too much so people who touch it have to know all its internals.

I touch x86 assembler every time I run high-level code, it's just that other kind folks have gone to a lot of effort to make it so that I don't have know how the internals of that low-level stuff work.

Abstractions allow people to be productive without knowing in great detail how absolutely everything in the universe works. A good tool has simple, non-leaky abstractions with a simple interface. Git is not a good tool.

comment 6y ago · link · parent

Any system will get dragged down by the need to support all sorts of legacy use-cases. I think there's an xkcd cartoon about this?

The core task of a VCS is versioning and collaborating on text of some kind. Git doesn't do this in an optimal way, so eventually it will get replaced by something better. In the meantime we'll all get on with learning its ins and outs, just like previous generations learned how to use punchcards.

comment 6y ago · link · parent

A good data management system (with hashes of datasets etc) is great. Data mess is not fun.

Merkle trees are also fun and have applications elsewhere like cryptocurrency/blockchain.

I don't have a problem with computer science in general, it's a fascinating subject.

comment 6y ago · link · parent

I take the view that developers shouldn't be spending their time fixing their VCS.

I use PyCharm. I don't know how PyCharm works internally. I don't even know what language it is written in. I know that it provides syntax highlighting, smart replace, code completion, etc.

Similarly, my car mechanic has a bunch of tools that he doesn't understand in detail; they have interfaces (like a gauge on a pressure sensor).

Progress requires these interfaces, it requires these abstractions, and over time I'm pretty confident that we'll get a better VCS than git that has better, more user-friendly abstractions and it will take over the market.

comment 6y ago · link · parent

> With that attitude, I would never, ever, ever, hire you.

There are two separate issue here though.

(A) How much work does a given person want to put in

(B) How much work does a given tool require.

It can simultaneously be the case that git is bad/overcomplicated AND that you should only hire people who bother to learn it really well.

Why?

Well, learning hard things is a reliable signal of diligence and hard work, which are generally useful traits.

But at the same time, forcing everyone to learn something annoying and time-consuming just as a test of grit isn't maximally efficient. The same effort could be put into more productive tasks.

> Why did you go into software engineering?

Well, I'm not a software engineer - in the Data/ML area so I am much more interested in the properties of data than the properties of code. But having said that I certainly like clean, efficient code and I care about languages (maybe just spoiled by python?!).

I can't see myself as a software engineer so I think your instinct is right. My passion is data and ML.

comment 6y ago · link · parent

> A tool you use every day definitely falls into the category of Stuff You Ought to Know, in a way that understanding how quantum tunneling is used in an SSD is in the category of Stuff You Don't Need to Know.

I use an SSD every day though, as well as an LCD display and a laser in my mouse. So by this reasoning, I need to study quantum mechanics; it would only take a few weekends of focused study to understand the Schrodinger Equation etc.

These things fall into the "Don't need to know" category because we as a species have made very effective user interfaces to them whereby you really need to know almost nothing about their internals to use them.

The ideal version control system would work like a mouse or a monitor. Completely intuitive, just works™.

comment 6y ago · link · parent

That doesn't matter, the way people actually use git is that almost all repositories have someone or some small group who rule them, so nothing is really lost by having an easy option to purge things from history. And an inconvenient option (possibly more than one!) does exist.

comment 6y ago · link · parent

But for each one of these, the less I have to know about its internals, the better.

The ideal option for each of these things is that it "just works". When you have to think about the internals of your package manager or your CI or your virtual environment, that's a flaw in it, not a reason to celebrate.

comment 6y ago · link · parent

Yes but filter-branch is horrendous and could very easily result in unintended side-effects, as well as potentially being very slow. I think this command is a great example of the problem; what a user really wants is an undo button but what git gives them is this thing.

comment 6y ago · link · parent

I use an x86 CPU every day for work and I have no idea how it works in detail, and thanks to the magic of separation of concerns I don't have to (perhaps apart from a few specific things like vecorizing instead of loops that I really do need to know about).

Git demanding a large chuck of user mindspace isn't an advantage for git, it's a signal that git is bad and needs replacing.

comment 6y ago · link · parent

Github already has centralised protections to do with who can and cannot do various things, and so do other similar systems like gitlab.

So nothing is really gained but not allowing this, but it makes git very user-hostile because mistakes cannot easily be undone.

comment 6y ago · link · parent

That only works in some circumstances.

For example, suppose I init a new repo and accidentally commit my entire virtual environment, then push, then do some real work, push a few times more and then a colleague notices (after they have pulled, worked on and pushed) that the venv stuff is there.

In an ideal VCS, you would have a simple command like git purge /badfolder that would make it as if it never existed.

But AFAIK that doesn't exist, or at least the ways to accomplish that are pretty gnarly and dangerous.

comment 6y ago · link · parent

Probably the biggest problem with the git interface is that the interface exposed to the user isn't sufficiently abstracted from the implementation.

Insanely complicated commands to undo things are one symptom of this.

As a user, you want to "save" some code and you also want to "share" it with others. You also want a historical record of what you did.

But obviously you will occasionally save and share things you didn't mean to. Like your Python virtual environment, like a bunch of pictures in their binary format, etc.

A sane version control would provide a point-and-click way to make these disappear from history (though with adequate security protections to make sure that only authorized people can do it).

comment 6y ago · link · parent

Yeah this is incorrect.

One of the reasons that we able to achieve so much with computers is that there is a separation of concerns between different areas.

Requiring everyone to fully understand git is like requiring people who code in high-level languages to understand and apply chip design in their day-to-day work.

Imagine if when you tested some Python or Java code you got an error from your CPU and needed to take it out and debug it with an electron microscope.

Contemporary git has this disease. Its (command line) user interface is a mess. I could say more about what you would do to make a better version but a comment isn't the place for that.

The defence that you are using - that smart people should be able to learn git fully - is like saying that any and every smart programmer should learn IC design and buy their own electron microscope, and that's why it's OK that the chips keep breaking.

comment 6y ago · link · parent

A lot of people don't truly understand operating systems and yet they manage to use Windows.

You are setting a very low bar.

comment 6y ago · link · parent

Chernobly may in fact have been a small nuclear explosion.

comment 6y ago · link · parent

> The more we learn about nuclear, the more expensive it seems to get

This is a pretty gross falsehood.

Nuclear power is could be cheap and safe, but we _make_ it expensive by banning any form of innovation and by lying to the public about how risky it is compared to alternatives. The idea that nuclear is bad and costly becomes a self-fulfilling prophecy as the public incentivize politicians to ban it or regulate it into oblivion.

We should not be building the same basic reactor design as we have in the 1960s and 1970s. The fact that we're stuck on big, expensive containment vessels and water is a clue about what is happening to nuclear.

comment 6y ago · link · parent

> As any physicist knows, an uncontrolled aggregation of fissile stuff can go boom. And this is what in fact happened in Fukushima

No, that wasn't what happened at Fukushima. There was no "boom" from a nuclear chain reaction there.

comment 6y ago · link · parent

They could make them even more expensive without the spying features. But nobody would pay for it.

comment 6y ago · link · parent

Interesting. Certainly pretty scary!

comment 6y ago · link · parent

OK and did you get around it? New phone etc?

Is there any recourse?

comment 6y ago · link · parent

That's unfair to Tim. He's a great help to the world's authoritarian regimes. He's doing plenty for them.

comment 6y ago · link · parent

I don't know about this particular case but I am willing to concede the point - I certainly know that criminals exist and that catching them is good.

comment 6y ago · link · parent

> provides little evidence that it is a net negative.

The negatives of a state that becomes powerful and evil have been thoroughly demonstrated in, for example, the USSR, Cambodia, North Korea and many other times/places.

Do you know much about history?

comment 6y ago · link · parent

Has this happened to you? What was it for? What did you do?

comment 6y ago · link · parent

> That sounds like a slam dunk good thing for society.

That particular application is a good thing. But the existence of such capabilities can be a net negative, and by a huge margin.

Crime is something like a "cost of doing business" of a free society. Take all the crime away with an all-seeing Eye of Sauron and you risk a technological dictatorship that opens death camps for the currently unpopular race/class and crushes all resistance.

comment 6y ago · link · parent

> Even if it costs more it’s just the right thing to do.

Why not use plastic once and then put it into a landfill?

comment 6y ago · link · parent

Oh my god yes.
12345
10