“Clever code” is a term that you may have heard before, accompanied by sighs and groans from other developers. Often, people seem to think of clever code as annoying, and perhaps even harmful. In this article, I’m going to give a brief overview...
Read More Is Clever Code OK?Tag: javascript
Debugging JavaScript Events: Why Does It Do That When I Click This?
Sometimes things happen on a page that you can’t figure out. You click on a link and nothing happens; you submit a form and a modal pops up. Something is happening in JavaScript, but you can’t figure out where.
Read More Debugging JavaScript Events: Why Does It Do That When I Click This?WebDevStudios Dances the Calypso
Recently, Automattic (the company behind WordPress.com) released a pure JavaScript version of their website hosting and creation service in the form of a formidable desktop app called Calypso. The new WordPress.com codebase moves WordPress away from MySQL and PHP. It’s built entirely in JavaScript, and...
Read More WebDevStudios Dances the CalypsoWriting Clean(er) JavaScript
JavaScript, like many programming languages, has some great ways to compartmentalize and structure code to make it more maintainable, more readable, and more reliable. This post will cover two things that can help developers to organize their code: namespacing and singletons.
Read More Writing Clean(er) JavaScriptSolving the Responsive Images Problem with WordPress Responsive Images
The quest for a beautiful, responsive website is ever-present. As front-end developers, we know the tricks of the trade when it comes to making all of those fancy little features work from desktop to mobile. Whether it’s degrading hover-based actions gracefully or...
Read More Solving the Responsive Images Problem with WordPress Responsive ImagesModernize Your WordPress JavaScript
Not too long ago, I walked through the basics of using Browserify to organize and improve your JavaScript. Let’s build on that and take it to the next level while smoothly integrating with WordPress’ built-in JavaScript interface.
Read More Modernize Your WordPress JavaScriptThe Future of JavaScript: ECMAScript 6 and You
Today, JavaScript fills every aspect of our online lives: it checks your e-mail in the background, it guides your online shopping cart, and it even autosaves your blog post as you write. From the client to the server, JavaScript is everywhere. Sometimes it’s hard...
Read More The Future of JavaScript: ECMAScript 6 and YouUsing Browserify with JavaScript (and Keeping Yourself Sane!)
Working with code in the browser is a challenge. Not only do you need to manage the disparate behaviors of a variety of browsers and navigate the sometimes treacherous waters of JavaScript’s functional programming logic, but managing a wide array of dependencies and...
Read More Using Browserify with JavaScript (and Keeping Yourself Sane!)Handling AJAX in WordPress in Style
AJAX (Asynchronous Javascript and XML) isn’t something that should be feared by anyone. It’s insanely powerful, versatile, and can provide your users cool experiences like processing forms without page redirection, dynamically loading posts while a user scrolls the page, and much more....
Read More Handling AJAX in WordPress in Style