r/PythonLearning • • Aug 26 '25

Project - Password Analyzer

Topic - Project on what I've learnt so far

Hi all! Just finished this project which includes everything that I've learnt so far. Took 2/3 days but got there, honestly I'm really happy that I started it. I haven't included anything such as dictionaries yet (will be studying them next) but tried to include as much of lists and tuples I could. Any feedback would be highly appreciated as always, would love to hear others solutions to certain areas.

Thanks!

101 Upvotes

13 comments sorted by

View all comments

2

u/[deleted] Sep 02 '25

This is nice. I'd have one recommendation that will be something you'll thank me for. In like 10 years, you will think back and say "man that random dude gave some solid advice"

Write tests.

this code is 100% unit testable. Why write tests for something that works? In this case its good practice, in the future its *BECAUSE YOU WILL KNOW IT STILL WORKS*. When someone else is looking through piles of code for a bug, and they know this bit is bulletproof, they'll not have to waste time considering it.

2

u/ilikeraspberries123 Sep 04 '25

Thanks dude, did my research on this and I can 100% agree with you this is very solid advice. I didn't even know this stuff exists, but thank you I'll dive deep into this

2

u/[deleted] Sep 04 '25

Internet hugs dude, and best of luck to you.

I'm not sure what the best way to go about learning how to write effective tests are, but I've always recommended (and bought a copy for everyone i've mentored) the book "Clean Code" to people by Robert Martin. There are a few books I've read in my professional career that just straight up improved me. That was one of them, the other one was a book on SQL that I read like 20 years ago, that one filled in a lot of gaps I had about how databases work.