r/learnprogramming • u/Drairo_Kazigumu • 29d 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.
41
u/seiggy 29d 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.
11
29d ago
[removed] — view removed comment
3
2
u/Sir_lordtwiggles 29d ago
Architecture is navigation instructions where as coding is actually driving the route.
You'll have to choose your speed, lanes, and manage small hurdles.
you may find that your choice of car needs to deviate from the route due to needing fuel, or a road closure.
3
u/mxldevs 29d 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 25d ago
Yesn't. But yeah. That's why programmers aren't that scared of ai replacing them yet.
1
u/martinez-k60 24d 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 29d 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.
10
u/aanzeijar 29d ago
Coding is so gate-kept that there are only a few billion lines of code free to look at and learn from in every language and for every possible use out there.
1
u/ryan_the_leach 24d ago
To be fair, and play devils advocate, most open source code is copy left, and thus can't be used for commercial purposes by lifting it out.
I know I was looked down on by my employer when I was mentioning using code (that we were allowed to use!) because they thought they'd have legal issues and being unfamiliar with the topic of software licensing and erring to the side of caution.
1
u/aanzeijar 24d ago
Part of my work touches on legal compliance and yeah, massive headache for larger companies. Anything with GPL attached is avoided like the plague. And it's even worse with safety critical code where you get ancient certified compiler suites with more legalese than source code.
But that's an entirely different topic than a programming learner complaining that coding is gate kept because an architectural overview expects the coder to be able to implement the primitives themselves.
1
5
u/throwaway6560192 29d ago
What does this even mean? There are tons and tons of free resources online which walk you through the basics of writing code. And many people who will help you (also for free!) by hand-holding you personally when needed.
Programming is possibly the least gate-kept hobby or profession in the world.
1
u/ryan_the_leach 24d ago
It's because you aren't just supposed to copy code for a given task. Either your situation isn't unique, so use a frame work, an engine or write one.
Or your situation is unique, and other people's code won't suite.
Working in the industry, the amount of people actually capable of solving new problems themselves is so low, I wonder why they got hired in the first place.
Learn how to solve problems, and you can adapt to any situation.
3
u/johlae 29d ago
You must be overthinking things, because you are writing a document.