wordpress

Tag Archives — wordpress

Meetup de Agosto 2014

Finalmente, después de muchísimos meses de organización, el pasado 26 de agosto pudimos presentar nuestra primera meetup semi-formal sobre WordPress en Buenos Aires.

Los pormenores (imágenes, presentaciones, etc.) pueden encontrarse tanto en el grupo de Meetup como en el nuevo blog que lanzamos para ir dando a conocer lo que hacemos, así que en este espacio simplemente voy a limitarme a hablar de lo que representó esto para mí.

A nivel personal fue una gran experiencia. Más allá del enorme nerviosismo anterior a mi charla (y durante gran parte de ella), me sentí realmente muy bien compartiendo con los presentes un poco de todo lo que aprendí trabajando con WordPress y su comunidad. Más todavía al estar rodeado de personas realmente comprometidas con este proyecto de hacer conocer la plataforma a nivel local, cuyo interés va mucho más allá de las posibilidades laborales que algo como WordPress pueda darles.

Hubo gente que ayudó en la organización, que vino más temprano a armar todo lo necesario para el evento, que se quedó hasta más tarde a limpiar, que se acercó a dar una devolución sobre las charlas. Todo eso es muy reconfortante, es algo que hace que no se está tan solo en esto de promover cosas por el simple hecho de que a uno le gustan, de que para llevar adelante un proyecto se necesita ser alguien copado con la gente que lo rodea, de que el conocimiento tiene que ser compartido y no guardado. Hay un compromiso genuino, con muchas ideas fundamentales en común, que se nota mucho. Porque al final de cuentas se trata más del trabajo en grupo que del individual, y cosas así no podrían llevarse a cabo si no tuviéramos esto en cuenta.

Tenemos un montón de cosas cosas copadas por delante y mucho que mejorar. Las críticas son bienvenidas y nosotros mismos las estamos haciendo ahora mismo, siempre con vistas a presentar algo mejor en el futuro. Muy probablemente dentro de poco vayamos a estar presentando un nuevo evento.

Para cerrar, muchas gracias a todos los que estuvieron ahí, como espectadores, como organizadores y como sponsors. Es trillado, y ya lo dije antes, pero sin todos ustedes nada de esto hubiera sido posible.

Read more

Martes 26 de Agosto: Nueva Meetup en Buenos Aires

En el marco de esto que se viene tratando de armar hace ya casi un año y medio, es decir una comunidad dedicada a WordPress en Argentina, y después de las dos exitosas Meetups por el festejo de los diez y once años de la plataforma, finalmente vamos a estar presentando nuestro primer evento semi-formal, a manera de introducción y presentación a un público general a lo que estamos tratando de hacer.

El evento va a constar de dos charlas introductorias y correlativas. La primera, a cargo de Juanfra Aldasoro, coworker de quien escribe y fundador de NiceThemes, va a consistir en un repaso por la historia de WordPress, viendo de qué manera llegó a convertirse en la herramienta con la que están construídos alrededor del 20% de los sitios web, y la importancia de cosas como el open source, GPL y la comunidad para que esto sucediera.

La segunda charla va a ser dictada por mí, y vamos a hablar de las distintas cosas que se pueden lograr con WordPress, cómo extender y saber separar funcionalidad y presentación, y de qué manera construir un entorno de desarrollo profesional que nos permita trabajar de la manera más rápida y eficiente posible, sin importar si uno se dedica a diseño, programación, maquetado, blogging o management.

La cita es el día martes 26 de agosto, a partir de las 19.30 hs. en Areatres Labs. La entrada es gratuita y al finalizar las charlas vamos a continuar con el encuentro de manera totalmente informal en medio de pizzas y cervezas.

El RSVP al evento se puede hacer acá. Nos vemos ahí 🙂

Read more

More Thoughts on Writing Accessible Code

Recently, two articles from Tom McFarlin drew my attention. In fact, it was two months ago, like years in internet time, but I think the matter is still relevant, despite the fact that this post has been sleeping in my Evernote account much longer than I would have liked. The first article (Simplifying Code in WordPress: Option Arrays) was an attempt to address different ways of checking the availability of array keys in WordPress Options API. There Tom offered a couple of methods to do so, and that led to a discussion in the comments area about one-line solutions, platform compatibility, readability, and simplicity versus complexity.

