Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Types have never given me a headache. They've only prevented me from writing bugs and made classes of tests redundant.

In your example, the database and the application layer must be kept in sync regardless of whether you use static typing or not. The benefit of static typing is that it can be enforced before you push to production or write a test for congruency.



> kept in sync regardless of whether you use static typing or not

This is handled automatically by a large number of ORM tools in dynamic languages (Ruby, PHP, etc). It's a non-issue.

I've spent significantly more time in my career debugging issues in statically typed languages used as an app server in front of a database than I have in dynamically typed languages.

You're doing some processing work in the language? Calculations, ML, etc? Static typing is the obvious way to go.

If you're just sticking things in a database you're going to end up wasting a lot of people's time (and subsequently, the money that goes to pay them). In 20 years, I've never seen it be a good choice but I've seen a lot of people married to the delusion that it is while other people are getting real work done.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: