3 ms·
Ah, COM. It's an extreme case of inventing a technology before the support infrastructure is ready for it, like a car with no refining. In the case of COM and
by pjc50 8y ago
Ah, COM.
It's an extreme case of inventing a technology before the support infrastructure is ready for it, like a car with no refining. In the case of COM and OLE, building an inter-application object system without a viable object oriented programming language to do it in. So developers had to build machinery by hand in C in each COM hosting application.
- mikestew 8y agoBefore going to Microsoft, I had used COM and OLE via VB, FoxPro, and probably a few other higher-level abstractions. Then I went to Microsoft and worked on OLE DB, using C. O...M...G. CreateObject() suddenly turned into (what seemed like) a 1000 lines of almost-boilerplate. That ADO AddRecord() that was so easy in classic VB? Ugh, if only you knew what was behind that. COM was a clever idea to solve a hard problem, but if one had to work under the covers it was some sausage you were definitely better off not knowing the ingredients of. I mean, COM mostly worked and wasn't bad once you got the hang of it, just like pig snout in your sausage isn't bad for you. It's just kind of unappealing at first.
- pjmlp 8y agoThey finally learned with UWP. Microsoft WinDev always seemed a bit strange versus everyone else. Borland had very nice high level frameworks (still do as Codegear but alas), and then DevTools also had them as VB and later .NET. But WinDev had always to make everything low level, and if it wasn't for them we would have had AFX instead of MFC.
- thought_alarm 8y agoBackward compatibility is easier if the OS APIs are as terse and featureless as possible. Higher-level frameworks (VB, .NET, VCL, etc.) can then be distributed independent of OS releases with multiple versions installed simultaneously.
- pjmlp 8y agoThat is orthogonal to actually making OS APIs easier to deal with. Even with plain C there are ways to have higher-level usable frameworks.
- DaiPlusPlus 8y agoWinRT is so very nice - but it's insane how most of its benefits and services are exposed only to UWP applications.
- pjmlp 8y agoUWP is the future, Win32's long term roadmap is to join Win16. In any case, one of the points of April 2018 release and the upcoming Redstone 5 one is that those models are being merged. And yes, the next Office version for Windows 10 is store only and as usual in Office tradition, is the one responsible for many new UI controls (UWP Fluent Design) in the upcoming Redstone 5 version.
- rayiner 8y agoIronically, we've gone backwards from COM/OLE. After all the object/component hype of the 1990s, that's seemed to have completely died out. I recently discovered that not only does Microsoft Edge bundle an incredibly shitty PDF viewer with broken text search (and a broken UI for it), but that it has no component model and can't embed a proper PDF viewer either! This is technology that worked fine for almost two decades!
- DaiPlusPlus 8y agoAnd now you can't even embed Edge into your own applications. Microsoft recently released a new web-view control for desktop programs which actually works by hosting Edge in its own process and blitting the page render back into your application.
- pavlov 8y agoTo be fair, Apple did the same thing on macOS for security reasons with the newer WKWebView.
- pjmlp 8y agoThat is the same approach of Chrome as webview on Android actually. when Google started turning on security knobs. Exposure to Internet and continuous use of unsafe languages has proven that in-process plugins was a very bad idea.
- pjmlp 8y agoNow renamed as UWP.
- Razengan 8y ago> building an inter-application object system without a viable object oriented programming language to do it in. Objective-C + Cocoa and their predecessors on NeXT seem like they were pretty ahead of their time too, except they actually worked well and still often feel more intuitive than Microsoft's labyrinthine APIs (though I'm told MS has been improving in that area lately, usually by pjmlp :) I still get surprised by how modular, extensible and hackable Cocoa/Obj-C is. Check out [0], not the most upstanding example, but something fun nonetheless that I discovered a few days ago. [0] https://jons.website/blog/randomizing-uicolor-with-swizzling/ https://jons.website/blog/randomizing-uicolor-with-swizzling...
- pjmlp 8y agoWell, I am been doing Windows stuff since 3.0. Not that I have been always happy with how MS has been at it. :) Yes, NeXT/OS X was/is the only UNIX that doesn't suck as desktop developer experience. And I had the pleasure to get to know the NeXT Cube, when doing my final assignment, rescuing my supervisors graphics work from NeXT into Windows 95, before the acquisition came to be. However many here don't know Objective-C + Cocoa, as they use it as pretty Linux instead, running Electron apps.