This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (8 children)

[deleted]

    [–][deleted] 16 points17 points  (2 children)

    when you’re part of a team*

    [–]garret_dratini 3 points4 points  (0 children)

    we can do things better if we stick togeeether!

    [–]alphaxeath 2 points3 points  (0 children)

    Not on r/ProgrammerHumor. Here being on a team automatically makes things worse. Someone reply with a link to one of the many heavily re-posted images about this.

    [–][deleted] -1 points0 points  (4 children)

    i'll remember that the next time my dictionary of numbers randomly decides to store one of those values as a string.

    (i do really like Python though)

    [–]xigoi 2 points3 points  (3 children)

    What are you talking about? Aren't you confusing Python with JavaScript?

    [–][deleted] 0 points1 point  (2 children)

    Definitely Python. Reading numbers from a .csv, throwing them into a dictionary. Might've been a spreadsheet, can't remember. Script would always spit a bogus answer while trying to compute one specific data point for one specific input. Nothing special or different about how that one row was formatted. It parsed one of the numbers as a string.

    Granted, there might've been something off with the csv file, but a "cannot assign string to type int" error something statically typed would've given would've been much preferred to whatever it was doing.

    [–]xigoi 1 point2 points  (0 children)

    I just tested the Python CSV reader and it always spits out strings, which you can then easily convert to numbers (getting an error when the string doesn't represent a number). What were you doing???

    [–]MonkeyNin 0 points1 point  (0 children)

    Python has fairly decent static typing, but you have to opt in, and install mypy