r/computerscience • • 6d ago

How do you choose the right architecture when you're still a beginner?

Hii! I'm a 3rd year CS student building a platform that uses recommendation systems. My goal is not just to make it work, but to understand how these systems are designed and implemented.

I'm struggling with technical decisions, should I start with a frozen MiniLM model + classifier, fine-tune it ...etc etc or use another approach?

As someone relatively inexperienced, how do you know which architectures, tools, and resources to trust and choose for your specific project?

I'm not trying to build a massive, overly complicated system. I just want to make reasonable, well informed technical choices while learning along the way.

So please help me, How do you approach architectural decisions when you're still learning?

18 Upvotes

27 comments sorted by

12

u/huuaaang 6d ago

It does not matter. At all. Seriously. Just do whatever interests you. You are not stuck doing what you start off with. Don’t overthink it.

1

u/orcaEnigma 4d ago

True, I guess I'm starting with what makes me curious and will keep improving it. It is still a graded project at uni, it is supervised, and I am expected to try various things and learn through it, though ofc it is limited to keep experimenting for very long. That's why I wanted to target the "perfect" architecture, which I guess doesn't exist.

11

u/jpgoldberg 5d ago

You typically do it badly. And you learn.

Just pick one and do it. You will make architectural mistakes. But that’s ok as long as you learn from it.

2

u/orcaEnigma 4d ago

thank you ! I just need to start yea

4

u/Yord13 4d ago

"You cannot teach beginners top-down programming, because they don't know which end is up"—Tony Hoare

Pick up each end first, learn which one is up in which situation, and then learn top-down programming.

1

u/orcaEnigma 4d ago

ouu this one is interesting, i'm going to consider approaching this way, thank you

1

u/thefinest 1h ago

Hadn't heard this one but makes perfect sense.

3

u/caboosetp 6d ago edited 6d ago

It depends on what you're trying to learn. 

If you just want to make a system, pick what looks like the smallest architecture that will work. Make sure it has well defined boundaries so you can swap it out later if it's not enough. Wait until it doesn't work, and then make a new one to drop in.

If you want to learn how certain architectures work,  just go ahead and use whichever one you want to learn. 

The most important thing is to get over the decision paralysis and start coding. Roll a dice if you need to. You will learn more about what you need as you start working on it. Otherwise you are taking guesses, and trying to calculate the best from guesses gets you no where fast.

ETA: I just saw this word in your post

trust

You gotta read about stuff to know what to trust. If you're asking what you can trust to work, you can read about what people use it for. Worst case if it doesn't do what you want then you try again with something else. If you're worried about something containing malware, you should stick with things that have a ton of reviews and downloads.

But ultimately it comes down to you have to just pick stuff and go forward. The more you learn about what you need, the more you'll be able to ask pointed questions.

2

u/orcaEnigma 4d ago

Thank youu that was helpful. The loop of overthinking takes so much energy that I should be putting into real practice instead, especially when the overthinking leads to long AI chats and having it keep suggesting things that make me question even the whole idea, or when it contradicts itself and explains so many approaches all at once. It just feels so overwhelming. I guess I will start with the simplest architecture to calm those thoughts and then keep learning to improve it

1

u/caboosetp 4d ago edited 4d ago

Yeah, I totally feel that. I get caught in those same overthinking loops even outside of coding. I spent weeks delaying unpacking my kitchen because I wanted to make sure all my dishes were in the best place. The reality is having my dishes in boxes was the least-optimal solution.

What might help is knowing that even coding it in a non-optimal way will still give you better experience than spending that time spinning wheels.

When it comes to AI, you need to understand they will feed off your tone and do exactly what you ask. if you ask for different options, they will give them to you. There is no best solution, so if you ask it to try and find the best solution before implementing, they're will often spin wheels like you are.

You need to start talking to it the same way you need to start talking to yourself. "Is this solution good enough to start with" is a much less open ended question but should still let it point out glaring issues that might actually be show-stoppers.

There is no such thing as a perfect solution, but AI is happy to waste time looking for it with you.

2

u/spidermask 6d ago

You don't, really. You can look into similar work and take some ideas but sometimes it might not work for you.

When you're done, you'll see that you could've done some stuff entirely differently and that's usually when you learn.

1

u/orcaEnigma 4d ago

thank you, will try to see more examples of these systems

2

u/hotel2oscar 5d ago

College is the perfect time to try out various things and figure out how they work. This will continue on into your working career and over time you will build up an intuition for what might work for a given task. Don't try to overthink it. Do some basic research and give it a whirl.

1

u/orcaEnigma 4d ago

this sounds calming, thank you, I will do my best

2

u/frobnosticus 5d ago

What you do, genuinely, is not worry about it.

Don't reach for tools you don't need, and don't try to create art. That comes with experience and a LOT of scars :)

2

u/orcaEnigma 4d ago

alright i will try to start with something reasonable and simple.

2

u/frobnosticus 4d ago

Bah. Don't do that. Just don't try to shoot for an "architecture" first.

Work through the problem and wait until you start seeing "this and that look like they ought to be over here" and such.

2

u/Beautiful_Egg_371 5d ago

Boring advice, but start with a well written paper on the topic. That will usually cover ablation and design choices. Work your way from there

1

u/orcaEnigma 4d ago

Yes, I am considering approaching research papers in a more serious way to have a solid basis for my choices. Most papers I have been checking though are for large systems that are expected to already have massive amounts of active data. My platform (which is a uni project) will be a simpler version of those and clearly won't have nearly as much data, especially since data is pretty crucial for recommendation systems. Still, reading those papers helps a lot in understanding the core concepts and different approaches. Sometimes it makes me feel tempted to integrate bigger features that sound so interesting, even though they probably won't work at the beginning or would be too advanced and shift the main focus of the project

2

u/Beautiful_Egg_371 4d ago

I am sure there would be some work which tackles smaller training data. You will need to use some LLMs to add the priors

1

u/orcaEnigma 4d ago

thank you! i will do my best

2

u/devnullopinions 5d ago

Just try stuff out. Expertise comes from studying others and your own experiences.

2

u/FortyThousandBees 2d ago

Genuinely, use a coding agent (I recommend Claude because it's not really trained to kiss your a** like most other frontier models) to build a system that seems interesting to you, but have the agent help you write out a spec first, and make sure the agent knows you're the one making all the design decisions. I typically word my prompt as "help me identify any ambiguities in this specification and ask me how to resolve them". The agent knows what all the reasonable and well-established architectural decisions are for the kind of system you're trying to construct, so it will be able to show you what architectures are standard in practice, and, because this is ideally something you actually are curious about, you'll actually find it exciting to learn what the agent is showing you, and, if you're anything like me, you'll find yourself learning a whole lot more than you thought you could using a coding agent.

1

u/[deleted] 3d ago

I would really recommend using a coding agent, but being clear with it that you want it to have you make all the design decisions. I think you'll find yourself understanding your own systems more than you ever thought you could with claude code :)

1

u/thefinest 1h ago

You don't.

Instead you defer choosing to someone who is not a beginner and has the requisite expertise to make the best choices. Observe, ask why and maybe the next time you'll be the one explaining your architecture choices to the next n00b

TLDR: Beginners don't make these decisions