Weeks 7/8
- Projects
Vacation
Took week 7 off for a little family time. Not a whole lot of relaxing went on. Instead I spent a few days building a playhouse for the kids.
Back to coding…
This week’s project has been a simple hangman game.
It’s been the most involved project so far with multiple error messages, detecting a win and a loss, checking the user’s guess and so on.
One thing I’ve started to encounter as my mini-projects get slightly less mini is the need to better organize my code. This has led to a few Googling sessions on code refactoring etc. Much of it is beyond the scope of what I’m currently building, but it’s been good to start thinking about that.
I’ve been able to go over my code and extract some things into smaller and reusable functions (for my alert messages for example).
I imagine there’s still lots of room to make what I’ve done much cleaner and more efficient. I’ve still got fairly deeply nested conditional statements which make me think there must be a better way.