Swarm.js+React — real-time, offline-ready Holy Grail web apps

Swarm.js works like Firebase but with the addition of offline client-side storage that is sync’ed to the server later


The new Swarm+React TodoMVC demo can:

- synchronize in real-time (WebSocket),

- cache data at the client (WebStorage),

- load and work completely offline (Application Cache).

The app employs Swarm models and React views. It is important to notice that the code is written like it is a local MVC app. The only network-aware call in client-side code is connect() which “plugs” the model into the server’s sync “outlet”. Later on, all the sync is done by Swarm in the background; update events are delivered to views using the popular on()/off() subscription pattern, and even that is hidden inside ReactMixin.

The app is optimized for instant load using the Holy Grail approach. All the views, models and even the router are shared between client and server. The server-side code prerenders React views so the browser gets static HTML (fast). The page is made live once scripts and data arrive (slower). Holy Grail is critical, considering that React.js is rather heavy. The resulting page load latency is quite close to RTT.

Read more from the source: Swarm.js

It’s called Windows 10 because old programs would confuse “Windows 9″ with “Windows 98″

Cut the crap! The real reason Microsoft skipped Windows 9: old programs check if the version string starts with “Windows 9″ to detect 95, 98 and ME


A quote from CNET’s anonymous source:

Microsoft dev here, the internal rumours are that early testing revealed just how many third party products that had code of the form

if(version.StartsWith(“Windows 9″)) { /* 95 and 98 */ } else {

and that this was the pragmatic solution to avoid that.

Read the full article at CNET

13 Hardware devices with first-class support for JavaScript

You think JavaScript is just for the web? Get ready for a whirlwind of devices that will tickle your JavaScript fancy


Patrick Catanzariti of sitepoint.com looks at 13 devices and microcontrollers that run JavaScript.

1. Ninja Sphere home automation device

2. Leap Motion’s in-air hand gesutres

3. Pebble Watch, the e-paper smart watch

4. Oculus Rift VR Headset

5. Cylon robotics framework for Leap Motion, Pebble Watch, Arduinos, Raspberry Pis and more

6. Arduino YUN (pictured), a microcontroller that runs Linux and Node.js

7. Spark OS and the Spark Core with their official JavaScript SDK

8. Tessel, a microcontroller that runs JavaScript itself and supports thousands of Node.js packages

9. Espruino, an event-based microcontroller that injects JavaScript commands in real time

10. Intel Galileo, Intel’s full-featured microcontroller board which supports full Linux and Node.js via SD-card

11. Google Cardboard, a low-budget VR experience using cardboard googles with an Android device

12. Myo Armband which detects hand gestures from electrical activity in your muscles

13. Nest’s high tech thermostat and smoke alarm allows you to program against their API using JavaScript

Read more from the source: SitePoint

Microsoft unveils the Windows 10 operating system, a marginal improvement on Windows 7

Windows 10: What should have been Windows 7.1


BBC News: Microsoft has disclosed the first details of Windows 10 – its next operating system (OS).

The name is a surprise, bearing in mind it represents a jump from the last version – Windows 8.

The software will run on a wide range of devices, from phones and tablets to PCs and Xbox games consoles, with applications sold from a single store.

It also marks the return of the Start Menu, which had been removed from Windows 8.

Read more at BBC News

A walkthrough on building OS X Apps with JavaScript

With the Objective-C bridge, you can jump into OS X app development with JavaScript


Tyler Gaw is a Freelance Web Designer & Developer in Brooklyn, New York. He writes:

OS X Yosemite introduced JavaScript for Automation. This makes it possible to access native OS X frameworks with JavaScript. I’ve been digging in to this new world and putting together examples along the way. In this post I’ll explain the basics and step through building a small example app.

Read the article at tylergaw.com