On being tired

And deploying code which let anyone using any login and password (and by any I mean really any combination, even asdf/asdf worked) authenticate. And have access to the administration panel. No fun. At least at first, when I shook my head with disbelief over the deployed code. How could I not check it… How could I not write even the simplest unit test… Quick fix and few minutes later the site was fixed. After that I’ve simply burst in laughter over my stupidity.

Thankfully hardly anyone ever tries to login to this particular site (login page has both no-index and no-follow so it does not attract google scripters) so despite the fact that this bug has been live for a little over 12 hours no one broke in.

Steve Yegge. Again

Steve Yegge (emphasis added):

So how do you make yourself a superstar? Never stop learning. I’ve heard people say they think this position is a crock, that it’s ludicrous, that you couldn’t possibly spend your whole career learning new things.

But I think differently. I think every program you write should be the hardest you’ve ever written. And that’s what I blog about, mostly. Improving yourself.

It got me thinking today and the more I think about it the more sense it makes. I would go even further with this and say that writing not just hard programs but simply more complicated code is good for you. Not obfuscated nor unreadable but code which is just a bit harder to understand. What I mean is using new constructs, new methodologies, shorter one-liners (but not those super-obfuscated Perl ones), etc.

There are lots of people who will tell you that you should write the simplest code possible (even despite the obvious bloat) because this results in a more maintainable application. This is of course true, but should the maintainability be the ultimate goal? I think that self-improvement should be a higher placed goal. And I think that you self-improve by writing code you need more time to comprehend because the harder code you write now and the more time you spend understanding it in the future the less complicated it becomes. Over time. And that is progress. That is self-improvement. Plus, as a side effect of this, your code is usually more concise.

Now going back to refactoring one of my projects

Top 10 movies of 2007

Just like for 2006 and 2005 here are ten movies I’ve seen in 2007 that completely blew my mind:

  1. Children of Men (2006)
  2. Mr. Brooks (2007)
  3. The Prestige (2006)
  4. The Pursuit of Happyness (2006)
  5. Stella che non c’è, La (2006)
  6. Zwartboek (2006)
  7. Ostrov (2006)
  8. Reign Over Me (2007)
  9. I Am Legend (2007)
  10. The Namesake (2006)

As usual, Hollywood movies occupy most of the list. 6 out of 10 places to be exact. Nothing changes.

Will Smith man of the year? Surely, he’s already a legend.

Top 25 music of 2007

Just like last year and the year before – here are my favourite music tunes of 2007:

  1. Monrose – Strictly Physical
  2. Mika – Relax (Take It Easy)
  3. Monrose – Hot Summer
  4. Strata – Cocaine (We’re All Going To Hell)
  5. Nelly Furtado – Say It Right
  6. Randy Crawford – When I Get Over You
  7. Sharam – Patt (Party All The Time)
  8. The Jet Set – Just Call Me
  9. Therapy – Diane
  10. Good Charlotte – Keep Your Hands Off My Girl
  11. Marc O’Tool – Let It Go
  12. iio – Is It Love?
  13. Tom Helsen – Sun In Her Eyes
  14. Timbaland ft. Keri Hilson & Doe – The Way I Are
  15. The Disco Boys – For You
  16. Christina Aguilera – Get Mine Get Yours
  17. Rihanna ft. Jay-Z – Umbrella
  18. Mustafa Sandal ft. Gentleman – Isyankar
  19. D-Jon by way of KL – It Skips But It’s Awesome
  20. Sandra – All You Zombies
  21. Sunrise Avenue – Forever Yours
  22. Dead Can Dance – The Host of Seraphim
  23. Omarion – Ice Box
  24. Meck ft. Dino – Feels Like Home
  25. Owal ft. Marta Florek – Szukam (The Nuclear Headz Remix)

Dance and house occupy 80% of this list. As usual.

TylkoZyczenia.pl – My third rails app available to the public

TylkoZyczenia.pl – my new Rails website is now live. It’s Polish language only and it will probably stay this way. Basically, it’s a site with collections of wishes for various occasions, like Christmas, New Year, birthdays and so on. At the moment it’s not very different from other, similar websites (and there are lots of them in Poland) apart from the fact that my design, in my humble opinion, is leaner and much more clearer/simple than the others (aka simplicity all the way). I have some ideas to make this site different (read: better) from the others, though. Stay tuned.

It took me about 2 months of intensive, after-hours work. It’s the first version, which is usable to be online (meaning that basic stuff, like registering and adding new wishes work. The TODO list is quite big…). Enjoy!

Tylko życzenia!

32nd Polish Film Festival Gdynia ‘2007

32. Polish Film Festival. 5 days of screenings. 18 movies seen. I had the chance to experience some of the best Polish cinema ever. I’m a big movie fan and as I’m from Poland I try to watch every possible Polish movie I can (and no, I’m not that patriotic, I was thinking about emigration many times…). Each year it’s different. There were better years, there were worse years. But this year the festival has surpassed my expectations by a very large margin. Most movies were outstanding. This was one of the best if not the best Polish Film Festival ever. Every Polish movie I have seen was either very good or great. There was only one bad movie in the whole main competition, namely Braciszek, so there is no usual Top 5 of the worst festival movies. Here are the best ones:

The best movies of the festival (TOP 5):

  1. Katyń (2007)
  2. Korowód (2007)
  3. Sztuczki (2007)
  4. Aleja gówniarzy (2007)
  5. Pora umierać (2007)

I miss those festival days so much…

During the festival I was also a photographer (or rather a photo reporter). Here are the links to my work:

And since I could not decide which pictures to put up here, I’m presenting you the best three of the many I took:

Agnieszka Warchulska

Agnieszka Warchulska

Julia Pietrucha

Julia Pietrucha

Damian Ul

Damian Ul

The three pictures above are Copyright © 2007 Onet.pl