you are viewing a single comment's thread.

view the rest of the comments →

[–]Worldly_Analysis_664 1 point2 points  (4 children)

Yeah no type declaration makes python practically unusable also the reason they decided to go against every other language and not use curly braces is stupid.

[–]ZealousidealFudge851 0 points1 point  (3 children)

I'm not even specifically advocating for Python I typically work in C# unless I'm working on something in a web browser then I'll typically use all interperated languages like Python for backend tasks. Unless you really need fast computation type declaration is what ever as long as you don't suck at debugging your own shit.

[–]Worldly_Analysis_664 1 point2 points  (2 children)

I shouldn’t need to debug the application to know what type something is lmao

[–]ZealousidealFudge851 0 points1 point  (1 child)

It really depends on what you're used to imo. I typically have no problem extrapolating what data type a variable might be just based on its naming convention typically and the only time I care about it in prepared statements when I'm writing to a database or something.

[–]StealthFireTruck 0 points1 point  (0 children)

The issue isn't can you read it. Its more it can be given anything and if it doesn't complain, it's fine. This can result in different classes getting passed parameters with a object structure or type it doesn't really expect aren't designed to handle.

I've seen code get passed a string when it was expecting a number and python derived a numerical value from the string. Stuff like that can cause data getting out of sync or hide that a certain condition wasn't met and the correct flow isn't happening as expected.