|
|
|
|
|
by sfn42
262 days ago
|
|
That's a great point, and I feel like it is relevant for a lot more than games. We should definitely have a plan before we start, and sketch out the broad strokes both in design and in actual code as a starting point. For smaller things it's fine to just start hacking away, but when we're designing nĂ¥ entire application i think the right way to approach it is to plan it out and then solve the big problems first. Like multiplayer. They don't have to be completely solved, it's an iterative process but they should be part of the process from the beginning. An example from my own work: I took over an app two other developers had started. The plan was to synchronize data from a third party to our own db, but they hadn't done that. They had just used the third party api directly. I don't know why. So when they left and I took over, I ended up deleting/refactoring everything because everything was built around this third party api and there was a whole bunch of problems related to that and how they were just using the third party's data structure directly rather than shaping the data the way we wanted it. The frontend took 30-60+ seconds to load a page because it was making like 7 serialized requests, waiting for a response before sending the next one and the backend did the same thing. Now it's loading instantly, but it did require that I basically tear out everything they've done and rewrite most of the system from scratch. |
|