The second article (Don’t Just Get It Working), published one day after the first, was more of a reflection on how we, as developers, sometimes tend to try (or not at all) to have our software built in a somewhat ideal way, being not enough for us to just have it working and doing what it’s supposed to do. We know how it goes from here: that way we can build products with higher quality and maintainability, but also take the risk of becoming so perfectionist that our projects end up being delayed because we can’t decide if braces should be put before or after a new line (for me it’s always before, BTW). There are also those who don’t care too much about what they write and just want to have things working as soon as possible just to make it home, watch Wilfred and bathe in cynicism and depression. There’s no blame nor shame in that, because programming sometimes can destroy all the purity of your soul, though I think we can make the life of that kind of people a lot easier. And there’s another group of people, those who used to write good code, but got so lazy and confident of their own work that ended up writing pieces and pieces of real ape-bull-boar crap while thinking of it as an epiphany. Such a paradox, uh?

This last group is the one that interests me the most. I think it’s easy to see how, once we gain experience, sometimes we write complex code for the sake of brevity or performance, but forget to make it accessible for other people that could eventually work with it. That often leads to code that is only easy to understand by its own author, but over time the author himself may find it hard to read. I think we don’t give enough attention to this fact.

Read more

Buenas Prácticas en PHP: Funciones Privadas

Uno de los grandes problemas que podemos encontrarnos al trabajar con PHP es que, por carecer nativamente de una separación de ámbitos, podemos ejecutar casi cualquier bloque de código en casi cualquier lado. Eso puede ser una gran ventaja en muchos casos, pero también puede llevarnos a provocar, muchas veces inconscientemente, un desorden enorme en la organización de nuestros proyectos, tanto a nivel código como a nivel de archivos.

Teniendo en cuenta este problema, este post es un intento de repaso por algunas prácticas que, creo, deberíamos considerar al programar con PHP. Más concretamente, cuando trabajamos con funciones privadas o internas.

Read more

Meetup, Buenos Aires y 11 Años de WordPress

El primer post de Matt Mullenweg, de enero de 2003, sobre empezar a construir una plataforma de blogging de código abierto sigue ahí, como un pedazo de historia viva, con el primer comentario de Mike Little ofreciéndose a colaborar. Poco más de tres meses después, la primera versión de WordPress estaba siendo lanzada. Diez años más tarde, en 2013, alrededor del 20% de los sitios web estaban hechos con WordPress, y miles de personas en todo el mundo colaboraban para seguir haciendo crecer tanto el software como la comunidad, dos cosas que se retroalimentan constantemente y que no podrían explicarse ni existir de manera separada.

El 27 de mayo de 2013 se llevaron a cabo festejos en todo el mundo por los 10 años de WordPress. En Buenos Aires no quisimos ser menos, y a pesar de que aún no habíamos siquiera empezado a constituir una comunidad local, tuvimos nuestra pequeña y humilde celebración, organizada a través de Meetup. Esa reunión fue el puntapié inicial para armar algo más grande en Argentina (sobre lo cual ya conté acá), y este año quisimos repetir la experiencia.

Read more

Mejorando tu Trabajo: Deploy Automatizado de WordPress con Capistrano

Nota: este artículo se publicó originalmente en inglés acá.

Si desarrollás sitios web con WordPress de manera profesional (básicamente, si vivís de eso o si una parte significativa de lo que ganás viene de ahí), y si todavía no implementaste un sistema de deployment automatizado, deberías considerar fuertemente hacerlo. Siendo sincero, no es lo más fácil del mundo. De hecho, muy probablemente te lleve unas cuantas horas de trabajo, de pruebas infructuosas y de lidiar con la comunicación entre servidores. Lo bueno es que podés aprovechar unos cuantos recursos variados en la experiencia de mucha gente que se quemó las pestañas poniendo en práctica un sistema de deployment antes que vos. Incluso existen herramientas especialmente pensadas para WordPress que te pueden resultar recontra útiles.

Read more

Follet Is Now Available Through the WordPress Themes Directory

