4 ms·
Why do you speak English when you could be speaking French? Because it's what you know, and lucky for you it's everywhere and you don't need to learn French. I
by roryisok 8y ago
Why do you speak English when you could be speaking French? Because it's what you know, and lucky for you it's everywhere and you don't need to learn French.
I'm making some assumptions about you as a person but you take my point I hope. People use JavaScript over other languages because they already know it and, hey, look, you can use it anywhere. Sure, it might be more efficient to go and learn python or C++ or assembly or whatever but most people are happier to leverage the skills they already have than go and learn a new language for one app.
I'm a JavaScript coder by profession and in my extremely limited spare time I want to build things, and if i use JavaScript it maximizes my time.
- crooked-v 8y agoAlso, "you can use it anywhere" really does apply to Javascript in a way that it doesn't to other languages (at least, not until there's full WASM<->DOM integration and a good set of compilers that uses that).
- Rjevski 8y agoBut don’t you believe in using the right tool for the job? JavaScript is barely acceptable on the web, but again it’s a necessary evil as you can’t easily use anything else. But why use an inadequate tool on the desktop? The perceived time you save upfront would backfire later on. Now I’m not saying go and spend a year learning another language just to make a side project (by all means use JS or whatever you’re familiar with), but if you’re making a production-grade app, PLEASE use the right tool for the job and it ain’t JS. I, for one, am sick of JS & Electron contaminating apps I use daily like Spotify, Slack, Signal, Telegram, etc. I wouldn’t mind it too much if this was a niche thing and there were alternatives, but there aren’t. JS on the desktop should die.
- aaron-lebo 8y agoI don't really think JS is bad. I actually prefer it to most languages. It's fast, concise, flexible, and has lots of modern features. It has some weak spots, but all languages do. When people are so ideological about the language it tells me they either haven't used it much or they are unrealistic about flaws in other languages.
- Rjevski 8y ago> haven't used it much I actually used it, and hated it quite a bit (although ES6 solves most of my gripes with it). I understand and appreciate the necessity of JS on the web. JS is also the perfect tool for that job as it’s been designed with the web & browsers in mind, closely tied to HTML & CSS, and while it has overheads those are a necessary evil in an environment where it’s commonplace to execute untrusted code. But it’s however completely inadequate for the desktop. Your users already trust you since they run your binary Electron wrapper, so the “untrusted code” argument goes out the window. You’re basically taking on an extreme overhead (in terms of battery life and RAM usage) for no benefit at all. HTML/CSS is not that great either, IMO native elements provided by the OS deliver a much better UX and actually behave consistently across the entire OS.
- roryisok 8y agoThe right tool for the job is very opinionated. Clearly an awful lot of desktop devs think js is the right tool for the job because electron is everywhere and projects like this very one we're commenting on exist. My opinionated view on "the right tool" comes down to the distinction between foreground and background apps. I do think electron is not the right tool for the job when it comes to Spotify, because Spotify is something that mostly runs in the background and should be super performant. On the other hand I use vscode all day every day, and I'm happy for it to use as much ram and cpu as it does because its always in the foreground - it's the main thing I'm using when I use it Edit: I should add I think we need to find more comparisons to continue this electron debate though. Vscode is always the hero and slack and Spotify are always the villain
- akavel 8y agoI'm there with you being sick of Electron apps on the desktop. The problem is, compared to the JS ecosystem, GUI apps development on desktop with any native technology I know is super bloated, slow and crappy. While I've just started trying to use Elm recently, and the speed of iteration when using it totally amazed me, so that now I cannot longer say that I don't understand why people do that. As much as it pains me.
- jgresty 8y agoI couldn't agree more. Ever since switching from Slack to wee-slack I have never run out of memory on my laptop, which used to be a problem every once in a while when running so many instances of electron. Also Telegram (at least the Linux desktop client) is not electron, it is QT. Maybe some problems that people link exclusively to electron are not limited to just that platform.
- giancarlostoro 8y agoExactly. People mock me for using Python and MongoDB at hackathons but I have won my first Hackathon cause I spent my time getting code done and not thinking too hard about it.
- roryisok 8y agoExactly. What did you win with out of interest?
- giancarlostoro 8y agoI participated in this years TADHack Mini in Orlando: http://blog.tadhack.com/2018/03/12/tadhack-mini-orlando-2018-winners/ http://blog.tadhack.com/2018/03/12/tadhack-mini-orlando-2018... It was a lot of fun and the first time we ever worked with any Telecoms / VoIP companies. Also planning on competing on TADHack Global this time joining forces with another team. Didn't win much since others won as well, apparently you could use all the vendors, we only used one. TADHAck Global is this year in October for anyone interested: https://tadhack.com/2018/global/ https://tadhack.com/2018/global/
- zerr 8y agoAttendance to hackathons deserves mocking in its own... :)
- mwcampbell 8y agoCan you please explain why? Genuinely curious.
- zerr 8y agoThe first two bad things that come to mind: squeezing free time from developers and making hype out of it for peer pressure.
- giancarlostoro 8y ago