Python Decorator for Simplifying Delegate Pattern

Need to study more on patterns as an implementation examples.

Programming Ideas With Jake

Recently, I posted about how you can use composition instead of inheritance, and in that article, I mentioned the Delegate Pattern. As a quick description, the pattern has you inherit from the parent interface (or, in Python, you can just implement the protocol), but all the methods either redirect to calling the method on an injected implementation of interface/protocol, possibly surrounding the call in its own code, or it completely fills the method with its own implementation.

For the most part, it is like manually implementing inheritance, except that the superclass in injectable.

Anyway, one of the more annoying parts of implementing the Delegate Pattern is having to write all of the delegated calls. So I decided to look into the possibility of of making a decorator that will do that for you for all the methods you don’t explicitly implement.

Standard Attribute Delegation

First, we need a standard…

View original post 1,683 more words

Joey Crawford conspiracy

Don’t you love when a conspiracy is debunked, many of the LeBron haters been constantly hinting that LeBron fixes the games and that the NBA is behind it. All thanks to the referees, since most fans only know one name, they all try to use him for their memes. And that’s the birth of the Joey Crawford Conspiracy. Let’s face it, when LeBron loses, the haters are waaay to busy to remember who was the referee. But when he wins, oh boy, every single piece of the game is used to disqualify LeBron’s legacy.

However don’t you love when someone actually go into the numbers and tries to pull out the true stats? Well someone did in this case and the results couldn’t be more opposite to the myth.

Contrary to popular belief, James was winning percentage dropped by a pretty solid margin (from .669 to .521) in games in which Crawford was an official. Though it’s an admittedly small sample size, I would have to say that any notion of Crawford being biased towards James would have to be thrown out the window.

Stats of LBJ winning percentage on games where Joey Crawford officiate. Complete Opposite.
Stats of LBJ winning percentage on games where Joey Crawford officiate. Complete Opposite.

So in the end, memes such as Joey using LBJ team jersey as the 6th player on the floor. Or LeBron kneeling before Joey should be shoved with this stat.

In the end is no surprise that haters gonna hate. But at least we could make their hate more legitimate.

Source: Truschoolsports

FLISOL 2015, review of the event


This year we accomplished another milestone, by we I mean the Tequila Valley Cancun group. We finalize a new FLISOL event. This one with way more support than the previous one. Although there are still a laundry list of things to improve, this definitely was a great effort, and an opportunity to evaluate how well we can play together.

The Free software installfest in Latin America got a great amount of attendance, mainly because this time we implement a press release which helped us gain an exposure we haven’t got before.

This time we had a platform to coordinate the tasks that were needed for the event. A type of canvas digital board called Trello. This gave us the chance to be able to delegate responsibility and improve our continuation.

Another big lift was the sponsorship from a major company that allowed us to not worry about space, and infrastructure (Desk, chairs, tables, etc). Which by the way, were top notch, although it’s a bit odd that in the end we couldn’t really used it as intended and end up handling the same projection presentation.

On the other hand we had a lot of things we really missed specially on promotion:

  • Visit universities and high schools, we missed many of them.
  • Academic ambassadors, people that help us from these schools.
  • Visit companies and provide a good outline of what the event is about for them to get there.
  • Promote it on more radio stations, TV shows and newspapers.

We also could have work out better on scientific software as well as games. The demos were something that we could have organize better not to say we missed showing off the VoIP, Media Center (to a degree) and the overall Linux Desktops.

Swag was something that we rushed in the end, but with better support this could have been much better. It was great we got T-shirts but with better swag we would have got USB with free software in it, as well as other things.

In the end what we need to do is also reflected on how this can benefit TQVCancun and I think that invitations were not offered as open as I would have wished for. To invite people to the group and make them members is something that could have helped the survival of the group and that is something we would need to pay more attention to in the future.