News for hackers. Stuff that matters.
Re:Rob Pike's 5 Rules of Programming by imtringued on Thursday March 19, 2026 @07:01AM (#47437406)
In languages without generics, like C, people tend to build a custom list type that only holds their particular type. This leads to a proliferation of list types each with sparse feature support.

It is better to have one collection type and use it everywhere directly.

Some Java developers had a tendency to encapsulate collections in <Type>Manager classes that grant limited operations/access to the list type. In practice this doesn't really buy you anything and you could have had a regular List<Type> instead.

There are no comments on this comment yet.