r/learnprogramming • u/Drairo_Kazigumu • 25d ago
is this what software engineering is?
So I'm reading Gabriel Gambetta's guide on Multiplayer Architecture. I want to make an authoritative server that sends info to a webapp where the actual game is happening. However, there's not code involved. It's not a tutorial ðŸ˜. It's just a rough layout of what the architecture is supposed to look like, and all the nitty bitty details, like what code you're supposed to write to get the information from the webapp, process it through the server, how to run a fixed update loop every number of miliseconds, etc. are things youre supposed to draw out and search up on your own. This might be a stupid post, but like damn.
3
u/johlae 25d ago
You must be overthinking things, because you are writing a document.
41
u/seiggy 25d ago
Architecture != Code. Correct. You need both. Architecture is language agnostic. If you understand how to write code, you should be able to take his architecture and write it in any language. Typically you learn to code first, and then you learn to architect systems after.
6
u/link23 25d ago
That's one aspect, yeah. Another is making sure that the architecture you settle on is going to be maintainable over time. (The Google SWE book famously says that software engineering is "programming over time", to distinguish it from just "making the program work".)
3
u/mxldevs 24d ago
Architecture is a high level design that describes at a glance how your system works.
It you want to know more about actual implementation, you will need to go and look at what's available.
Maybe there are frameworks available that someone has already written. Maybe your engine has its preferred way of doing it. Maybe you need to build everything yourself.
Software engineering is everything from designing the solution, to picking the tools, to using the tools to produce the result.
2
u/realmauer01 21d ago
Yesn't. But yeah. That's why programmers aren't that scared of ai replacing them yet.
1
u/martinez-k60 19d ago
Yep, the diagram gets you to the edge of the pool and then says "swim." Start with one browser sending one message to one server; the fixed loop and multiplayer bits get less mysterious once that tiny version works.
-9
u/CentralCypher 25d ago
Yeah always felt like coding was gate kept, nobody talks about actually coding and writing literal code. Just vague hints at ideas and everything else is just inferred. LLMs are the only ones who do actually share code and talk about it rather than just scoff at you for not knowing everything already.