4 ms·
The solution to this is to have two examples: Beginner and Practical/Advanced
by lucasyvas 4y ago
The solution to this is to have two examples: Beginner and Practical/Advanced
- andrepd 4y agoI think the point is that even for beginners these examples are dumb. If you want to explain OOP and inheritance you can use simple but realistic examples, like `class Shape { fn draw() }`, `class Rectangle extends Shape`, `class Circle extends Shape`, rather than `class Dog extends Animal` or some dumb stuff like that.
- lucasyvas 4y agoBingo
- insanitybit 4y agoAt only twice the cost! A bargain.
- cercatrova 4y agoMaybe we should be able to parametrize over difficulty :P
- Rusky 4y agoThe post you're complaining about starts with "because everyone likes to use that LendingIterator example I would offer a bit non-trivial example." It sounds like they are already doing that.