22 May

Script & Style Show: Episode 10: Dojo

In this episode: David and Todd welcome Dojo and JavaScript legend Dylan Schiemann and TypeScript and Dojo 2 superhero Nick Nisi.  We cover the early days of Dojo, the road to 2.0, and what’s in Dojo 2.0 and beyond.  Enjoy!

The post Script &...

21 May

Regain Disk Space from Homebrew

One of my favorite utilities is Homebrew, the shell utility for installing and upgrading other utilities — it’s a lazy developer’s dream.  Dreams can easily turn to nightmares, however, and I recently learned that Homebrew caches older versions of installed packages, leading to loads of disk space being used up by old files. Want all […]

The post Regain Disk Space from Homebrew appeared first on David Walsh Blog.

16 May

Detect WebVR Support with JavaScript

It’s been two years since I was heavily involved with WebVR at Mozilla but, despite not contributing every day, I can see VR making leaps and bounds, from Firefox making an increased effort to Chrome pushing VR and Oculus and HTC (Vive) improving their offerings.  Native games are getting better but, more importantly, browsers are […]

The post Detect WebVR Support with JavaScript appeared first on David Walsh Blog.

16 May

CDN, Web Security, and DDoS Protection from Incapsula (Sponsored)

There used to be day that you could have a small to large website that didn’t require protection and worldwide CDN but, with how easy it is to initiate a DDoS attack and how important website speed is for search engine placement, it’s a given that you should look for a service to handle CDN […]

The post CDN, Web Security, and DDoS Protection from Incapsula (Sponsored) appeared first on David Walsh Blog.

14 May

How to Get a React Component’s Element

JSX is an amazing pseudo-language for React, and if I’m honest, it’s what brought me to love React so much.  Using React without JSX is cumbersome and frustrating, while using JSX is such an easier way to express your code.  One drawback of JSX, however, is that it makes accessing component elements indirect, if not […]

The post How to Get a React Component’s Element appeared first on David Walsh Blog.

07 May

React and autofocus

While I love ReactJS, I can say that I sometimes find interactions that were easy during the pre-ReactJS are annoyingly difficult or at least “indirect”.  One example is properly ensuring that a given <input> element gets focused when a button in a different component is clicked; in the old days, it was three lines of code, […]

The post React and autofocus appeared first on David Walsh Blog.

04 May

Script & Style Show: Episode 9: What’s in the News

In this episode:  David reveals his tree-falling-into-house nightmare, but quickly moves onto recent news, like the massive release of Dojo 2, EU privacy, service workers landing in all major browsers (finally Edge!), this tweet, and more!

  The ...

02 May

IP Geolocation with ipstack (Sponsored)

Knowing where your web visitor is located is an incredible advantage to any website; you can show relative content like maps, pricing, and availability, output your content in their likely language, etc — I cannot overstate how useful that information is.  Of course we have the HTML5 Geolocation API but that’s permission based and, even […]

The post IP Geolocation with ipstack (Sponsored) appeared first on David Walsh Blog.