Comment

Comment by lordlic

There is no "standard library function" for inverting a binary tree. That's not a thing that exists, probably anywhere in any standard library for any language, and even if it did you should still know how to write it yourself.

Also the article you linked doesn't argue that you shouldn't know how to write a linked list, it argues that you should implement ADT operations in functions instead of trying to wing it with ad-hoc logic all over the place. Blizzard's developers were definitely smart enough implement a doubly-linked list one time, they were just fallible humans who got tripped up consistently implementing the same logic in a hundred different places.

parent lordlic 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton