News for hackers. Stuff that matters.
Re:Building a desktop application with Electron by sktrdie on Monday August 10, 2015 @08:02PM (#10038310)
The problem with this is that users have to download a binary of over 40mb just to run a "hello world" app. The whole thing has to embed all of node.js plus all of a browser. I miss the days where to download a crazy complicated app required only 200kb - like uTorrent for example. I know space and bandwidth have gotten cheaper, but there's something about creating an app that only carries the bare essentials that calls for quality.
Re:Building a desktop application with Electron by mcphage on Wednesday August 12, 2015 @09:54PM (#10051905)
> The problem with this is that users have to download a binary of over 40mb just to run a "hello world" app.

Sure, but the overhead is pretty fixed. So yes, if all your app does is say "hello world", then the overhead ends up being 99% of the app. But maybe you shouldn't be making an app for that in the first place? If your application actually does something, and has code, and text, and images, and audio, then the overhead is negligible.

Re:Building a desktop application with Electron by aikah on Monday August 10, 2015 @11:14PM (#10038912)
The problem is more about using webtechs for the UI than the size of the binary. There is a reason why people aren't massively moving from text editors such as Sublime Text to Webtech based editors like atom : performances. But everything is cyclical, we are just still in the "you can do everything with html and js" era. Go,Nim,Rust,Crystal and others are on their way in. They are statically typed, multithreaded, easier than C and C++ , compiled and can be linked to Gtk,Qt and other multiplateform UI toolkits. Javascript everywhere even where it doesn't make sense is on its way out.
Re:Building a desktop application with Electron by big_paps on Tuesday August 11, 2015 @06:03AM (#10039979)
The reason for all this, despite the "man, js is terrible / slow" argument, is just that there are a lot of web-developers out there, with a big bag of tools, frameworks and "to-js"-compilers, wanting to create something, but just don't have the time to learn a complete new cross-plattform infrastructure, which JUST DOESNT REALLY EXISTS. You have to ponder if its just worth the efforts to build something native or go fast(in terms of development-time) and cross-plattform with sometimes reasonable trade-offs.

If there will be a "mostly unified" UI-Framework for android,ios,win10-mobile,windows, osx and linux for any compiled language, i will be the first to jump onto that waggon...

Re:Building a desktop application with Electron by touristtam on Tuesday August 11, 2015 @09:20AM (#10040780)
There has got to be a middle ground where the backend of such application is build on something that is faster and safer while the front end adopts the web languages (HTML/CSS/JS). Specially for application that are not graphically intensive by default.
Re:Building a desktop application with Electron by CmonDev on Tuesday August 11, 2015 @04:10AM (#10039649)
Win developers could just stick with C#, F# and XAML and see the whole mad circus pass by :).
Re:Building a desktop application with Electron by sarciszewski on Monday August 10, 2015 @03:50PM (#10036834)
This is a good introduction. I recently started playing with Electron after being frustrated with trying to get NW.js to install gracefully (without having to edit a binary first).

I'm currently working with node-sodium on a simple E2E encrypted chat app in Electron (for fun only! I'm not reinventing Cryptocat).

Re:Building a desktop application with Electron by bojzi on Thursday August 13, 2015 @11:19AM (#10054843)
Yeah, that's what put me off of NW.js too. The prebuilt Electron binaries, electron-packager and electron-builder are too good to pass up. That also sounds like a sweet project to learn the ins and outs of Node because you can hack away at a chat app for weeks adding cool features.
Re:Building a desktop application with Electron by thom_nic on Monday August 10, 2015 @08:43PM (#10038441)
I made a simple demo/ starter app in Electron right around the time when the project was renamed from Atom-Shell. https://github.com/thom-nic/electron-demo/

I'm sure documentation has improved since then but at the time it was very inconsistent. Also props to the author of this article for doing a clever app that doesn't look like it's a page in a browser window - I wasn't that clever ;)

Re:Building a desktop application with Electron by bojzi on Thursday August 13, 2015 @11:14AM (#10054810)
That looks pretty cool and I love that there's a ready made gulp file for most of the common tasks. :)
Re:Building a desktop application with Electron by pbreit on Monday August 10, 2015 @06:27PM (#10037863)
Still seems like there should be an approach like this to build mobile and desktop? TideKit (split off from Appcelerator Titanium) was giving it a shot but I think might have dissolved.
Re:Building a desktop application with Electron by bojzi on Friday August 14, 2015 @06:57AM (#10059471)
One interesting aspect of developing for different platforms came from Facebook's React Team (https://code.facebook.com/posts/1014532261909640/react-nativ...):

"It's worth noting that we're not chasing “write once, run anywhere.” Different platforms have different looks, feels, and capabilities, and as such, we should still be developing discrete apps for each platform, but the same set of engineers should be able to build applications for whatever platform they choose, without needing to learn a fundamentally different set of technologies for each. We call this approach “learn once, write anywhere.”"

Re:Building a desktop application with Electron by yesimahuman on Monday August 10, 2015 @09:10PM (#10038543)
We are doing some larger scale desktop stuff with Ionic right now, and someone from the community wrote about doing something similar: http://www.raymondcamden.com/2015/07/23/some-initial-thought...

It's interesting. Not sure where we'll take it, but I love the idea of one code base running everywhere, including desktop.

Re:Building a desktop application with Electron by pbreit on Monday August 10, 2015 @11:17PM (#10038918)
The "one" code base is sorta interesting but I really like the one, relatively easy programming model.
Re:Building a desktop application with Electron by anoldgangstah on Monday August 10, 2015 @10:56PM (#10038864)
great great turotial, Coming from php I've learned a lot in minutes.
Re:Building a desktop application with Electron by knocte on Monday August 10, 2015 @09:17PM (#10038562)
facepalm