---
title: "Babylon.js 4.0, Electron 5.0, and standing up for the ternary operator"
publication: "JavaScript Weekly"
issue: 435
published_at: "2019-05-03"
canonical_url: "https://javascriptweekly.com/issues/435"
---

This week's JavaScript news       

#435 — May 3, 2019 

[Read on the Web](https://javascriptweekly.com/issues/435)   

JavaScript Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1556888875/yymuknzx4fnyxhwnlxcw.jpg)](https://blogs.windows.com/buildingapps/2019/04/30/babylon-js-4-0-is-here/)   

[Babylon.js 4.0: The (Very) Powerful WebGL Graphics Engine](https://blogs.windows.com/buildingapps/2019/04/30/babylon-js-4-0-is-here/) — Such a significant release that they’ve released [a 2 minute video trailer](https://www.youtube.com/watch?v=RlPAOT9v-s0) for it! With 4.0 Babylon has gone fully modular, so it’s more efficient than ever to distribute to end users. Want to play? Enjoy [this editable live demo.](https://playground.babylonjs.com/#3I55DK) 

Microsoft   

[Visual Studio Code Previews Support for 'Remote Development'](https://code.visualstudio.com/blogs/2019/05/02/remote-development) — The VS Code editor is getting an exciting new feature, the ability to work directly with _remote_ workspaces (running either WSL, Docker containers, or physical machines or VMs over SSH). 

VS Code Team   [![\](https://copm.s3.amazonaws.com/32ae3a6e.png)](https://hub.bignerdranch.com/big-nerd-ranch-webinars) 

[Using Competency Mapping to Unlock Skills in Your Org](https://hub.bignerdranch.com/big-nerd-ranch-webinars) — Free, Online Talk - May 15th. 

Big Nerd Ranch sponsor   

[Electron 5.0.0 Released](https://electronjs.org/blog/electron-5-0) — Just 3 months after 4.0, Electron 5, the popular system for building Node and Web technology based desktop apps, is here. It’s _mostly_ a dependency bump release, but with Node 12 and Chromium 73 now under the hood, that’s no bad thing. 

Electron.js Team   

[Editor.js: A Block-Styled Editor with JSON Output](https://editorjs.io/) — Typical WYSIWYG editors output raw HTML markup but Editor.js keeps things organized into ‘blocks’ which are then returned in structured JSON which makes the content easier to sanitize or transform. 

CodeX   

[Shimport 1.0: Use JavaScript Modules in All Browsers?](https://github.com/Rich-Harris/shimport) — Allows you to use JS modules in all browsers, including dynamic `import()`. We first linked this when it was entirely experimental but it’s just had its 1.0 release, so have a play. 

Rich Harris   

[Easy Automatic `npm` Publishes](https://blog.npmjs.org/post/184553141742/easy-automatic-npm-publishes) — npm and Node powerhouse Isaac Z. Schlueter says he hasn’t _“manually typed `npm publish` in a while”_ and explains how he’s semi-automated his npm publishing process. 

Isaac Z. Schlueter  

💻 Jobs  

[JavaScript Developer at X-Team (Remote)](https://x-team.com/remote-javascript-developer-jobs/?utm_source=cooperpress&utm_medium=email-ad&utm_campaign=js) — Join the most energizing community for developers. Work from anywhere with the world's leading brands. 

X-Team   

[Senior JavaScript Developer - Kontist (Remote)](https://kontist.homerun.co/senior-javascript-developer-remote) — Join our team of full-stack JavaScript developers and shape the future of banking. 

Kontist   

[Have You Tried Vettery?](https://www.vettery.com/tech?utm_source=newsletter&utm_medium=cooper-javascriptweekly&utm_term=tech&utm_content=grouped&utm_campaign=ad-77584) — Vettery specializes in tech roles and is completely free for job seekers. Create a profile to get started. 

Vettery  

📘 Tutorials and Opinions 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60/v1556893300/ity8y73l1ghelbivougw.png)](https://css-tricks.com/in-defense-of-the-ternary-statement/)  

[In Defense of the Ternary Statement](https://css-tricks.com/in-defense-of-the-ternary-statement/) — Code similar to `expression ? true_result : false_result` is known as a _ternary_ expression. Much maligned, is it possible to use them in JavaScript without getting into an unreadable mess? 

Burke Holland   

['I just shipped `Promise.allSettled` in Chrome 76'](https://twitter.com/_gsathya/status/1123605995177922560) — [`Promise.allSettled`](https://github.com/tc39/proposal-promise-allSettled/) is like `Promise.all` but doesn’t short-circuit if any supplied promise is rejected. 

Sathya Gunasekaran on Twitter   

[New Features in Node 12 You Shouldn't Miss](https://blog.risingstack.com/node-js-12-new-features/) — Node 12 came out last week, and this post reflects on some of the new features. 

Máté Huszáarik   

▶[How Facebook is Building the New Facebook.com with React, GraphQL and Relay](https://developers.facebook.com/videos/2019/building-the-new-facebookcom-with-react-graphql-and-relay/) — The forthcoming redesign is [fully powered by React and Relay](https://twitter.com/dan_abramov/status/1123284258892783616) and this 35 minute talk digs into the technicalities. 

Facebook for Developers   

[Replace Tedious Coding with MongoDB Stitch and Public APIs](https://www.mongodb.com/blog/post/replace-tedious-coding-with-mongodb-stitch-and-public-apis?jmp=cpress&utm_campaign=WW_CP_newsletter_sponsorship&utm_content=20190503&utm_medium=display&utm_source=javascriptweekly) 

MongoDB sponsor   

[The Perfect Unit Test](https://javascriptplayground.com/the-perfect-javascript-unit-test/) — You might recognize Jack’s name if you’ve been a long time subscriber as he used to write a lot of great posts. He’s back now with some basic tips on how to craft better unit tests. 

Jack Franklin   

[Deeply Understanding `async` and `await` with Examples](https://blog.bitsrc.io/understanding-javascript-async-and-await-with-examples-a010b03926ea) — One more for beginners, but it’s a perennial topic covered well. 

Arfat Salman beginner   

[`Array.push` is 945x Faster Than `Array.concat`?](https://dev.to/uilicious/javascript-array-push-is-945x-faster-than-array-concat-1oki) — Also worth checking out the comments on this one. 

Shi Ling   

[Why I Prefer React Over Vue](https://sebastiandedeyne.com/why-i-prefer-react-over-vue) 
Sebastian De Deyne   

[An Introduction to Vue.js Render Functions (with Examples)](https://snipcart.com/blog/vue-render-functions) 
Charles Ouellet   

[5 Things You Didn’t Know About React DevTools](https://blog.logrocket.com/5-things-you-didnt-know-about-react-devtools-2c6e0ef22529) 
Kristofer Selbekk   

[Serving Vue.js Apps on GitHub Pages](https://blog.usmanity.com/serving-vue-js-apps-on-github-pages/) 
Muhammad Usman  

🔧 Code and Tools  

[Textblock: Set Continuously Responsive Typography](https://textblock.io/) — A JS library that adjusts the size, leading, line height, and other factors of text to make it ‘continuously responsive’. 

Glyphic   

[sql.js: SQLite Compiled to JavaScript (and Webassembly)](https://github.com/kripken/sql.js) — Naturally experimental, 1.0 just dropped with Webassembly support and based upon the latest SQLite version (3.28.0). Want to play? [Here’s a live demo.](http://kripken.github.io/sql.js/examples/GUI/) 

Alon Zakai   

[Automate Your Code Reviews](https://lp.codacy.com/code-review?utm_source=CooperPress&utm_medium=cpm&utm_campaign=CooperPress-JavaS&) — Codacy flags errors in your code so you can fix them quickly, directly from your current workflow. [Get started today](https://lp.codacy.com/code-review?utm_source=CooperPress&utm_medium=cpm&utm_campaign=CooperPress-JavaS&). 

Codacy sponsor   

[Relay 4.0.0 Released: A Framework for Building Data-Driven React Apps](https://github.com/facebook/relay) — _“Simply declare your data requirements using GraphQL and let Relay figure out how and when to fetch your data.”_ 

Facebook   

[jQuery-CSV: A jQuery CSV Parser Plugin](https://github.com/evanplaice/jquery-csv) — A _jQuery plugin_(!) you say? Yes, but this is a very well optimized, battle tested, and spec compliant CSV parser and its 1.0 release today _“marks the first – and likely only – stable LTS release of this library”_ so.. congratulations are in order. 

Evan Plaice   

[Glide: A Dependency-Free ES6 Slider and Carousel](https://github.com/glidejs/glide) — A lightweight, flexible and fast straightforward slider. [Demo here](https://glidejs.com/). 

Jędrzej Chałubek   

[jQuery 3.4.1: A Bugfix Release](https://blog.jquery.com/2019/05/01/jquery-3-4-1-triggering-focus-events-in-ie-and-finding-root-elements-in-ios-10/) — Bugs squashed include focus/blur triggering in IE, checking element attachment in iOS 10.0-10.2, and loading with AMD. [3.4.0](http://blog.jquery.com/2019/04/10/jquery-3-4-0-released/) was released last month if you missed that. 

Timmy Willison   

[DeepScan Makes Your JavaScript Better](https://deepscan.io/?utm_source=jsw&utm_medium=email&utm_campaign=jsw-2019-may) — Use this static analysis service to find problems in your JavaScript, TypeScript, React & Vue on GitHub. Try it free. 

DeepScan sponsor   

[vue-qrcode-reader: Vue.js Components for Detecting and Decoding QR Codes](https://github.com/gruhn/vue-qrcode-reader) 
Niklas Gruhn   

[Dotenv 8.0: Load Environment Variables From `.env` in Node](https://github.com/motdotla/dotenv) 
Scott Motte   

[Ember Charts 2.0: An Easy to Use Charting Library for Ember.js](https://github.com/Addepar/ember-charts) 
Addepar         

Curated by [Cooperpress](https://cooperpress.com/) and [Peter Cooper](https://twitter.com/peterc). 

'JavaScript' is a trademark of Oracle Corporation in the US
We are not endorsed by or affiliated with Oracle. 

[Change your email address](https://javascriptweekly.com/edit_subscription/*|UID|*) or[Stop getting this newsletter](https://javascriptweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom
