Designing software APIs in a logical fashion is hard. Microsoft's newest APIs fo...

@tml@mementomori.social

Designing software APIs in a logical fashion is hard.

Microsoft's newest APIs for Windows programming in C++ has things called:

1) winrt::Windows::...
2) winrt::Microsoft::...
3) winrt::Microsoft::Windows::...

I guess there is some deep logic behind this, but I don't know what it is. I doubt the thinking is that case 1 is for Windowses in general, not just Microsoft's (haha). Case 2 could theoretically be things that are not only for Windows, but also Xbox and whatever. But I assume what things ended up in what namespace is just a result of random evolution.