by Klonoar · 7y ago · 0 comments
There is so much buried, incomplete or otherwise missing documentation on Apple's side, and every time anyone complains about Electron and wonders why nobody wants to build native apps anymore... this is a huge factor why. Meanwhile, any Cocoa devs on Twitter scoff at this stuff being difficult to find and learn.
It goes deeper than this, too - there's a litany of Apple dev forum threads that Google has half-spidered and are behind a login screen. Or the fact that some of the release notes for point releases of macOS will have crucial details that you'd otherwise miss - just a few months ago I learned that watching the mouse in a specific way can completely disable smooth scrolling.
I dislike Marzipan, personally, but I wouldn't be surprised if a huge motivating factor for the project is the fact that parts of AppKit require wizardry on a dwindling level. I've had developers from Apple lament this to me in person, too, and nobody ever seems to have a clear reason why it's such a clusterf...
What I hate most about electron is the never ending pointless churn in quest for "modern".
Breaking changes like this that provide no real value is standard modus operandi: https://github.com/electron/electron/pull/16570
Something as simple and fundamental for desktop applications, Instance Management, changes every release or so, and is primitive at best (a simple mutex and event, with no way to pass metadata other than the instance flags).
The portable builds are half-ass too, can't build a separate 64bit and 32bit version for windows without building twice and cleaning up.
Many many other issues like that, it is a case of torture by a thousand cuts and forever trying to keep resource consumption under control.
Electron sounds good in theory, but in practice it barely scratches "good-enough".
How you build things in Electron is akin to the web rendering API, which has ~20 years of backwards compatible guides and documentation. There is, full stop, not a single thing out there that is as well documented as HTML/CSS/JS.
(Edited to note that parent comment significantly edited since my reply. I'm not debating in this format.)
Not that I don't think it's useful, it just (in practice) ends up with edge cases per-browser that I'd rather find out upfront.
Edit: The above probably sounded more harsh than intended, haha... don't take it as derision please. Just noting my thoughts on specs.
Or rather, how it is supposed to work, but good luck with anything non-trivial. Though the state of things is much better recently than it used to be, but still a long way between implementations and spec.
...however, when it first got added to iOS, Apple notably had crappy documentation for it, and the performance was abysmal so it had uptake issues where people would still resort to manually judging frames.
Moreover, it doesn't matter. CSS is a juggernaut and it's not going away anytime soon.
Forever be damned the heretics at asciiwwdc.com!
I often experience this too. Haven’t tried it yet, but I wonder if you could access the content by changing your user agent to one of googlebots.
https://en.wikipedia.org/wiki/Cartesian_coordinate_system
It is also the coordinate system of the graphics model(s) underlying all this: Postscript, PDF and CoreGraphics.
As UIKit shows, it is fairly easy to transform the coordinate system if you want a different one.
Anyone who did middle school math knows it's Cartesian. ;P
https://github.com/microsoft/microsoft-ui-xaml/blob/master/d...
QT comes close, but it ain't free. WinForms also comes close, but its old and whiny kids think its ugly. GTK comes close, but you can't use your web people to program it...
Responsiveness is extremely hard, and modern web and Electron have mostly got it working pretty well. This does come at a cost of complexity and CPU. To me there's probably more mileage in trying to resource-constrain Electron than build yet another new system and wait for its adoption.
Windows key -> Gear icon -> Network & Internet -> "Ethernet" -> "Change adapter options"
Now I'm in the legacy "Network Connections" explorer window, and I double-click my adapter to open the legacy Status panel, where I click "Properties". Then select TCP/IPv4 and click "Properties" again, and finally there's a panel to actually switch it and enter network details.
Yup, this seems par for the course.
Desktop UI has to be willing to compete on Electron's merits, that's the game now. It will die otherwise.
That's a pretty low bar. None amazing desktop UI I've seen has been non-native.