Abstraction is clearly fundamental to computer science. It is also *really hard* to do well, and is frequently done poorly. I honestly don't think I am smart enough to use many C++ abstractions well, so I stick with more C-style code.
-
-
Vastauksena käyttäjälle @JJcoolkl
It's an interesting separation you make, because C tends to abstract functionality whereas C++ also often abstracts structure. My issue with abstracting structure is it removes knowledge of things I want to reason about.
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Structure meaning both of the instructions and of the memory. Deque could be implemented as array or a linked list. Ctors/dtors hide behavior I did not explicitly invoke. Don't get me started on co_yield and generators.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @tloch14
Part of the design of C++ is that you don't have to use those things, though. You are supposed to be able to 'open the hood' and take control back where necessary. It is arguable how well this works.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
The issue is when a useful 3rd party library opts into those abstractions and forces you along with it.
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.