Comments by "justanothercomment" (@justanothercomment416) on "You dont know OOP" video.

  1. 8
  2. 3
  3. 3
  4. 3
  5. 3
  6. 3
  7. 2
  8. 2
  9. 2
  10. 2
  11. 2
  12. 2
  13. 1
  14. 1
  15. 1
  16.  @kobi665  I don't have a take on that. Am willing to agree. If they are not teaching the fundamentals of abstraction, interfaces, inheritance, composition, and the associated low level implications of each choice, then most anything which follows is taught to early. Both have advantages and disadvantages. The primary push for composition is specifically for performance for cache/memory locality. There certainly is something to be said for that. This push primarily originates from game programming. But it's found to have advantages anywhere large numbers of objects in memory is a requirement. Which potentially brings in "records." Likewise, there are some other advantages, yet the primary push did originate for games for performance. There's a time and place for both approaches. Yet premature optimization remains the root of all evil. Which means when people pick composition over inheritance simply because of a potentially imagined performance benefit, they are still juggling with folly. The truth is, most people understand the abstractions provided on inheritance better than other models. It's more or less how we are taught to relate to the world around us. That, however, doesn't mean abstractions can't be poor, too complex, too abstract, or just plain dumb. That's before the implementation even occurs. IMOHO, this is one of the greatest issues with languages like C# and especially Java, in that their libraries are frequently designed by committee, resulting in sheer idiocy of interface and abstraction. They are burdens rather than solutions. Sadly, far too many fight "best tool" logic, which includes best design and best abstraction. If your favorite tool is a hammer we always try to see the world through nails. Nothing wrong with nails. In many cases nails are excellent. But some jobs require screws. In many cases, screws are superior to nails. In some cases nails are required. Side note, nails and screws provide different failure modes and as such have specific requirements for use to avoid structural catastrophe. Our jobs is to understand nails, screws, and many other fasteners. And then apply them appropriately. /soapbox
    1
  17. 1
  18. 1
  19. 1
  20. 1
  21. 1
  22. 1
  23. 1