Well, the wait was worth it, and finally Follet can be downloaded from the WordPress Themes Directory. The guys in the Theme Review team do an awesome job by giving advice on how to improve your theme, which is very useful not only for the directory, but to improve the overall quality of your work too.

Downloads are doing pretty good, and some people gave me very positive feedback about the theme. I’m very glad and thankful for all of that, so I hope to start seeing Follet installed in some websites soon. Right now I’m looking forward to version 1.1, which will correct some glitches and present some new useful features. Also, pretty soon there will be some little tutorials on how to take advantage of all the hidden functionalities that Follet has built-in.

If you already tried Follet, thank you 🙂 And in case you don’t know what I’m talking about, you can download Follet from the theme directory here, or see the demo site here.

Read more

How to Deal with Users Being Automatically Generated by WP e-Commerce

In the last four months there was a lot of discussion about some decisions made by the developers of the famous shopping cart plugin WP e-Commerce. I think that discussion would not have exist if there were no users affected by the decisions that originated it. It is to be noted that version 3.8.14, the most recent release of WP e-Commerce, is supposed to definitely fix the issue, but I’m sure there will be a lot of people not putting the plugins on their sites up to date, and there can appear some possible issues with backward compatibility that need to be solved. That’s what this article is meant to.

You can read the first page of the thread if your interested in the technical implications, but basically, since version 3.8.13, WP e-Commerce saves the session data of anonymous customers into the wp_users and wp_usermeta tables, instead of doing it into transients, as was formerly done and other shopping cart solutions, such as WooCommerce, still do. This means that every time a non-registered visitor enters your site a new user will be created and some meta data for that user will be stored. So, if your site gets a lot of visitors, your database will be populated with lots of dummy users in a considerably short time. There is a scheduled task meant to remove this users hourly, but it doesn’t work quite well in some server configurations, so there will be sites where the tables won’t ever be automatically cleaned, with databases growing uncontrollably larger and larger in just a matter of days. That’s not something that any capable developer or site owner wants for his website.

So let me stop here for a minute. I’m not in the train of detractors of this practice. I don’t think it is ideal, but I do think there is a really good reason to do things this way and not another. I’m not that into discussing things that were already done as I am for trying to fix what’s wrong with them. There has been a lot of hate comments, ranting and whining in the thread I linked at the beginning, and I’m pretty sure that’s not the way to solve things, and don’t have me start on the kind of motivation that a programmer finds to get something fixed when he or his product is being attacked. So please, if you need some software to be fixed, be nice and friendly to your programmer. Otherwise, either he won’t do it well or will just walk away from you.

Now let’s get into the problem. This is not exactly a tutorial, so if you’re looking for a copy & paste kind of solution, you’re not gonna find it here. If you have this problem, the solution will depend on your specific server configuration, so you may need to do some modifications to the examples of code I’m gonna provide here.

Read more

How to Remove Yoast’s Google Analytics Warning in Network Admin

First of all, I admit I may be missing something here, but this issue annoys me big time, and I’m sure some people will feel the same.

So, what’s the deal? Well, I’ve been using Google Analytics for WordPress for quite a lot of time now in many installations, some of which are multisites. I love this plugin and all its functionality, and I wouldn’t change it for another one in most of the sites I run. But every time I download and install it in a multisite environment, I keep seeing a notice which reads “Google Analytics is not active. You must select which Analytics Profile to track before it can work”.

Some of you may say “why don’t you just set your Analytics Profile and stop whining?”. Well, I’d wish it was that easy. And that’s because, for some of this multisite installations, the main site is just an internal hub that will be hidden from the public, and doesn’t need to have an analytics profile set up.

Read more

Workflow Improvements: An Introduction to Automatic Deployment

If you develop websites using WordPress professionally (basically, if you make a living out of it or a significant part of your income comes from there), and you haven’t implemented yet an automatic deployment system, you should strongly consider doing it. Being sincere, it’s not the easiest thing in the world. In fact, both the process and the learning curve will take a lot of working hours out of you, all spent in fruitless tests and dealing with communication between servers. The good thing is that you can take advantage of a lot of resources based on the work of people who lost some sleep hours in exchange of putting a complete deployment system in practice before you have to create a totally new one. There even exist some tools specially designed for WordPress that can be really useful to you.

Read more