4 ms·
It serves a very important point: showing that mediocrity will not be silently tolerated. I understand that productivity is important and a significant number
by blub 10y ago
It serves a very important point: showing that mediocrity will not be silently tolerated.
I understand that productivity is important and a significant number of web developers can't seem to learn anything else except JavaScript or worse, don't want to, but such things as professional pride, craftsmanship and excellence do exist and are very appreciated.
Those things represent the opposite of building software applications in JavaScript. I don't know why others criticize such apps, but that's why I do it: they are normalizing flawed software and a lousy experience and mixing it with extreme arrogance.
I've had this deep disagreement with various people ever since web apps were invented. The best of the best of these apps sucked then and they still suck now and are a waste of everybody's time.
- pcwalton 10y agoCome on. There are lots of JS developers who care a lot about "professional pride, craftsmanship and excellence".
- blub 10y agoBuilding desktop (or mobile) apps in JS is not compatible with craftsmanship, nor is it compatible with excellence. To those that truly care about excellence and don't merely pay lip service to it, there is only one way of building: using that platform's native toolkit. For project or ideological reasons one can make a compromise and use something like Qt, Xamarin or wxWidgets, etc. This leaves JS native-like apps for those that care about doing things fast by only using the knowledge they already have. That would perhaps be understandable, if they admitted that it's a big quality and performance compromise. Yes, we tried our best, but this is the only thing we could do with this budget/team/whatever. Totally fine. Instead we get uppity devs claiming that desktop apps will be killed and bragging about how they're delivering the best experiences. It's this toxic cocktail of arrogance and lack of ability that is intolerable.
- pcwalton 10y ago> To those that truly care about excellence and don't merely pay lip service to it, there is only one way of building: using that platform's native toolkit. Since you are clearly an expert here, can you explain to me how an immediate-mode API from the 1980s in which all painting is done via the painter's algorithm and context switches to kernel mode on every operation is superior to a declarative model that allows for global optimizations to minimize state changes and batch draw, in addition to using hardware Z-buffers to minimize overdraw?
- mixedCase 10y agoAren't you the guy behind this https://github.com/pcwalton/libui-rs https://github.com/pcwalton/libui-rs ? Kind of strange to write bindings to something you hate so much. Or was it a changed of mind in the last 11 months? With that said, I do agree with you, but there's not a single solution out there that does this efficiently, a browser is a ginormous level of indirection after all. But if you want to spearhead such a thing I'm sure as hell interested.
- pcwalton 10y agoYeah, I wrote those bindings, though they're incomplete, and libui's memory management is so broken that I lost interest in finishing them. It's a fair point, however. :) Much of my interest in libui was (a) to provide platform support for the browser engine; (b) to provide a solution for simple projects that don't want large dependencies. I've always believed the native UI frameworks from the '90s to be poor fits for modern graphics hardware. But sometimes your workload is so simple you don't care about whether your UI is as fast as possible, and minimizing dependencies is a more important criterion. That's where simple native UI layers can be a good fit.
- mixedCase 10y ago> I've always believed the native UI frameworks from the '90s to be poor fits for modern graphics hardware. Is there anything out there taking a better approach that works for native desktop? React Native and Flutter look like interesting solutions, but RN attempts to do all the hard work with JS, which is far from ideal; and Flutter is limited to Dart (which not that much better) and isn't getting any traction on desktop outside of the experimental Fuchsia.
- derefr 10y ago> This leaves JS native-like apps for those that care about doing things fast by only using the knowledge they already have. What about the devs who care about shipping a lockstep-feature-parity multiplatform app, and are willing to go through whatever hassles it takes to get "write once, run [with platform-conformant controls + behaviors] anywhere"? Because that—and not "doing things fast" or "only using the knowledge they already have"—is the argument I hear for developing Electron apps. What would you suggest for those developers? Just give up on their desires and do 10x as much work (likely meaning being 10x as many people) to ship for every platform, like Facebook? Or go through months/years of initial effort to develop a cross-platform UI toolkit abstraction to build their app upon, like the browser chrome of Firefox and Chrome is targeted at? Use something like Java's Swing, and pretend that's better just because "at least it's not Javascript"? Ship a GTK or QT app that doesn't look/work natively on half your platforms?
- pseudalopex 10y agoWhen I've worked on multi-platform apps, the case for "write once, run anywhere" has always boiled down to developer hours and current knowledge. Sometimes someone suggests that a single GUI will mean less code and fewer bugs, but the ones with cross-platform GUI experience know that's optimistic. "10x as much work" is a huge overstatement, especially when platform conformance is a goal. For native look and feel, I'd pick Qt over Electron any day. The catch is that no toolkit can abstract away all the platform-specific details. A minimum-effort Electron app looks like a web page; a minimum-effort Qt app falls into the uncanny valley. There can be good reasons to choose Electron! But it also has drawbacks, and it isn't the only option.
- city41 10y agoIn today's world of text editors, I'd take VS Code over anything. Anything at all. This notion that webapps must be bad is ludicrous.