Live data from Hacker News

How to end up with 500k commits in your log

arp242.net

41–50 of 59 posts

Re: How to end up with 500k commits in your log

#41

I won’t lie, I keep using commits as the equivalent to saving, and hence have many commits on my GitHub Profile (2,000 in the last year - many for me, I guess some have much more). At some point I got addicted to the number, so from time to time I try to manually increase my frequency of commits. All that said, I end up doing more commits when working on front end stuff, when I doing back end programming, I am not at…

Do you use `git stash`? I don't understand your workflow, do you commit to keep a log of your whole line of thought? As in: with your mistakes or failed designs/approaches being backtracked (overwritten/removed, etc.) and keeping an immutable sequence of your line of reasoning?

For me, commits of work in progress are only done on my development branches before I want to push to a remote to save my work in case of my computer failing (or getting lost/stolen, whatever force majeure), I usually write a "WIP: " message that I will squash later on when I have a meaningful commit.

Re: How to end up with 500k commits in your log

#42
post #11

I have this rails app that behaves really weird on Heroku, where every build fails the first time. So I have a comment "Commit comment" in my html that I adjust a capitalization on then push again. Works 100% of the time I expect to end up in the 500k commits club

Seems like an issue on Heroku's end really, maybe some build dependency timeout which is then cached or something. At any rate, I'd either dig in or contact Heroku, I couldn't imagine leaving that lie without knowing the cause.

Often, the root cause of this will bite you hardest when you need it least.

Re: How to end up with 500k commits in your log

#43
post #9
post #7

Earlier quoted context omitted.

My principle has always been "commit early, commit often" and "push early, push often". This works well when you do your work in a branch and you only "squash and merge" into the main branch (even if you are the sole developer on the project).

Works extremely well indeed. Like git was basically made to be used like this. However, only because of that 'squash and merge' aka 'sculpt a nice history with the emphasis on story' bit. Not doing that is in my opinion and experience completely useless for code. As far as I'm concerned there's hardly any difference between one commit with message 'fixes' introducing a 1k loc diff code dump or 1000 commits introducin…

> However, only because of that 'squash and merge' aka 'sculpt a nice history with the emphasis on story' bit. Not doing that is in my opinion and experience completely useless for code.

A thousand times this, I use `git log` as a debugging and learning tool, if I can find the exact commit that introduced a change that I don't really understand why or how was done I resort to looking into git's history to figure it out.

I hate when developers don't put an effort to tell the story of "why" you are doing what you did. The most common failure is just listing down the changes done in the code (the ones you can just read with `git diff`), I hate that.

I treat git's history as a breadcrumb trail, I leave as many breadcrumbs as I can on my commits so others can find the trail later on: JIRA ticket reference, background of the change, why a refactoring is being done, what I found during the refactoring that made it end with a strange design, why the documentation needed to be edited, etc. Whatever I can think that would make my life easier in 1-2 years time if I ever had to read `git log` I try to leave for my future colleagues...

Re: How to end up with 500k commits in your log

#44
post #43
post #9

Earlier quoted context omitted.

Works extremely well indeed. Like git was basically made to be used like this. However, only because of that 'squash and merge' aka 'sculpt a nice history with the emphasis on story' bit. Not doing that is in my opinion and experience completely useless for code. As far as I'm concerned there's hardly any difference between one commit with message 'fixes' introducing a 1k loc diff code dump or 1000 commits introducin…

> However, only because of that 'squash and merge' aka 'sculpt a nice history with the emphasis on story' bit. Not doing that is in my opinion and experience completely useless for code. A thousand times this, I use `git log` as a debugging and learning tool, if I can find the exact commit that introduced a change that I don't really understand why or how was done I resort to looking into git's history to figure it o…

The most common failure is just listing down the changes done in the code (the ones you can just read with `git diff`), I hate that

Exactly. But I have noticed for some people this seems just really hard, don't know why exactly. Even after repeating and explaining the same thing (git commits, just like comments in code, should explain why, not what, the what can be inferred from the code and if not the code is usually not very good) I see people struggling with coming up with an acceptable explanation in full sentences of why a change was made.

Re: How to end up with 500k commits in your log

#45
post #28

This is a good opportunity for me to ask something I've been wondering for a while about what is appropriate to put on a blog tied to your real identity. The majority of this article could be seen as negative toward the author's former employer. The website is also listed on the author's CV, and knowing the author's name it is easy to find the website. Is there the possibility that this is seen as unprofessional, or…

You should speak truth regardless of what others think. You'll get more respect even if you ruffle a few feathers.

Musing about how you used to call your employer like the failed painter from Austria is a bridge further than ‘ruffling a few feathers’.

Re: How to end up with 500k commits in your log

#46
post #18

Earlier quoted context omitted.

The author agrees “I very much regret working on this First job, insecure about your career prospects and whether you’re able to get a new job, and it becomes easy to rationalize these things to yourself.”

