Better HN
topnewbestaskshowjobs
Log inSign up

rootlocus

3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions

Submissions

comment 8y ago · link · parent

Well, I see you're adding more and more constraints to suit your point of view. First you attacked git by pointing out some flaws that were only just about people not knowing how it worked. Then you gave a more specific example, where actually, it was in the company's best interest to hire a novice developer who didn't have time to learn git, because he was pressured into focusing on whatever the CEO wanted. Then you argued that really, companies can't hire good people, or train them, or use good practices and we should just use the path of least resistance. At the end of the argument, it wasn't really about git.

The issue you have with git, is that untrained developers have a hard time using it. Which brings me back to my original comment. It really doesn't take long to train someone to use git. And you can choose whatever flow you want. That's the beauty of it. If the company hires lower skill people, you can just guide choose a branching mode suited for their needs. They don't even need to use branches. Or just teach them to use an UI. But please don't teach them SVN.

comment 8y ago · link · parent

You almost never checkout to a commit. You checkout to a branch. A branch is a reference to a commit, and the HEAD is a reference to a branch. The HEAD is where you are right now. When you make the HEAD point to a specific commit, you're in a 'detached head' state.

`git log` tells you all the commits that are part of the branch. More generally, they are the commits who are children of the current commit (the commit your branch points to).

`git reflog` tells you where your HEAD has been. When you change for branch to branch, the HEAD moves around. That history is recorded in the reflog. If you botch a rebase, your HEAD will sit on top of the newly created (and botched) commits. You can still access your previous commit by looking where the HEAD was before moving to the new commits made by the rebase.

comment 8y ago · link · parent

Because git is magnitudes of times faster, and it's the most widespread VCS in the world at the moment.

comment 8y ago · link · parent

> completly loose commited data

Except the whole point is that you can't completely lose commited data, even if you tried really hard. And the solution to the problem was `git reflog` which shows the history of the HEAD.

comment 8y ago · link · parent

And then you still have the commits, but no branch pointing to them. Don't worry, they're still there.

comment 8y ago · link · parent

> The argument is focused on those who can not learn how it works.

If you're a software developer who uses branches and merges, you absolutely should learn how it works.

If you're an artist, git is not for you. It can neither store large binary files efficiently, nor merge them. There are other VCS that supposedly can, but I haven't tried them.

> Also, it's important to note that everything on that list is something that actually happened.

I can assure you, no data was permanently lost. What did happen is somebody couldn't find it, because they didn't know where to look. And I argue they should have, because git is not really that hard to learn (as a developer).

comment 8y ago · link · parent

> He was learning a great deal about many other technologies, and he didn’t have any spare energy to learn about Git.

Git is something that you can use on almost any project, with any team, at any company. It's something you need to use if you want to contribute to open source. Aside from your programming language of choice, it's probably the second most useful tool you should be learning as a software developer.

You're telling me a developer was too busy learning "other technologies", and in 6 months he couldn't be bothered (or was too afraid) to spend one or two hours going through a simple course about git? By that argument, he probably couldn't be bothered to learn how separate concerns into classes or how to use refactoring or write tests. What other things didn't he have time for? Unwillingness to learn is not an excuse.

> he never really learned how to use Git, because it was a low priority, for both him and our CEO.

I think it was more of a lower priority for your CEO than Sital. Learning git was something that benefited him more than it benefited the company.

I still have issues with your attitude, because it can be applied to anything useful in software development, but management might take issue with. Writing tests? Who needs them? The CEO doesn't care so they're low priority. Refactoring? Waste of time. Management wants shiny features not code quality. Developers have tried really hard to convince management that some overhead is needed to keep the quality high and maintenance easy. Your attitude is the exact opposite.

comment 8y ago · link · parent

Almost everything on that list is wrong, but if I point something out (because I actually learned how it works), I'm just a predictable git fanatic? How is that different from burying your head in the sand?

comment 8y ago · link · parent

I think lists like these are part of the problem. You shouldn't rely on tricks to use git, you should understand how it works.

comment 8y ago · link · parent

Well, I think it tells how much time some developers are willing to spend learning the tools they are using.

comment 8y ago · link · parent

Pushing to a remote is a backup. Gitlab offers private repositories for free.

comment 8y ago · link · parent

Do yourself a favor and learn git properly. It pays of hugely in the long run. The book that clicked for me was Git Internals [1]

[1] https://github.com/pluralsight/git-internals-pdf

comment 8y ago · link · parent

> 2. data is erased for good because someone makes a mistake while using rebase

No. Just no. Please stop spreading FUD like it's candy. Git only deletes commits after a GC, which won't erase commits from reflog and will keep unreferenced commits for at least a month before deleting them. And rebasing generates new commits, leaving the old ones exactly how they were. If somebody lost a commit after a rebase, and nobody nearby could help them recover it, they should consider spending a few hours learning about git.

I've been using git for 4 years both at work (with a team of 40+ people) and at home, without ever having any of the problems listed here (except 3 which has nothing to do with git). It takes a few hours, maybe a few days to understand how git works and how to use it. Instead of blaming the tools, you (and your team) should probably learn how to use them.

comment 8y ago · link · parent

I don't think so. It's a crime to do something (to me) against my will. And I decide what I want and don't want other people to do to me (my will is subjective). If an attractive person kisses me out of the blue, I might enjoy it, and it's not a crime by any definition. If I didn't like the other person, I didn't want them to kiss me, and the accusation is fair.

