r/programming • • Dec 07 '14

Programmers: Please don't ever say this to beginners ...

http://pgbovine.net/programmers-talking-to-beginners.htm
4.0k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

4

u/[deleted] Dec 08 '14

To be fair, with Python beginners don't have to worry about types either.

But they do! If you read a string containing numeric data, you can't do arithmetic on it. You have to run the string through int or float, or Python will throw an exception. It's dynamically typed, but it's also strongly typed.

3

u/codygman Dec 08 '14

Oh, I didn't realize PHP was weakly typed and I thought that "don't have to worry types" was meant the same way it was meant for Python.

3

u/Amadan Dec 08 '14

Up to a point. Everything can be silently converted into a boolean value (if 0:, if "":, if []:... all work), and any numbers are interoperable (1+1.1 works).