Category Archives: JavaScript
Nuanced Opinions in the JavaScript Community
I Don’t Hate Arrow Functions is an interesting step back from the debate about arrow functions, to comment on how we treat nuanced opinions in our culture, and how tooling helps and hurts our efforts to collaborate together.
The Simplest Way to Build a Gutenberg Block
Minimal CacheStorage API Example
CacheStorage API outside of service workers, or with the `await` operator, so I put one together. Composition vs Context to fix Prop Drilling in React Apps
`await` is the Best Thing to Happen to JavaScript in Years
Snapshot Testing and Vague Assertions
Exercising Care and Giving Users Control
Programmatically Adding Comment Metadata from JavaScript
Gutenberg and WordCamp.org’s Shortcodes
Best Good Practices
Stop Breaking the Web
Reading Stop Breaking the Web by Nicolás Bevacqua's feels like a breath of fresh air.
He writes about how several common practices in the JavaScript community have led to poor user experiences, and violated some of the fundamental principles that made the Web what is today...
Polyfilling Responsive Images
Scott Jehl — one of the creators of Picturefill — wrote a thoughtful piece on the tradeoffs of polyfilling for responsive images.
Progressive Enhancement is Still Important
Attaching Uploads to Custom Post Types
Progressive Enhancement with Backbone.js
Reusing P2’s ajaxUrl Short-Circuits Other AJAX Requests
Dynamically Adding HTML Elements to a Masonry Container
$( this ).attr( … ) Is Often Unnecessary
It’s often much more efficient to access DOM properties directly, rather than using jQuery. The downside to that approach is that there are differences between the various browsers, so in some cases it introduces bigger problems than the extra performance overhead.