Tag Archives: javascript

Lint only touched files with Webpack

Recently I had to add a linter on a project in which the codebase was never linted before. I am talking about a big codebase in which a team have worked on it for years already. Obviously, the amount of … Continue reading

Posted in Javascript | Tagged , , , , , | Leave a comment

Be careful with your fix!

I think many times the code grows wrong (also) because of some wrong solutions… Little example: yesterday I was sending an email by Gmail, an attachment was included to the mail. Correctly, I wasn’t able to send the mail (clicking … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Code readibility: little zoom on Implements from MooTools

I would like to spend a few lines about the Implements feature, from MooTools. Like many other frameworks / toolkits, MooTools provides utilities for DOM manupulation, effects, etc… but what i really enjoy is the way it provides writing code, … Continue reading

Posted in Code readibility, Javascript, MooTools | Tagged , , , , , , , | Leave a comment

Coding tips: accessing the data structure

I think it is really important keep the code more general and flexible as possible; one rule, that i would like to introduce here, is to use the right level of abstraction when accessing the data structure elements, trying to … Continue reading

Posted in Javascript, jQuery, Programming, Tips | Tagged , , , , , , , | Leave a comment

A “Class” function to define classes in Javascript with MooTools like syntax

Updated the 08/02/2013 I really enjoy to organize my Javascript code as objects and get profit by using inheritance. “Approaching Javascript as Javascript and not as Java”, i read that so many times; Javascript is / can be OOP and … Continue reading

Posted in Javascript, jQuery, My code, Programming | Tagged , , , , , , | 7 Comments

A quick digression about the constructor property in Javascript

When i think about the constructor, i think about the function called when a class is instantiated. Well, that is true about Java but i would like to write about the constructor in Javascript. For me is a challenge write … Continue reading

Posted in Javascript, Programming | Tagged , , , | Leave a comment

Multi select avoiding ctrl button, provided by pure select tag and jQuery

How many times we need to choose more than one item from a select tag? By default, it is possible to do that pressing the <ctrl> button. Holding down the ctrl button to select more values is considered not intuitive … Continue reading

Posted in Javascript, jQuery, My code, Programming | Tagged , , , , , , , , , , , , | 5 Comments