I have been trying to port some work I've done in Java to Ruby, to see how it looks and how much code it would take. But in the way I found out that Ruby might not be the best option for this kind of situations.
Let me explain it, this is my pseudo code:
As you can see, the OrderSet has a collection of Order classes, but classes!! Not instances, because in the real application I will have hundred of Orders and I don't want to instantiate a new object for each one of them.
So to keep the memory load very low I handle classes, in that way I can control them, instantiate them and destroy them as much as I want.
Now, I tried to write it in Ruby, but I found out that there's no easy way to add metadata at a class level!!
The closest approach to it that I could find is instance-oriented. I would need a new instance of every Order to make it work....sad.
June 23, 2012
June 15, 2012
Scrum basics
A short presentation I gave about Scrum, I've taken a lot of material from Jurgen Appelo's presentation.
June 14, 2012
Just for the joy of writting it down
I must admit that I'm being sleeping for a while, in my personal life, in my career and left behind the goals that inspired me just a year ago.
But some things changed during the last two months, I started doing things that changed my life. Small things that I thought were lame and not worth doing, here is a list of them:
But I was wrong, that frenetic pace kept me awake and living, I think now I recovered that energy that I always had.
I will try to do the best I can with my life, I will make mistakes and be a total fool sometimes, but I'll learn from it. Because that's the only thing I'm sure I'm capable of...learning.
I still have tons of things to do, to improve, to correct. So much things that I just started wrapping my mind around them, so expect more activity from now on.
But some things changed during the last two months, I started doing things that changed my life. Small things that I thought were lame and not worth doing, here is a list of them:
- I got high rates on my masters degree when I started losing interest on it.
- Improved my jogging-resistance to 40 minutes just by practicing 3 times a week.
- Solved very difficult (difficult for me) software-related problems at work, things that I never imagined that I could do.
- Recover my reading-habit.
- Found the way to drink enough not to get a killing-hangover, and also started enjoying these gathering events more and more.
- Improved my personal relationships at all levels :-D
But I was wrong, that frenetic pace kept me awake and living, I think now I recovered that energy that I always had.
I will try to do the best I can with my life, I will make mistakes and be a total fool sometimes, but I'll learn from it. Because that's the only thing I'm sure I'm capable of...learning.
I still have tons of things to do, to improve, to correct. So much things that I just started wrapping my mind around them, so expect more activity from now on.
Subscribe to:
Posts (Atom)