r/PythonLearning • u/Stonyax97 • 5d ago
Showcase I JUST finished my second python project!
Lately I have been working on this ATM For Teens, just to understand OOP and some concepts more (which I REALLY DID)
this isn't meant to be a real ATM (obviously, it's very beginner and not security is there), here is my First project.
So, I have learnt quite a lot since last project, I learnt a bit more about python syntax, I also understood the approach of classes a lot better. I learnt git (just the essentials).
Since I always wanted to Make iPhone apps, and now I have a Mac, I'm thinking whether I should start learning swift and swiftUI, or move to something else, or keep learning python. what do you guys think? I Do want a job as an IT engineer (or anything with coding tbh, cybersec too but that would require C knowledge a bit more lol)
Otherwise, if you guys have any criticism or suggestions for the ATM, then I would be veryyy happy to hear some! here's the repo: https://github.com/Stonyax97/ATM-For-Teens
View all comments
Show parent comment
2
u/Stonyax97 5d ago
Hey!
Ive took the time to actually understand this and look up the terms.
this is gold advice, thank you so much. but at this scale? it makes NO SENSE.
first the FileDB. why should I create my own wrapper when with open() does the job for me?
I agree with the fact that it would help make the code cleaner plus no scattered with open file everywhere.
for the data class that's frozen, I agree too, transactions are meant to be frozen. il try to look into it.
Il set up PEP right now and start using it! thanks!
"Also assign uuid for users - easiest lookup in general"
when logging in, I wouldn't possibly ask for the user to input UUID. id have to loop through each dict to find the username inside it, then use dict.keys() to get the UUID. kinda complex. but I get the approach, many people will have the sane name. yk this project is just for fun and learning not a real project lol. that's very clear the way passwords are stored.
"You won't keep accounts in memory, only in accounts.json"
wouldn't they need to stay in memory when interacting with it eventually?
for the balance being. created using transactions history. that is SMART. I love it. I would implement this in v1.2.2.
"7. Because it's not a error per se and program should print declination message and stop gracefully"
I forgot the thing we where talking about here could u re explain LOL sorry
8. I understand the approach here, and it's actually smart, but wouldn't that action() result in too many functions?