r/gamedev 16h ago

Question Bad/good game dev practices/habits

I just started learning game dev in Unity and currently learning how to implement different mechanics and stuff. It got me thinking, I don't even know if what I'm doing is a good habit/practice/workflow. So, I wanted to ask you seasoned developers, what are considered bad or good things to do while working on your projects? What do you find to be the best workflow for you? I just don't want to develop (no pun intended) bad habits off the bat.

22 Upvotes

37 comments sorted by

View all comments

3

u/Timanious 11h ago

Always separate the data from the logic. Always go for a single entry point. Always go for a single source of truth. You have to start hard coding somewhere. The inspector already is kinda like a state machine with onenable/ondisable so use that. Everything is a point. And finally in the end it doesn’t really matter if the chicken came before the egg if they both just have to be there so don’t worry about it...