News for hackers. Stuff that matters.
Re:38% of bugs at Airbnb could have been prevented by using ... by chousuke on Monday February 11, 2019 @03:05PM (#19137747)
Or you could just not. I mean, you could just write out your code as if you already had the types specified and then fill in the boilerplate and fix errors afterwards. That's essentially what happens with dynamic typing anyway, so the only major difference is that your IDE/editor might notice.
Re:38% of bugs at Airbnb could have been prevented by using ... by victorNicollet on Monday February 11, 2019 @03:41PM (#19138095)
In a statically typed language, the code will not run until I have convinced the compiler that it should. If I wanted to explore the behaviour of `frobnicate` before committing to a design, I would still have to define all those satellite types that may well become unnecessary.
Re:38% of bugs at Airbnb could have been prevented by using ... by seanwilson on Monday February 11, 2019 @07:07PM (#19139789)
TypeScript lets you add the "any" type to say you don't care now. Solved?
Re:38% of bugs at Airbnb could have been prevented by using ... by victorNicollet on Tuesday February 12, 2019 @03:22AM (#19141927)
I mentioned Typescript as an example of language where I could do this, so... Yes?

Typescript is not a language I would say has a verbose type system.