News for hackers. Stuff that matters.
Re:Ask HN: For side projects, do you Git from the start, or ... by jamil7 on Monday January 06, 2020 @07:21AM (#21968568)
You've mentioned at least two problems with your side projects here.

The first one seems to be a lack of version control hygene? just work the way you normally would at work, if you know you're doing exploritory coding then make a branch, commit the WIP if you have to and rebase / squash clean up the history later.

The second problem you can overcome by deciding what you want to get out of a side project, if it's purely for learning a new framework then approach it with that goal in mind, explore the tools the framework gives you for solving common development tasks, compare with other frameworks but don't expect to have a fully working functional side project from this process. If you want to make a new personal website then approach it with that goal in mind, which usually would mean using a stack you're familiar with.

As for your initial question, yes I always use git, for everything. I've been burnt in the past and learned my lesson the hardway.

Re:Ask HN: For side projects, do you Git from the start, or ... by sk0g on Monday January 06, 2020 @07:25AM (#21968590)
The version control part is a very good point actually!

For personal projects I just use the master branch for everything, which I just realised might be the cause of a few of the problems there.

To be honest, I haven't done much front-end/ user facing stuff even, aside from a few Android apps and some uni assignments. There's so much to learn and I try to stay away from JS/HTML, to an irrational degree maybe.

Do you start with git straight away though, or once it's reached a decent size where you wouldn't want to lose the progress made?

Re:Ask HN: For side projects, do you Git from the start, or ... by jamil7 on Monday January 06, 2020 @07:34AM (#21968626)
I would generally initialise a repo when I start the project. I would grab a gitignore from https://gitignore.io and not think to much more about it. You don't have to be super formal with your commits as you would when working with others.