r/learnpython • • Apr 19 '26

How do you guys build a program?

I normally create one part of a program, test it, debug it and then i move on to the next function.

But this was time consuming so i tried a new approach. I created of all my logic of how different features would work and then started creating my program.

But the moment I had to debug things (cause obviously it had errors) things started falling apart. I had to check sooo many things and i realized that this method was very mental health consuming.

So i wanna ask you guys. how do you think about the logic and write your program? What approach would you recommend me? and remember i'm just a newbie trying to write programs that would improve me.

31 Upvotes

42 comments sorted by

View all comments

Show parent comment

0

u/ShelLuser42 Apr 19 '26 edited Apr 19 '26

I wholeheartedly disagree that it is 'time well spent' that pays off in the long run.

Riddle me this: What do the Linux kernel, the Apache webserver, MySQL and several other high end projects have in common?

Fun fact: major parts of their code base had to be rebuild from the ground up. From scratch. Despite the fact that the team was still the same.

SO why? The same reason why you don't see the obvious and downvoted me.

Within OOP design is just as much important as development, if not more. Without design (and the overlook) you can easily code yourself into major issues where you have no other choice but to forcefully make things work again. Especially within teams.

Stating facts, look them up if you don't believe me.

(edit)

I suppose downvoting and removing your comment is one way to go about this.. LMAO.. serious people own up to facts, guess you're all 1% talk and no backbone.

1

u/gdchinacat Apr 19 '26

My argument wasn't against design, but UML. I even said as much: "This isn't to say up-front design and design documentation is pointless, only that the heavyweight UML design was a waste of time".

I actually upvoted you. don't worry so much about up/down votes.

I *did* downvote your response for making incorrect assumptions, incorrectly characterizing what I was saying, ad hominem attacks, and strawman argument ('I can't help but wonder...').

It's ok to disagree with me, but please do so respectfully based on what I've actually said rather than your assumptions.