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

> This is wrong; tests and type systems have different purposes.

For decades, companies have prospered without a strong type system and using tests for type assurance ad hoc. Usually when it's worrisome or has been problematic. You can say it's wrong (conceptually, theoretically, etc) and yet it people continue to do it. That's interesting to think about.



don't think it matters since the upthread discussion is more about understanding and refactoring code, not ensuring correctness.


Tests are a great way of explaining how a system works. Arguably better than types in some instances.

In any case I would refrain from using absolutes like "wrong" for something that clearly works for some people in certain circumstances.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: