• Currying (Functional programming II)

    With this concept I still have problems. I can see how it works, I can see some uses, but I’m still learning why is so important in other languages as Haskell. Still I want to share with you my advancements because it’s a very interesting stuff. So… currying. What’s that?...


  • Decorator pattern (part II): Abstract Decorators

    Note: If you come here for the first time, you might want to read my first post. Today we will learn about a variant of the Decorator pattern, more powerful and definitely more complex. I don’t recommend this pattern for an usual app, but it can help for complex apps...


  • Higher-order functions (Functional programming I)

    Ok, I know, I know, I must continue with the decorator pattern. But in the last few days I’m learning about functional programming and I want to share with you my first tests. So, first is first, what’s functional programming? It’s a very valid question and a hard like hell...


  • Decorator pattern (part I)

    Decorators! Oh my, this is getting serious. Ok, first is first: you know OOP has changed in the last decade. At first all was about classes, inheritance and so. But step by step the patterns has changed the way of doing things, not only on Javascript but on every aspect...


  • Abstract factory pattern

    Wow! Almost a month without posting in here! Maybe I’m too busy with refactoring our ugly, ugly portal :( Yeah, I know there are worst things but it takes a lot of time that we could use, I don’t know, maybe using a good combination between language & framework (PHP...


  • Mixin pattern

    Mixins! Love that name, you now? Mixins are something I love in Javascript development: the inclusion of external ideas to our not-so-poor-day by day language. In other languages, mixins are used as classes that provide extra functionality to subclasses. You can use more that one mixin to inherit your class...


  • Maze runner

    Yes! First version of maze in 3D! It was a bit difficult because I’m not yet very expert in Unity3D hierarchy (and I never worked with C# until now), but I manage to export my javascript maze into 3D space. And I made my first FAG (Fucking Awesome Game)! You...


  • Maze generator

    Updated: Eva has found a bug in the process, so, I’m updating the code :) For my next game project I need a maze. I will make it on unity but before that I need to understand how can I make a autogenerated maze. At least I found a way...


  • Box shooter

    Ok, this is the last experiment I will made based on the current course I’m taking. It’s a little crappy in webgl (because of the current version of unity exporter), but you can imagine how it works. And remember to allow mouse control before play. It will rubish if you...


  • Factory pattern

    Factory pattern! This is one of the favourites of Markel Arizaga: he always wants to include it in every module we use! And usually he is right: we use this pattern a lot in Starzplay. But, what is this all about? Well, this pattern is used to create objects without...


  • Marble madness

    A new game experiment derived from the course I’m taking about Unity! It’s really easy to do this stuff in unity. I’m remembering now the old ways to do 3D in Flash and man… this is amazing. Check this stuff! Cursors will move the ball. And beware the cubes! You...


  • Facade pattern

    First time I read about this pattern I don’t believe it. So, after all, I was doing one thing as expected. In the beginning of internet I worked for the two browsers: Internet explorer and Netscape. In those terrible times we need to hack every javascript call, not only for...


  • Unity solar system

    Today I’m not showing my usual posts about patters. That’s because I’ve started a course about Unity3D, the game development platform. As you may know I love computer games and I made some of them in the old flash days. A lot of friends are professional designers, artits or developers...


  • Prototype pattern

    Ok, I must confess that I never had a teacher who knew a thing about patterns. When I started college the book Design Patterns: Elements of Reusable Object-Oriented Software was a novelty and… well, my teachers were not good at all. But they know a lot about C++… I grow...


  • Publish/Subscriber pattern

    Also known as Observer, this pattern allows a Subscriber to listen to a Publisher. Ey… smart enought, isn`t it? Ok, let’s try again. So there is an Object (Subscriber) that wants to watch the responses of another object (Publisher). When the Publisher needs to notify the Observers about the response,...


  • Revealing Module pattern

    So, if you remember last day, we talk about the module pattern. Now we will talk about a variant of this pattern: the Revealing Module pattern. This pattern (created by Christian Heilmann in his famous post takes the module pattern to a new consideration, by organizing the code into private...


  • Module pattern

    This is possible the most famous design pattern between javascript developers and it’s used in every framework we create every week. Most of us has used this pattern even without knowing it, just by copying another example of “how to do a todo list” (tm) But it is so useful,...


  • You don't need rockstars or ninjas. Introducing the D&D team.

    All of us have tripped over the same stone one or twice. Maybe you are looking for a job, maybe you need to hire a developer to make your website. You check Linkedin, personal blogs, github pages. They are everywhere: “Ninjas”, “Rockstars”, “Gurus”, “Full stack developers”. Every year we change...


  • Creational pattern

    This design pattern conforms the base of many other ones. Usually it is the first pattern that people learn because is one of the simplest. So, what this is all about? Well, this pattern plays with the idea of creation process, mostly of objects. You know, in Javascript there is...


  • Design patterns

    The idea of design patterns (applying patterns to programming) was presented in the late 80’s and get strength in the late 90’s, at least in the c++ world. I remember reading about it in my third company. My first thought was: “oh, men, no way, not another idiots telling me...