Those in the 18 to 24 age group overwhelmingly started their programming journey in their late teens.

Those in the 18 to 24 age group overwhelmingly started their programming journey in their late teens. 68.2 percent started coding between the ages of 16 to 20.

When you look at older generations, you notice another striking trend: a comparatively larger proportion started programming between the ages of five and ten. 12.2 percent of those aged between 35 and 44 started programming then.

Old fart Gen-Xers started coding as kids instead of late teens.

I’m a bit older than them and started programming later because I had to build my first computer. In those days before you started machine coding you had to learn about CMOS and TTL first.

How to deeply clone an object in JavaScript? The simplest way is via JSON eg.

How to deeply clone an object in JavaScript? The simplest way is via JSON eg.

JSON.parse(JSON.stringify(obj))

See below for two alternatives which use browser APIs in unexpected ways.

The first one, the asynchronous PostMessage version runs 7 times faster than the JSON approach. These methods also have the advantage of working with circular references and non-serializable types like Dates, Sets, Maps and ArrayBuffers etc.

Something a little less wierd really needs to get built into JavaScript.

https://twitter.com/dassurma/status/955484341358022657