DEV Community

Rising Tail
Rising Tail

Posted on

3 habits I've found helpful

This week I'm taking a short break from showing progress and talk about 3 habits I've found work out very well for me. That's not to say progress on the game is slow, quite the opposite! You can follow me on twitter for almost daily progress if you like.

Anyway, here we go:

Refactoring

Writing code can be messy. As much as I'd like to believe, I don't always get things done right the first time. There is a lot of rapid development involved, and, you know, just trying to make things work some times requires, uh, "less than ideal" code. That is perfectly fine. But it will be a source of huge regret if it stays that way.

So whenever I'm done with something, I've made a habit out of going back and review everything I did, and then refactor all the ugly stuff into neat and understandable code. I don't do it on a weekly basis per se, but it happens quite often. And yes, sometimes refactoring feels like..

Source control

This is fairly new to me, but it's a very important one. When I'm done for the day, or even if I've finished something up during the day, I push all changes to the source repository. I use Github. They recently made private repositories available to everyone, including non-paying users (like me!). Having my source somewhere else than my computer is reassuring and in the case of Github it also enables me to go back in time and find code I've since deleted. That has proven useful a few times already.

Todo list

When I'm done for the day I always, with no exception, update my todo list. It's not really a list per se, but rather one or two things that I should focus on next time I sit down to work on the game. Sometimes I call it a day pretty late at night so it's helpful to leave myself a reminder what I was working on and what needs to be done. It doesn't have to be code-specific, it can also be things like "research xyz" or "try to improve this and that sprite". Just enough to remind myself what's next. I've found this habit to be a huge productivity boost.

Do you have any habits? Let me know in the comments.

Discussion (0)