2011.01.17

Why most JS devs don’t understand OOP

I don’t remember exactly when I had this “insight” but it was probably 1-2yrs ago, not really groundbreaking but may help some people see things with a different perspective…

Front-end JavaScript developers usually have a hard time trying to understand how Object Oriented Programming (OOP) works and how they can apply it to their work. I’ve seen some people saying that it’s because of the way prototypical inheritance works but I don’t think it is the main reason for that.
Read more…


2011.01.03

Invest early, invest often

The things I’m going to say are not directly related with development or design but can be applied on these contexts as well… I’m not an expert on this subject and I’m not even the best example to be followed, the main reason to be writing this post is exactly to remind myself that I could be doing it way better than I’m doing right now, I’ve missed the opportunity to make some extra money because of laziness, dumbness and negligence on the past couple years even knowing these things and investing for a long time.. nothing groundbreaking but hard to put in practice and stick with it…
Read more…


2010.12.28

Be ready for the “war”

(This is just a reminder to myself and not something new and/or groundbreaking)

One thing that I’ve been doing for a long time is preparing myself, kind like soldiers do, training every single day without ever knowing if one day I will really use what I learned or do what I’ve trained for… - following a lot of blogs, reading many books, trying to write better/cleaner code and create better designs each day, trying different methodologies, researching about different subjects, etc..

I don’t know what I’m preparing myself for yet, but I know that all the knowledge and experience may become handy in the future and may make me see things with a different perspective… - so far I think it’s been working pretty well.

“Luck is to be prepared when the opportunity shows up” - unknown author

Train even if you don’t have a real reason/goal for it, it’s better to be ready when the opportunity/problem shows up than to be sorry.

That’s it!


2010.12.08

Using integers to store multiple boolean values

Before starting I have to say that I come from a design background and not so long ago I didn’t know anything about bitwise operations, in fact I didn’t even know that it existed, the content described on this post should be trivial for developers coming from a computer science background or low-level languages…

The intention of this post is not to teach what each bitwise operator does, in fact I’m going to explain how to use it without telling what it does since I think it may be easier to understand. The main reason for writing this post is because I had to explain this technique to a couple of different friends over the past years (or at least I tried…) and also because I believe that most front-end developers don’t know about it.

I think I’ve learned it around 3 years ago when I was planing to code a multiplayer RPG game with a couple of friends and was doing some research about ways to optimize data transfer, that was probably the first time I saw a real use for bitwise operations on high-level programing besides splitting color channels…
Read more…


2010.11.28

JS-Signals: Custom event/messaging system for JavaScript

I’ve just released a new open source project called JS-Signals. It’s an event/message system similar to pub/sub and DOM2 Events but that doesn’t rely on strings to broadcast/subscribe to events, it has also some extra features that usually aren’t available on the other systems.

JS-Signals was heavily inspired by Robert Penner’s AS3-Signals but it is NOT a direct port, which means it has a different implementation and features. I’ve also stolen borrowed a few ideas from Joa Ebert fork ;).

Make sure you read the comparison between the different event systems and the usage examples.

Download it and get more info at http://millermedeiros.github.com/js-signals/.

Ideas and contributors are welcome!


  1. 1
  2. ...
  3. 10
  4. 11
  5. 12
  6. ...
  7. 15