HNHacker News
TopNewBestAskShowJobs

justinlaster

412 karma · joined November 17, 2016

[ my public key: https://keybase.io/justinlaster; my proof: https://keybase.io/justinlaster/sigs/NIvhjtZkqoQiaKiZ3OudFnu8DxWLgR-zguPUeUeS_O0 ]
submissionscomments
justinlaster··on You don't see Google on first page of search results by googling “search engine”
Did you miss OP's example? Why would spellcheck give you the same word you just typed in? It's manual intervention.

They are clearly able to modify search results based on a rule system.

justinlaster··on A Git catastrophe cleaned up
If you can't trust your developers to write acceptable commit messages, why are you trusting them to write code?
justinlaster··on You don't see Google on first page of search results by googling “search engine”
It's specific to that search term, and has absolutely nothing to do with the Google's general functionality. How is it not "manual"?

They clearly are able to create result sets crafted by their employees for specific search terms.

justinlaster··on You don't see Google on first page of search results by googling “search engine”
Why not? It may not be searching the web, but it certainly is still doing a search of possibly related words that you had intended to spell.
justinlaster··on You don't see Google on first page of search results by googling “search engine”
Could it be argued that spelling suggestions are still a search result in and of themselves?
justinlaster··on Ask HN: Excluding WordPress, what is your favorite for blogs or small stores?
I've recently been using Hexo for blogs: https://hexo.io/
justinlaster··on Why is Mail Online going after the fact checkers?
Yes you can. What in the world? You can definitely say something that is partially true. That's what conspiracy theories are built off of: a tinge of truth.

"The sky is blue because other stars reflect blue light onto our atmosphere." How would you rate that, given Snopes' scales?

Do you have any specific examples where there was a concise yet opinionated decision on any published articles from Snopes that don't rely on hard evidence for their conclusion?

justinlaster··on America Needs a New Moon Mission
He's not being clever. The incoming administration's own statements back his sentiment up. There's going to be more show than science. The incoming administration -- or those making up the incoming administration -- want to use NASA as a propaganda piece, not a problem solving institution.
justinlaster··on Falsehoods programmers believe about video
> it would seem to be easy to have multiple threads, starting at key frames to decode the content.

It's a resource issue (memory, cpu, etc; and meeting latency requirements between those constraints), versus the subtly different standards "H.264" hardware and software follow, as well as a few other intricacies with how the whole standard works anyways. Again, it's not that it can't be done, but as the article says it can't be done easily or at least in certain situations done consistently.

Key frames are a good anchor around anything you're doing with H264 (and other formats), but it's not the end all and be all -- and they may even cause you trouble if you "trust" them too much. It is perhaps a bit like date time programming. You can create something fairly easily that works for a decent amount of time, and even if it ends up being incorrect your clients may not even notice... or it may breakdown in a catastrophic manner in the future. But doing the latter is certainly not correct and it's certainly not professional. Quite honestly, I'd say date time programming looks like a dream compared to the inconsistent nightmare that is video programming. Date/time logic needs to be sound because many programs rely on consistent and sane output from a program perspective, where as video programming gets to slide as long as the output is generally correct from a human visual perspective.

It's been a few years since I've dived into this stuff, so some things may have changed/gotten cleaned up. But the article seems to indicate that the ecosystem hasn't really changed.

justinlaster··on Falsehoods programmers believe about video
> a H.264 hardware decoder can decode all H.264 files

and

> video decoding is easily parallelizable

At a previous job, I don't know if it was just the field I was in or just bad luck, but having to explain this over and over again was kind of a personal nightmare.

That being said, this is an excellent list!

justinlaster··on Why is Mail Online going after the fact checkers?
According to the epistemological principle of not being proved wrong while containing a reasonable amount of evidence to indicate that their report is in all probability true.

Why are you asking such a vague, open-ended question?

justinlaster··on Why is Mail Online going after the fact checkers?
> I've never seen anyone give a good reason why Snopes should be trusted.

Their impressive library of detailed articles in where they factually report on myths and conspiracy theories?

justinlaster··on Why is Mail Online going after the fact checkers?
That's not substantive, and certainly doesn't have any effect on the thousands and thousands of articles they've posted.

Would you care to link that tenuous red flag to the investigate articles Scopes produces in some fashion?

justinlaster··on Why is Mail Online going after the fact checkers?
You're going to give a Forbes article more credence than Snopes? I still haven't seen anyone point to a substantive example of why Snopes should not be trusted.
justinlaster··on A Git catastrophe cleaned up
> I would also like to see an instance where Mercurial hiding information from you and giving misleading answers to your queries.

A branch with two heads. Two branches that have the same name. Which commit came from where? What happens if that branch was merged into the other? Or what happens if only one got merged into a "mainline" branch, while the other one was reverted else where. It's useless information at best, and misleading at worse.

>But it is supposed to be used by people. So it should be first human friendly.

You're going to claim a DSL that you have to research is somehow easier to use than simple command line arguments that have decades of convention behind them? Odd.

Git allows you to format output as well. Not sure why you felt the need to bring that up. Again, unless you've extensively used both systems I'm not sure why you feel the need to argue because it's making you look foolish.

>There are some examples at the bottom of the revset page I linked.

And absolutely none of them help your argument.

justinlaster··on A Git catastrophe cleaned up
>to answer questions like "What feature was this commit part of, originally"

Neither system will answer that. If you're relying on branches to tell you what feature sets changes belong to, you should be adding that to your commits.

>"How and where did the merges happened?"

Git will do this faster and in a more correct manner. In a complicated history graph, Mercurial will actually hide information from you if you try to query it and sometimes even mislead you. I'm starting to think you haven't used either system extensively.

>Parse what exactly?

Arguments and output.

>Oh it does support it plenty.

It does not. If you can't give an example, you can just admit that you don't know what you're talking about.

justinlaster··on A Git catastrophe cleaned up
>It's for long-term branches.

Please elaborate how this helps you in long-term branches, instead of just assuming long-term branches aren't something most people deal with on a daily basis.

>you might be happy to have a tool that helps untangle the web of merges somewhat.

This has no relation to long-term branches, this happens with any kind of normal history, and even shared history between repositories (which is a far messier thing to untangle). Yet this feature is unneeded, because the information can be correctly found within git in an accurate and not misleading fashion.

justinlaster··on A Git catastrophe cleaned up
>But for smaller projects, maintaining a truthful history is much more valuable.

Elaborate.

>Mercurial supports git's branching model and a lot of others.

Except, it doesn't completely.

>Are you seriously saying that using command line flags is more powerful and easier than using a query language that lets you use arbitrarily expressions to query a data set?

Yes, because command line flags are ubiquitous in nearly every single tool, versus an arbitrary DSL that has no convention behind it, or can be easily parsed by other tools in the same ecosystem.

> Please take a look.

You seem to be under the impression that I have not or do not use Mercurial. You would be mistaken. Both of those pages do not lend support to your claim that the ability to "query" (with or without a DSL) the history graph is somehow superior in Mercurial. They merely document the feature, but do not draw any meaningful comparisons highlighting what it can do that git log or even git rev-list (which git log uses) can't.

justinlaster··on A Git catastrophe cleaned up
>The codebase I'm currently working on has recent commits with description "review", "add addressDto" and "post rebase fix".

I guess what I don't get, is that if you have people doing commit messages like that, how can you possibly expect them to appropriately name a branch which most likely stores far less characters.

justinlaster··on A Git catastrophe cleaned up
I'm sorry, in what practice are you in where your commit messages are somehow so lackluster that a branch name (not even a PR!) can give you more information about why something is being done?

And to make sure no one responds with some silly "just because you don't have a use for it, doesn't mean don't have their uses for it": I get what you're trying to say. I'm really just not buying it as an actual use case. If your commit message isn't sufficient enough to explain the purpose of the commit (ticket numbers, explanation, etc), it doesn't get approved. If you're relying on a <20 character branch name to give you sufficient context about a commit a year later, I simply have no words.

>which I think a mercurial-style branch name answers.

I find that extremely suspect.

justinlaster··on A Git catastrophe cleaned up
There's no easy quick way to represent the actual state of the commit. It's far easier in git because it's the only way to do it. Furthermore, then information being "encapsulated" can actually become stale or misleading in Mercurial.
justinlaster··on A Git catastrophe cleaned up
> Which branch was commit `B` made on

You can do some basic heuristics to figure it out, but I'm not sure what the point of knowing this is.

>What did the `bugfix` branch look like one commit ago?

`git checkout bugfix; git log bugfix^1`

justinlaster··on A Git catastrophe cleaned up
You're right, it's not moved across remotes. I'm just confused to why the information would ever be needed. It seems to not have any real use case. You can recreate a branch any where at any point in the history, why would you care what commit a branch originally came from? It seems like a solution in search of a problem. Or maybe even a solution to a problem that shouldn't need solving in the first place!

>If I make a fresh clone of a repository, that doesn't tell me what the branch was like a year ago.

This isn't true with Mercurial either. A lot can happen in a year, and it might even make the information misleading (having similar named branches, history deletion, etc). It's useless at best and misleading at worst.

justinlaster··on A Git catastrophe cleaned up
>Git does not do this. Because git does not have this concept of named branches.

It doesn't pre-bake the information in the commit, because it's entirely useless information to bake into a commit; and even in the case of Mercurial can paint the wrong picture about the nature of a commit given branches that it's on.

>This gives much more possible workflows in case of Mercurial.

That is the exact opposite of what it gives you. I'm not even sure how you possibly arrived at that conclusion.

>Mercurial contains vastly more querying capabilities in the form of revsets.

Git doesn't need a query language, because you can literally do everything revsets will give you with git log and then maybe some very elementary bash script knowledge. You are literally arguing that Mercurial having its own arbitrary DSL is somehow better than git being able to seamlessly use popular tooling with conventional command line syntax; which seems to be at odds with the whole "mercurial is easier to use." I take extreme issue with your claim that Mercurial has "vastly" more querying capabilities and then you not even give one measly example.

justinlaster··on A Git catastrophe cleaned up
> If two branches have parent commits in common, it technically belongs to both branches.

It belongs to both branches as well in Mercurial, it just hides that information from you. An astoundingly bad idea, no? I'm not sure how mercurial hiding information from you is a "feature" in any sense of the word.

justinlaster··on A Git catastrophe cleaned up
>One use case is given branch X, tell me what the branch looked like N commits in the past.

What am I not understanding here? You definitely can go N commits in the past on each branch, and even any commit. And if you rewrite history you can even use the reflog to really tell what the branch was like (as long as it hasn't been cleaned out).

justinlaster··on A Git catastrophe cleaned up
You asked what the following command did, and it will do plainly what you tell it to, but you're treating the fact that a/b can be anything you make it to be somehow a fault of checkout, and all because it decided to be nice and try to guess what you really want. I don't understand that line of thought.

The git documentation clearly states what happens in your scenario:

> ARGUMENT DISAMBIGUATION

> When there is only one argument given and it is not -- (e.g. "git checkout abc"), and when the argument is both a valid <tree-ish> (e.g. a branch "abc" exists) and a valid <pathspec> (e.g. a file or a directory whose name is "abc" exists), Git would usually ask you to disambiguate. Because checking out a branch is so common an operation, however, "git checkout abc" takes "abc" as a <tree-ish> in such a situation. Use git checkout -- <pathspec> if you want to checkout these paths out of the index.

See here: https://git-scm.com/docs/git-checkout#_argument_disambiguati...

If you somehow manage to purposefully name things in a confusing manner, you can tell git exactly what you want it to grab at any point in time. I don't possibly see how this is a fault of the tooling.

justinlaster··on A Git catastrophe cleaned up
>branches give you a way to track the branches a commit is a part of which is good for long-running branches

I think you have a slight misunderstanding on the differences between git and mercurial, as git absolutely allows you to do this. Mercurial tends to track this information in a way where it actually limits telling you what branches a commit is contained in. Git will tell you straight up which branches lead back to a commit (i.e., being contained in them). Mercurial tends to only give you immediate, direct ancestors, any kind of complicated history and Mercurial can't be bothered to actually to dive in and tell you what branches a commit is really apart of.

That seems to be strangely counter-intuitive for "long running branches."

Git doesn't need an equivalent of Mercurial branches and bookmarks, because git branches do everything both of those mercurial features do and more, in a far more lightweight and efficient manner contained in a clean, singular feature.

justinlaster··on A Git catastrophe cleaned up
I had a comment written up, but I decided to test my claim in my original post about a "litany of literature", and sure enough this has been documented elsewhere:

http://gitolite.com/git-pull--rebase

I searched for "how does git pull --rebase work"

justinlaster··on 'Upset' Linus Torvalds gets sweary and gets results
They actually didn't get flamed. There was no personal attack, even though he was well in the right to do so.
← PreviousPage 3 of 5Next →