News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by cies on Wednesday February 05, 2025 @07:46AM (#42947740)
I think the size of the code base also matters: bigger size = having types is more important.

There is a contradiction here as: bigger size = compile speed more important AND types slow down compilation. More advanced typing features slow down compilation even more.

Re:Software development topics I've changed my mind on after... by pjc50 on Wednesday February 05, 2025 @07:58AM (#42947863)
> More advanced typing features slow down compilation even more.

C++ is a bit of an outlier here. But really people should think of typechecking as shifting fault detection earlier in the process than runtime. It doesn't matter if your test suite starts slightly quicker if you have to wait for the whole thing to run to find something you could otherwise have found with types.

Re:Software development topics I've changed my mind on after... by cies on Wednesday February 05, 2025 @08:07AM (#42947953)
I agree. But the nice thing about types is that they are not an afterthought, but more a "pre thought". TDD tries to make testing a pre thought...