Best way to initialize a class on a WordPress plugin
When you’re developing a WordPress plugin, there are certain patterns and practices that are extremely useful to know and apply in order to get a better fit with the platform as a whole. One of these things it’s what’s the better way to initialize a class on a plugin, which this answer on the WordPress…
John Maeda and the Open Web
Design superhero John Maeda is now working at Automattic as Global Head, Computational Design and Inclusion because he believes in the open web… The fact that so many people are commenting about it on Facebook, just proves how hard his new mission is… And how easy is to just not “get” why it’s so important.
Using Basic Authentication with the WordPress HTTP API
Basic Authentication it’s often used as a simple security measure or as a temporary authentication method while developing with certain APIs. While the WordPress HTTP API doesn’t have explicit support for basic authentication, it’s still possible to use it as a header: Remember that if you’re sending an unencrypted request, all the headers will be…
The Cultural Defeat of Microsoft
Many people (by which I mean “many Windows users”) don’t realize the huge difference between “the Windows way of doing things” and, basically, everyone elses’ way, i.e: the POSIX world which comprises all of the Unices, Linux, BSD and even OS X. Hugo Landau writes: From the perspective of POSIX, Windows is “alien technology” […]…
Using Envoy to automate repetitive tasks
Envoy is a task runner originally developed for Laravel, but that you can also use on any other kind of project. It’s a very easy way to define tasks with Blade syntax and simple terminal commands, which you can run on remote servers via SSH (including parallel execution) or locally. Thanks to its simplicity, it’s…
Would you use Rails for a new company?
Jared Friedman from Scribd explains why he wouldn’t use Rails for a new company. His main reasons are: Ruby is slow — yup, even PHP with HHVM it’s faster Rails is static while others have caught up There are better new alternatives
The most complete localization data you’ll ever need
The Unicode Common Locale Data Repository it’s “the largest and most extensive repository of locale data available”, so it’s pretty much the perfect solution when you need information such as: Currency values, with ISO codes and visualization formats Dates and times patterns, including timezones List of “territories”, countries, continents, etc. with their corresponding languages, currencies…
Horizontally scaling PHP applications
One of the most common worries of the enterprise IT world about WordPress and other Open Source apps it’s how you can scale it — which it’s kind of ironic when their enterprise-y web services response times are usually measured in the scale of tens of seconds… DigitalOcean has published a high-level practical-overview on horizontally…
Usar moment.js como helper en Ember/Handlebars
Are you boy-scouting your code?
Simple, humble and effective. Whenever you’re reviewing old code, or other people’s code, apply one simple rule: Leave it better than you found it Are you a boy scout?