Hacker Newsnew | past | comments | ask | show | jobs | submit | shikoba's commentslogin

> Of the top reasons people are happy at work, salary is way down on the list.

My gosh :face_palm:


I was sure reading your first post that you will propose rust. Rust users never cease to amaze me.


I'm not a "rust user" any more than I'm a java user (less, in fact). Your heuristic is probably picking up on the fact that people who pay attention to things like this tend to have correlated opinions.


To be fair there was also a significant chance he would think Rust was garbage and only assembly (or if you are lucky, C) are acceptable languages.


You still don't know how to spot them :). The borrow checker is a great invention, but for them it's the holy grail that will save us from bugs. Like in the past people thought that GC was the solution to every problems. Youngsters must learn, we have to be patient.


What? Are you crazy? Talking about security to developers! How dare you?


> write commit messages describing _why_.

Could you provide a concrete example? I don't understand your point.


As in: "changed this property in the config _because_ it will extinguish all evil from planet earth" vs. "changed this property in the config".

I can see _what_ somebody did well enough from the code diff itself -- reading an uninterrupted stream of messages explaining _why_ in a git log is a wonderful experience.


Thank you, I think I get your idea.


Ad soon as you bow to proprietary softwares you implicitly accept those kind of behaviors.


The idea of "merging into" has no meaning with git. You're merging two things into one. But saying that there are a master thing and a slave thing has no meanings.


git does privilege the first parent[1] in a merge in a bunch of contexts

[1] i.e. the branch you did the merge from


Not true because commit parents are ordered. One of them is first - the main parent.


It's a detail. But for some people it looks like it changes everything.


You can't recover where your references were but all the objects (anything with a SHA1) are still there.


reflog tells you when you created/changed a label and what ID it had, so you can recover them.


Has anyone written a tool to actually does this? I want to add that to my post-rewrite hook immediately so that I can gain peace of mind I will always be able to switch to a branch where I can study the previous reality after rebasing a new one.


My project https://github.com/arxanas/git-branchless does this. Use `git undo -i` to get a graphical view of where branches were at an arbitrary previous point in time.

It's worth noting that, in principle, there are cases where the reflog will have never observed a branch move. The reflog we usually look at is that of HEAD; if HEAD did not have the branch checked out when it moved, then that information will be lost. (For example, if you run `git branch -f my-branch abc123`, the branch will be forcibly reassigned without having been checked out.) See https://github.com/arxanas/git-branchless/wiki/Architecture#... for more details.


I have recently checked and it's absolutely legal to film someone in public. You're just not allowed to diffuse it.


The answer to a question to be precise.


> The answer to a question to be precise.

No. The expression before evaluation (i.e. as it's written) is a question/query/ask, after a successful evaluation you get a value - an answer. In case when the evaluation failed, you get either a compilation/parsing error, runtime error/exception, crash, infinite loop/no return, or undefined behavior.

--

- Commands and Queries (as in CQS[1] and CQRS[2])

- Wishes and Asks (it's a wish b/c unlike command it can be rejected, and for the same reason it's an ask and not a query - i.e. "you may ask, but it doesn't mean I'll answer").

- Truth or dare?[3] (Dares and Truth-es ;)

--

[1] https://en.wikipedia.org/wiki/Command%E2%80%93query_separati...

[2] https://martinfowler.com/bliki/CQRS.html

[3] https://en.wikipedia.org/wiki/Truth_or_dare%3F


In JavaScript no. But in some languages it can be.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: