Hacker News new | ask | show | jobs
by myrmidon 99 days ago
Maybe, but I'd argue that this is a matter of taste, and what does it actually do for you?

In practice: Is it worth wrapping all your vendor-provided hardware abstraction in classes that you write yourself? Designing something like that to be "complete" (i.e. allow full access to all hardware functionality like IRQ/DMA setup) and to still stay hardware-independent is often borderline impossible anyway, and any attempt is invariably going to make your codebase more difficult to understand.