r/PythonLearning • • Aug 18 '25

Day 2 - made this

Post image

Made this by myself (for the most part, made dumb errors here and there) after following Bro Codes Python guide for a bit.

177 Upvotes

44 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 19 '25

[removed] — view removed comment

1

u/No_Statistician_6654 Aug 19 '25

You are saying devs should not validate user input? That is quite an interesting take. Why do you think basic input sanitation should be avoided, and any raw input accepted?

0

u/[deleted] Aug 19 '25

[removed] — view removed comment

1

u/No_Statistician_6654 Aug 19 '25

And handling different whitespace and capitalization are now considered fringe edge cases to you?

I will warn you that you are treading close to moving goal post, so within the context of a locally ran program, is it totally unrealistic to negate case sensitivity and whitespace issues such that users can enter things slightly differently and have uniform expected results?

I didn’t mention things like ssn validation, date time validation, or any hundreds of other options that would need to be checked in any number of programs. So make your case that trim, and lower are not a reasonable improvement to this program. If not, then say you are wrong.