Trick of the day: Undoing mistakes in Git

Trick of the day: Undoing mistakes in Git

Everyone can make a mistake and Git is probably one of the easiest technologies ever where mistakes happen. Sometimes you or other developers commit things that weren’t supposed to be committed or even push them on the remote repository. Usually, once something is pushed you don’t want to mess up with the commit history, but under some circumstances this is totally acceptable. When this happens, you might need a guide to know exactly what to do.

Trick of the day: Memoization in JavaScript

Trick of the day: Memoization in JavaScript

Functions in JavaScript are really different from many other languages as they are first-class citizens. What this means is that they are treated like any other data type, including objects (actually they are objects), and as such functions can possess properties and even functions, can be assigned to variables, and can be passed to other as an argument. In addition, they can be executed which is really what make functions different from other objects.

Trick of the day: Sass, Mixin or Placeholder?

Trick of the day: Sass, Mixin or Placeholder?

Without any doubt, two of the best and most useful features of Sass are mixins and placeholders. A mixin is a directive similar to a function in programming languages in that you can pass arguments. However, a mixin outputs CSS code instead of returning a value as the result of its execution. A placeholder is similar to an abstract class of an object oriented language. When your Sass code is compiled, the body of a placeholder isn’t included in the CSS code unless there’s a CSS class extending the placeholder.

Job Offers Errors and How to Avoid Them

Job Offers Errors and How to Avoid Them

As we all know, IT is a growing field and it’s easy to find a job (at least compared to other fields). We’re overwhelmed by job offers and recruiters emails sent to find the right person for their clients. Unfortunately, many of these offers are written by people without any clue of what they are talking about. Others are written without the will to end up something meaningful and appealing. This is really sad as it wastes people’s time and it’s also counterproductive for the companies. Most of the time the only result these job offers will have is to let potential candidates down, thus avoiding applying for the role.

In this article, I’ll discuss some of the most common job offers errors I’ve found recently on the web and how to fix them.

The State of the Web Notifications API

The State of the Web Notifications API

Today I was reviewing my HTML5 API demos repository to keep its information updated and relevant. In the last two weeks Google has released Chrome 38, Opera has released Opera 25, and Mozilla has released Firefox 33. Every time a new version of a browser is available, it may introduce support for new APIs or change an already supported API to accommodate changes in the specifications. For these reasons, a general check was much needed.

In this article I’ll discuss what’s the current state of the Web Notifications API, what browsers support it, and what versions of the specifications. I’ll use this post also to summarize some inconsistencies I’ve found along the way.

My Experience at 4Developers 2014

My Experience at 4Developers 2014

In March I announced via Twitter my participation as a speaker at 4Developers 2014. 4Developers 2014 was a single-day, multi-track and multi-language conference held in the lovely Warsaw on the  at the Gromada Airport Hotel. The tracks for the edition of this year were: Java, .Net, PHP, Python, Front-end (HTML5, JS, CSS), UX, Games Development, Mobile Systems & Apps, Mobile Games, Cloud Technologies, Application Architecture, Soft Skills & Business Relations, IT Project Management, and IT Security. At the conference I gave my talk Modern front-end with the eyes of a PHP developer in the PHP track.

The aim of this post is to describe my experience as a speaker and as an attendee.