comment 8y ago · link · parent

Well of course it's relative. Some things you like, some things you don't. When someone attractive makes a gesture, you're more inclined to be flattered.

comment 8y ago · link · parent

Someone else replied pointing out that what you're referring to are called imposters. I would also like to add they're a very very common technique, and something Wolfire Games added to their indie game Overgrowth in 2010, with a complete explanation: http://blog.wolfire.com/2010/10/Imposters

Yes, you can expect modern games to use any and all tricks available to squeeze performance. Imposters are an example of a LOD (Level of Detail) technique, which is standard in all game engines.

comment 8y ago · link · parent

The law doesn't consider your sympathy in either case, and that's the point.

comment 8y ago · link · parent

Being afraid to take legal action and defend your rights out of fear of bad PR is... not cool. This is somewhat the equivalent of being afraid to speak against an abusive partner.

comment 8y ago · link · parent

> But baby-boomers with nest eggs cashing me out because they feel entitled to make an easy buck and are buying something they don't understand doesn't seem like the most important injustice.

That's condescending, hypocritical bullshit. Why do you feel entitled to "cashing out" on their savings because you're tech savvy?

> Not necessarily rich people (not just rich people), but well-off people who have money they don't need sitting around.

This is straight up delusional. I'm appalled that you would spend so much time describing who you think invests in cryptocurrencies, just to justify yourself profiting off them. Actually, most people who invest in the stock market know better than to get involved with bitcoin. Most people who hyped its value lately are the kind of people who have no idea what's about, invest poorly and have fewer funds. [1]

So yes, most likely your profit came from "broke people, people working several jobs on minimum wage, people who have to use food pantries, people trapped in debt". At least don't try to pretend it's otherwise.

[1] https://www.engadget.com/amp/2017/12/12/bitcoin-mania-mortag...

comment 8y ago · link · parent

Not everyone will be able to profit off of bitcoin. Worse, those who will, will do so at the expense of everyone else.

There's only two ways this bubble will burst:

1. Inflation: the value of fiat currencies drops to match the supposed value of bitcoin, which negatively affects everyone

2. Only the first people to cash out actually turn a profit. Every other person who invested will lose everything.

Either way, the money you now made from bitcoin, came from people who will probably lose their savings contributing to the bubble.

comment 8y ago · link · parent

Regarding the confidential information:

> 50. On May 6, 2015, Defendants began posting a series of videos online titled "Bugsmashers." The videos contain excerpts of information from CryEngine that were confidential, in breach of the GLA, and should not have been shown to the public. The series continues today.

> 51 On August 26, 2017, news reports announced a partnership between Defendants and a third party developer, Faceware Technologies. Upon information and belief, as a result of the partnership, Faceware received access to the underlying technology for CryEngine (including computer source code). Defendants did not disclose this third party developer's involvement to Crytek, let alone obtain Crytek's prior written approval. This was entirely in breach of the GLA.

comment 8y ago · link · parent

This is false. They sued one user who had a contract not to switch to other engines.

> 36. Section 2.1.2 of the GLA contained a critical promise from Defendants that they would not develop the Star Citizen video game using any other video game engines.

If you don't want to get sued, don't sign contracts and breach them.

comment 8y ago · link · parent

They're not dealing with a lawsuit because they're using a free engine. They had a very specific contract with Crytek which they breached multiple times.

comment 8y ago · link · parent

How is that? Crytek aren't suing without reason. According to the complaint they lost money and tech from a breach of contract. It's a perfectly reasonable reason to sue.

comment 8y ago · link · parent

> 36. Section 2.1.2 of the GLA contained a critical promise from Defendants that they would not develop the Star Citizen video game using any other video game engines.

comment 8y ago · link · parent

It's legit https://twitter.com/flightradar24/status/940976806638899201

comment 8y ago · link · parent

While both are filled with low quality content, personal experiments without public importance, etc. I think github has some high quality, community relevant content that DeviantArt lacks. I see it like both DeviantArt and something like ArtStation.

comment 8y ago · link · parent

If you want immutable branches, you can use tags https://git-scm.com/book/en/v2/Git-Basics-Tagging

comment 8y ago · link · parent

> The cumulative effect of rebase followed by gc is to delete commits that have a branch pointing to them.

This is both false and irrelevant.

It's false because after the rebase, the branch you just rebased won't point to the old commits. Unless you had other branches there, they would be orphaned. Also, according to the "Notes" section of the git-gc documentation [0]:

> git gc tries very hard not to delete objects that are referenced anywhere in your repository. In particular, it will keep not only objects referenced by your current set of branches and tags, but also objects referenced by the index, remote-tracking branches, refs saved by git filter-branch in refs/original/, or reflogs (which may reference commits in branches that were later amended or rewound).

Since the commit you were on before making the rebase is in the reflog, it will actually not be GCed (yet) even though there are no branches pointing to them.

It's irrelevant because, even if it was true, as long as there are no more objects referencing that commit, it's perfectly eligible for gc. I don't understand your argument that "you can't have it both ways".

[0] https://git-scm.com/docs/git-gc

comment 9y ago · link · parent

Considering that people are still harassed for out-of-statue debt, and some even pay, there is actually some relief. Of course, not $15M relief that's certain.
1
212223
40