so, I have gone back to review what made me want to learn programming stuff, I'va have learned more in these last 3 years that whatever I could have ever learn in a while, Some day I just woke up saw a windows 8 app development announcement somewhere and it got my attention, at the time I was studying to be a nutritionist, so I was not even aware of what would be ahead of me.
I was lazy and wanted computers do most of my stuff for me, so I had some spreadsheet calculations that I felt they were too boring to fill, so I tried an even more automated solution for that I realized that the only way I would get that was going to be if i started learning on how to develop such things.
I left it there, and continued with my life, few months later I dropped school and wander around thinking what I wanted for my life, I went back to the university but this time on the last minute I changed my decision for an IT career.
At the time, windows 8 came and people were looking at it as complete garbage, I didn't feel it that way, on one of the final projects I delivered that "automated solution" I wanted for you can see the repository here
just a warning you will see a lot of jQuery and a bunch of repeated code that may make you throw up. On my defense hahaha is that I was just learning.
so for work reasons and school reasons also I distanced myself from Windows Apps
Few years later here we are writing this piece.
with phone gap for example then came something that changed the game for many
Electron now days is a pretty much flexible place, you can do amazing suff with it, from USB Boot makers like Etcher or the famous (or infamous) Slack app, Spotify while it is not made with electron I understand that it has been made with Nw.js but in the end it's the same concept, now Electron while praised by many it's HATED (yes with uppercase) for some other people, there are even some clones of Steve Balmer saying that Electron is a Cancer.
Jokes aside, The complaints go for many places, from security to performance, to It's not native. now, the security stuff got so intense recently that for Electron 2.0 Github decided to include Warnings for most of the common security flaws there and whill you be surprised that many of the stuff you usually do doesn't adhere to CSP rules? of course the most common case would be that you use a bundler and the runtime you use is completely fine with CSP
But while many say it's not native you can still call some API's inside electron to do native stuff like notifications
Electron might not be the holy grail, because it isn't but one of the most important things about it (if not the most important) is that you can Crosscompile to Windows, MacOS, and Linux, This right here is the most important thing for me and the sole reason I believe it became so popular, share code between different operating systems
The universal windows platform is a cool concept in theory, having apps that behave well in different platforms and sharing most of the code at basically close to no cost (there might be some cases where it's not that good I guess), Phones, Tablets, Desktops, Hololens, Surface Hub, Xbox,IOT, You name it wherever microsoft is, you should be able to deploy an application from the store once you have built it.
It's basically one thing
- Lack of Non Microsoft Showcases Microsoft had put templates for Windows 8 and Windows 8.1 Apps that showcased WinJS to give the apps that "Native" look of their C# counterparts had, even WinJS team created shims and libraries to interoperate with AngularJS and React, but most of the marketed stuff was Microsoft only. So why would you know that you can use Vue, React (alone), Knockout, Ember, Aurelia, and other web frameworks if the only stuff you see in adds is Windows only?
so take aways
- No one wants to target a dead platform
- While Microsoft stuff is cool, everyone else wants to do their way, not Microsoft's
- Not many people, that's why jQuery became less and less popular over the days
- you shouldn't need a library specifically to do stuff, It should come on the environment (It was on the environment but there were not much public awareness)
Electron is Cross OS so, that a major take away for most of people and even it is one for me also.
I do love both solutions I am not here to bash anyone this is just my opinion and my recapitulation of how I felt it happened these last years.
So with all of this information I just gave you out of nowhere but my experience over the last years what do you think? why people choose electron over UWP?
if you made Electron apps Why Didn't you chose UWP?
Share your thoughts with me!