Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WPF - Is it as dying as it looks to be?
Message
General information
Forum:
C#
Category:
Other
Miscellaneous
Thread ID:
01659772
Message ID:
01660183
Views:
71
UI for electron is an Issue IMHO. Frameworks exists sure, but they are usually Web frameworks not optimized for desktop usage. Again if you are going down the Electron route you should very strongly consider whether you should build your application as an online Web Application in the first place. Because essentially that's what you're doing except that you do get local features via Node.

If you look at all the top level Electron applications out there you'll find that each and every one uses a custom UI, and not some generic UI framework. If you want to build an app that integrates nicely into Windows for example, Electron will never look like a modern Windows application (well never say never). Again it depends on what you're after. Building truly polished HTML applications is rather difficult IMHO, but creating polished desktop applications is generally a lot easier because you have sophisticated standard frameworks that provide the appropriate OS abstractions.


+++ Rick ---


>>To make things even more complicated Electron (Chrome and Node based local Web application) lets you build >HTML based applications that can access client side resources. Electron is a decent choice if you're familiar >with Web technology, but you basically are responsible for the entirety of your UI and framework. There's no >real UI framework and you have to fall back to using something like Bootstrap or Material design etc. for >providing you the base UI features which tend to be un-desktop like. I've started Electron projects on a few >occasions and abandoned them because it was just too much work to deal with the UI. On the upside Electron >apps can be cross-platform although to do that right and deal with OS specific features can be a huge time sink >as well.
>
>I did not have issues with the UI side that was easy and worked out very well due to the fact there are so many UI controls available (most are free). And of course the use of Node allowed direct access to the desktop, servers, printing, etc.. And as far as OS specific features - I just used node to handle all of it. My issue was security. I soon discovered that it was very easy to have javascript injection. That said, recently the Electron folks has issued updates that may have solved the issue - at least they claim they have it fixed.
>
>My concern about javascript injection was real due to the fact that I did NOT use a restful API to access data. I realized very quickly that I did not need to use a restful API when I had a direct connection in node. So being the lazy programmer I said why not use direct SQL. That decision was not the best as it opened the door to hackers (not sql injection but javascript injection). It was very easy to inject a javacript function to allow access to the data. Don't mis-understand I still was able to deploy - it's just that I have concerns.
>
>If by chance you are not aware of javascript injection just google it.
>
>Johnf
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform