by bboygravity · 2y ago · 0 comments
I can't think of any worse API in the entire world?
Now you get into the COM/.NET/UWP stuff and the API gets a bit more fuzzy on that pattern. The win32 API is fairly consistent in its madness. So are the other API stacks they have come up with. But only in their own mad world.
Also out of the documentation the older win32 docs are actually usually decently written and self consistent. The newer stuff not so much.
If you have the displeasure of mixing APIs you are in for a rough ride as all of their calling semantics are different.
Especially UWP and its successors (I think it's called WinRT now?) are objectively terrible.
WinAPI is awful to work with for reasons above anyone’s comprehension. It’s just legacy riding on legacy, with initial legacy made by someone 50% following stupid patterns from the previous 8/16 bit decade and 50% high on mushrooms. The first thing you do with WinAPI is abstracting it tf away from your face.
Nothing can beat WinAPI in nicety to work with, just look at this monstrosity:
gtk_window_new(GTK_WINDOW_TOPLEVEL);If the answer is ver++ anxiety, the problem is self-imposed (still better than using winapi).