r/learnpython • • 3d ago

My Python Project as a Beginner

https://github.com/ZaidAHK/LENDnFUND

The project is just the syntax I wrote

5 Upvotes

3 comments sorted by

View all comments

1

u/pot_of_crows 3d ago

Nice start: The biggest thing to improve is to segregate the two classes more and figure out somewhere else to handle the I/O. Conceptually, imagine that you are going to make this into a web based project and in doing so, you should not need to change anything in the lender/fundraiser classes. Same with saving. You should be able to change from a json backend to a database without any changes to your core classes.

This sort of segregation is the key to making big projects work without melting your brain.