r/SoftwareEngineering • u/nickk21321 • Nov 25 '25
What methodology to be used?
Hi everyone I'm a junior programmer in my company. We are doing a b2c business with crud features, payment, login. Those basic web and app stuff. Nothing very complex. The thing is this company previous developers have had a very bad software design. Whereby everything was hardcoded and each new product entry was just a copy paste of the old script. No rest API for many features. All vanilla PHP from top to bottom of the code. I'm currently working on a new project and my thinking is on how to scale my code for future developers. Meaning if the next product is being developed my code should be a simple matter of plug and play and no more copy and paste scripts. My idea is very basic whereby I want to do control on the data entry side of things via rest API. So the new project developers will just have call this API. And for added validation I'll run cronjob daily to check if data entry is tally. I saw that there are some methodology like microservices or monolith but in my case I only know building a simple REST API endpoints will do for now. Am I in the right direction or is there something else I need to consider. Hope to hear your thoughts on this.
6
u/d9vil Nov 25 '25 edited Nov 25 '25
I can only tell you what I have experience with. Our backend is built with .Net and we use the virtical slice architecture pattern, but our actual architecture is more of a monolith. However, like you said there are other ways to do it. It just depends on how big this is going to get and how you want to organize it.
Youre going to want to look into different architectures in backend to figure out what suits your project.
Edit: clarification.
6
u/Anonymous_Coder_1234 Nov 25 '25
Junior programmers have a tendency to look at what exists, think it's bad, and immediately think "rewrite everything totally different". That's not always a good idea. It may be better to just go with what exists the way it exists, or to make non-drastic or incremental changes or transformation.
2
u/[deleted] Dec 08 '25
Move things out slowly. It definitely sounds like there could be significant refactoring in your project, but the execution of it is what is going to play a big part. Create an implementation plan and time line. Document the pros and cons and review with senior leadership. Maybe in the first iteration you can move product creation out to the new architecture. But refactoring a legacy system will take significant time so you have to prove the benefits outweigh the cons
2
u/Informal-Might8044 Dec 14 '25
You’re thinking in the right direction. The real improvement here isn’t microservices vs monolith, it’s separating concerns and removing copy-paste coupling. Introducing a REST API as the single entry point for data and rules is a big step forward already. Start with a clean, modular monolith, clear boundaries, and shared APIs; you can always split later if scale actually demands it. Focus less on cron-based validation and more on making the API the only place where business rules live.
1
u/tevert Nov 26 '25
There's dozens of little contributing factors that Internet strangers can't take into account, what do your own stakeholders/customers/users think of this idea?
1
u/hey-mr-broke Nov 27 '25
I'm no longer of the view that copy paste scripts are necessarily bad. If it is known that there is a small number of items that require the cut/paste, it might be easier to keep that pattern.
Adding a lot of layers to make it "generic" adds complexity that may not be needed. Let necessity be your guide. :)
1
u/Anonymous_Cyber Dec 24 '25
If it works don't touch it 😂 In all seriousness I agree with the synthesis that less is more. Developers before us did it for a reason and new tech comes out and we need to update from legacy to newer systems but need to do it in a way that we aren't putting ourselves into hot water later. Go with something that has already been built out and tried a thousand times. Why? Because it doesn't become a just you problem that only you can work on. Review how other backend apis are setup, Go, Python FastAPI, or Node are good places to look at for the time being. Especially if your apps are built out in PHP.
1
u/Great_Pattern_1988 Nov 25 '25
Your architecture should consider the developer's capabilities.
1
u/[deleted] Nov 26 '25
[removed] — view removed comment
1
u/[deleted] Nov 29 '25
[removed] — view removed comment
1
u/[deleted] Mar 17 '26
[removed] — view removed comment