home icon contact icon rss icon

Archive for code monkey

time tracking

I was listening to the Toy Doll’s version of Europe’s “the final countdown” – which is much much better than the cheesy original one, and it hit me – I want to make a time tracking application, but not one that you would take too seriously :D

I guess, I will start doing that soon, maybe one with the simplest interface possible, and just a few features. Hopefully I can make something that can be extended by other applications through some kind of API, since that is pretty much what I’m doing at work at the moment.

define: WFH

Working from home is nice and all, but it gets crazy pretty fast. Since I tend to work better within the silence of the night, I end up staying up all night long, and zombie’ing during the day.

For instance, “yesterday” I passed out on my keyboard at 5am, and someone woke me up at 8am… So I got up and started working again… or at least reading all the crap I read every day.

And why don’t you sleep during the day, you ask. I can’t! Given that is really hard for me to fall asleep when I want to, and that people don’t remember you live in a different schedule, so they wake me up, they call me and they yell at me for being sleepy. And they say my life is easy…

I feel like a vampire being chased by hunters all the time, but not in the cool sexy way.. more like ARGH the light is killing me – live me alone stupid hunter, you can’t kill me.

Not to mention I eat a lot more… at least I haven’t smoked in weeks now. Kudos for me.

rspecs

I just watched the peepcode #18 talking about rspecs’ stories, and I must say I am surprised. I wasn’t really expecting that much of this feature. Specially because I know how useful that would be for someone like me (I have focus issues). But, even for really large and boring projects, it’s like staying on track on rails haha (ok, I lol’d for a second, leave me alone).

For instance, take a look at this:


require 'rubygems'
require 'spec/story'
steps_for (:string_manipulation) do

  # Given the string PeepCode
  Given("the string $string") do |string|
    @string = string
  end

  # When the string is reversed
  When("the string is reversed") do
    @string.reverse!
  end

  # Then the result should be edocpeeP
  Then("the string should be $result") do |result|
    @string.should == result
  end
end

Isn’t that extremely cool? I liked it.

But it still feels weird to think of me making something like that before I start coding something.

It’s really annoying sometimes to start a project without any kind of organization like I did several times in the past, for several reasons, but it feels like such a hard evolution, like an embryo gaining multiple functionalities during weeks before it even takes shape. And getting fully ready months after that.

NIGHTMARE.

I think I lost too many brain cells to that, and to booze.

poetry #1

about relationships…


  retries = 0
  begin
    # do your thing here
  rescue
    retries += 1
    puts "shame on "+(retries == 1)? "me" : "you" 
    retry unless retries > 2
  end

Ok, I know it is still kind of lame, but you get the point.

google code jam

I’ve never really tried to solve the logic puzzles google presents for this “tournament”, at least not until last week, when I signed in for the next one.

And trying the practice problems I realized a few things:
  • I don’t remember basic math sometimes
  • I have a lot to learn about algorithms
  • I suck

I managed to solve one of the practice challenges, but I still don’t really feel I beat it… It was an ugly solution for a really “simple” problem.