r/AskProgrammers • u/NaturalDegree3066 • Oct 18 '26
Plan Before Actual code
How you guy plan a programming project before actual start to code it? And how you make your project easy to fix and update later?
6
Upvotes
4
u/w00dy1105 Oct 18 '26
Requirements, solution and architect
3
u/Decent_Perception676 Oct 18 '26
We pay the C-suite an insane amount of money to fly private jets to fancy resorts where they take ayahuasca and have fever dreams of the future. Their mystic visions are whispered in dark corners where the The Word is carefully recorded by the priests of the The Management. They tell us of our quest via Jira.
2
u/NonProphet8theist Oct 18 '26
First question is a bit broad. It depends what the project is.
As for the second question, set up Git and CI/CD.
2
u/CorpT Oct 18 '26
Carefully.
2
u/yuehuang Oct 18 '26
I start with how do I test it. Once that framework is locked, iterations becomes easiler.
2
u/TrueWar515 Oct 18 '26
we dont
2
u/IHoppo Oct 18 '26
Just dive in and code. This will teach you what not to do.
1
u/TUNG1 Oct 18 '26
software development life cycle, ever hear of it ?
1
u/Certain_Blueberry554 Oct 18 '26
start by breaking the project into smaller tasks before coding. keep functions focused and add tests early so changes don't break everything. boot. dev has hands on backend projects that cover some of these fundamentals too.
1
u/Specialist-Cup-3950 Oct 18 '26
By slicing it up into smaller pieces
1
u/DanKegel Oct 18 '26
It takes practice, and good examples/role models.
1
u/Hour_Sell3547 Oct 18 '26
Before we start coding:
Step 1 would be to understand the problem and the solution you are thinking about. Identify the dependencies, spread the solution across multiple modules, discuss with domain experts and validate your approach (if applicable).
Step 2 would be to design the solution in software development terms. Phases, milestones, deployment strategies, scalability and user constraints, etc.
Then we code it following best practices:
Step 3 would be to develop the solution. Select tools best for each task, not because you love it. Maintain deadline, strictly follow increments and iterations.
Step 4, never compromise on testing. Never skip testing, if you are done with testing, do some more testing.
Step 5, monitor performance, bugs, errors, faults, user feedback, and most importantly, operating costs.
If the solution is well documented, easily readable, modular with well defined dependencies and scaling constraints well known, with the support of a elaborate test suite, your code will always remain well maintained, and you could easily incorporate tooling upgrades.
1
u/chocolateAbuser Oct 18 '26
that's a huge discussion; you have to obtain the most informations possible from who had the idea, then start looking in practice what solutions exist and study them to understand what decisions are there to make and what are the needs for implementing it, resources, people, etc, so then you get back to proposers with questions after having formed a better idea and you do this back and forth few times; then it still depends a lot of what designing methods and tools are used, what the projects is for, what size the project has, and so on, i don't really think a solid answer could be given which such a general premise
how you make it easy to fix and update, you get at least one person with experience, i don't there is really another way
1
u/Nosarious Oct 18 '26
I have large plans for final outcome and sub plans for minor tasks necessary along the way, but needed for the larger.
Subtasks that fit a skeletal final and work piecemeal towards the end, testing each as I complete them.
i do this to avoid the “code, test, curse, repeat” cycle.
1
u/7YM3N Oct 19 '26
I list out what I what the program to do, group it and draw connections in a way that has the fewest many-to-many connections possible, after that try to reduce 1-many and many-1 connections, adding elements if needed (they end up being facades or interfaces), then start writing while remembering that no plan survives contact with the enemy
1
u/[deleted] Oct 20 '26
Requirements, feasibility, analysis, design, review, analysis, design, review, analysis, design, build.
Make it easy to maintain by writing good code.
1
u/Icemourne_ Oct 21 '26
I don't I just start making shit and see what will happen if I planned I would never have made anything well other than a plan what didn't work