Pokazywanie postów oznaczonych etykietą Ruby. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą Ruby. Pokaż wszystkie posty

18 maja 2013

Prime numbers (in Ruby)

For me it is like back to the basics. Back to the roots. Eratosthenes sieve. I remember when I implemented this algorithm for the first time. It was in a high school and I was feeling like doing a rocket science. Today I would like to look at the algorithm once again but from Ruby perspective.

7 października 2012

Rails architecture by Uncle Bob

I don't know Dear Reader how many Rails applications have you written in your life, but I have only one. However from the very beginning I had this feeling that something is wrong. Unfortunately I was not able to find a clear answer what is wrong and how I can make it better. Then I have found this presentation...

29 maja 2012

Blocks in Ruby

One of the first things that a new Ruby programmer finds interesting in this language are blocks. On first sight they look a little bit weird. However after a first few uses they become as natural as breathing. Ruby blocks are very simple and in the same time very powerful mechanism. That's why I made up my mind to write a short article about them.

20 maja 2012

Code sandwich

Ruby koans is a great way to learn basics of Ruby. For me it was also a chance to meet for the first time a 'Code Sandwich' term. This is not a very popular term but I want to write about it. In my humble opinion it is a very common problem and a name 'code sandwich' fits just accurately. I'm going to show how we can solve it in Java and Ruby.