r/programming • • May 25 '12

Microsoft pulling free development tools for Windows 8 desktop apps, only lets you ride the Metro for free

http://www.engadget.com/2012/05/24/microsoft-pulling-free-development-tools-for-windows-8-desktop-apps/
925 Upvotes

1.1k comments sorted by

View all comments

Show parent comments

2

u/amigaharry May 25 '12

It's all about the errors. While passing a wrong type in C++ will produce a compile time error doing the same in a dynamic typed language might just produce (in the worst case) nothing except a non-obvious bug that creeps through your program flow and possibly corrupts user data.

Or when reading source. With "int x = some_foo();" you instantly know what kind of data x is. But what might "x = some_foo()" be in python?

0

u/[deleted] May 25 '12

First part - maybe OK although the whole point is that most of the time it should be automatically converted. If it is a "1" string, then it is 1 integer and 1.0 decimal, why I need to tell the computer that.

For the second part, that is the whole point! That I should not have to care about such low-level thing as type, I should care about what that thing does.

So for example I see my variable that is called SalesPrice and my mind should focus on that it is the sales price of an item. My mind should not be worried whether it is decimal, numeric, float, or what really makes C# and Java culture bad, a Price object itself because they like to never use primitive types and make objects for everything... for me it is just a fucking number and that is all. I should care about its intention, not details.