The scam works because they put you under time pressure and the refund laws for internet purchases have an exception for concerts/events. So you think it is almost sold out and you can just get your 2 tickets you want for 200 bucks, you order, afterwards you realize... Wait a minute... There are official sellers... but that's it, you have to pay. Let's hope karma exists.

It’s not like the big promoters don’t have a taste for this just as well.

Welcome to the machine!

Re: How to end up with 500k commits in your log

#47
post #32

> One of their websites was a “website builder”, like Geocities, except worse. The value for the customers was that was in Dutch, with Dutch support (it didn’t even support English.[2] Shortly before I joined they decided to rewrite it from scratch (which in this case was probably the right decision by the way). Or people just want to do the work in their mother tongue instead of a foreign language. Personally, it's…

I think you completely misread what I wrote; the entire point was that it being in Dutch was valuable (in spite of being a very mediocre to crappy product in every other way).

Re: How to end up with 500k commits in your log

#48
post #32

> One of their websites was a “website builder”, like Geocities, except worse. The value for the customers was that was in Dutch, with Dutch support (it didn’t even support English.[2] Shortly before I joined they decided to rewrite it from scratch (which in this case was probably the right decision by the way). Or people just want to do the work in their mother tongue instead of a foreign language. Personally, it's…

> > The value for the customers was that was in Dutch, with Dutch support (it didn’t even support English

> Or people just want to do the work in their mother tongue instead of a foreign language

These two sentences mean the same thing. While sometimes people say “or X” to reword X I don’t see why you’d do that. It’s clear as it is.

Re: How to end up with 500k commits in your log

#49
post #28

This is a good opportunity for me to ask something I've been wondering for a while about what is appropriate to put on a blog tied to your real identity. The majority of this article could be seen as negative toward the author's former employer. The website is also listed on the author's CV, and knowing the author's name it is easy to find the website. Is there the possibility that this is seen as unprofessional, or…

I think this is a good question; as the author of this, my general attitude to these kind of things is that I'd rather just be myself rather than try to tactically modify my behaviour to get better outcomes.

I've seen people advise that you should "avoid controversial topics" on first dates, as that "might be a turn-off". Well, maybe it can be (certainly had a few dates like that), but that would also be boring conversation, and not very meaningful as such if you're actually looking for a serious relationship (which doesn't apply to just romantic relationships by the way, also other kind of social relationships). Related comment from last year: https://news.ycombinator.com/item?id=23788380

It's partly cultural as well; I've seen this in certain countries (cough England cough), where everyone avoids talking about anything meaningful so all they talk about is the weather or some such pointless conversation because they're afraid someone could possible disagree with something they say. It's not like I'm against small-talk, but if that's all you do... Okay, I'm exaggerating a little bit, but it's certainly very different from my own Dutch culture where people tend to be a lot more forthright.

It's not like I will just say whatever without any filter or consideration for other people's feelings, or what might be inappropriate, or without being receptive to feedback. Actually, I try to be quite conscious in how I communicate, especially online where the lack of body language and diversity of culture/social norms can make things pretty darn hard. But at the end of the day this is mostly about how you say something rather than what you say. e.g. "this is stupid" vs. "I'm not sure if this is a good idea".

There are always trade-offs of course. I was known as "Carpetsmoker" online for years and I changed it across the board over a period of a few years to "arp242" mostly because I felt "Carpetsmoker" didn't sound too professional (a lot of people seem to associate it with drug use – I don't even like to smoke cannabis! It was just a funny joke I made when I was 14 that turned in to a nickname). I still think it's kinda funny, but what's an appropriate nickname when you were 14 isn't necessarily appropriate when you're 36 and actually use your GitHub as a way to earn your living, and it doesn't really matter all that much what your name is; so I just changed it.

I publish it on my personal name because I see it as my personal space. Being anonymous would make it "arp242's personal space" rather than "Martin's personal space". I know some people like to keep their "online identity" more separate from their "real life identity", but personally I don't really separate things out all that much.

This is a bit rambly maybe; I'm having a hard time to articulate my feelings on this ... but I hope it makes sense.

And, of course, everyone can make their own choices in this.

Re: How to end up with 500k commits in your log

#50
post #32

> One of their websites was a “website builder”, like Geocities, except worse. The value for the customers was that was in Dutch, with Dutch support (it didn’t even support English.[2] Shortly before I joined they decided to rewrite it from scratch (which in this case was probably the right decision by the way). Or people just want to do the work in their mother tongue instead of a foreign language. Personally, it's…

> > The value for the customers was that was in Dutch, with Dutch support (it didn’t even support English > Or people just want to do the work in their mother tongue instead of a foreign language These two sentences mean the same thing. While sometimes people say “or X” to reword X I don’t see why you’d do that. It’s clear as it is.

Yes, I am aware of that. Just wanted to express my opinion.

For example, Netflix is doing a bad job at providing Dutch subtitles. Barely any tv show has Dutch subtitles. Disney+ does a much better job.

Post reply on HN