Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Atahensic423yExactly, I love python for fast small prototypes, but it quickly turns into an unmaintainable hell. Even when it allows explicitly typed input parameter types, wrong input is graciously let in.
-
mr-user13493ySometime I am not even sure what type the function expect.
Please python developer , use type hinting and don't forget to include requirements.txt -
Atahensic423y@mr-user unfortunately, many python developers are not developers, but data scientists, who often don't even know type hinting exists (ehm not even university professors).
-
mr-user13493y@Atahensic
I am sure that even data scientist don't want the program to exit after hours of computation due to type error.
I have run the code at night before and find out the program exit at the morning due to type error. -
crisz81913yAnyway, just to make things worse, it wasn't a wrong type in my case. I had just set shuffle=false so the random seed wasn't required, and it crashed because I had provided it. Something that could've been easily avoided
-
amoux2683yIt is not python; it's the developer’s fault. If your API tries to do everything for the user or when you fail to write error-handling code - these are the type of issues that arise.
They ask me, why do you hate Python? Well, maybe because I prefer fucking warnings and no fucking exit the program after 2 hours of computation if the parameter is unexpected. Fuck off
rant