9
crisz
3y

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

Comments
  • 6
    Exactly, 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.
  • 1
    Sometime I am not even sure what type the function expect.

    Please python developer , use type hinting and don't forget to include requirements.txt
  • 3
    @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).
  • 0
    @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.
  • 1
    Anyway, 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
  • 0
    welcome to the world of no strong typing :P

    although you can.
  • 0
    It 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.
Add Comment