News for hackers. Stuff that matters.
Re:That's Not an Abstraction, That's Just a Layer of Indirec... by 0x696C6961 on Saturday December 28, 2024 @07:43AM (#42530666)
The rule of three should obviously not be applied to well known data structures and algorithms ...
Re:That's Not an Abstraction, That's Just a Layer of Indirec... by II2II on Saturday December 28, 2024 @08:56AM (#42531070)
Well known data structures and algorithms are well know because they have been used more than three times. That said: if you are dealing with a situation where you have to implement them yourself, you may want to consider whether the rule of three applies. (Clearly this depends upon the situation.)
Re:That's Not an Abstraction, That's Just a Layer of Indirec... by bluGill on Saturday December 28, 2024 @09:39AM (#42531313)
If the well known data structures and algorithms are not provide by your language get a better language.

There are exceptions. If you are implementing the language it is your job to write them. It is useful as a student to implement the basics from scratch. Your language may decide something is not allowed and thus not implement it (a doubly linked list is almost always a bad idea in the real world. Likewise you don't need to provide all the sorting algorithms)