Lambdas in Ruby

I had situation where I worked with many different (but in some way similar) collections in Ruby. This collections had very similar methods to search elements by name. In this particular example I decided to use lambda. Let me show you how this looks like. Code which I get looks like this: @first_collection.select do |activity| activity.name == 'name' end This is not bad code but in others places I had similar things. Collections (I mean arrays) and names were only changes. Like this: @sedond_collection.select do |activity| activity.name == 'name1' || activity.name == 'name2' end So I decided to use lambda....…

Global Game Jam

Date: 2016-01-29 17:00 – 2016-01-31 19:00 Place: Cieszyn, PL I really love doing things connecting in technology. This time I was participant in Global Game Jam in Cieszyn. This was my third time. What is Global Game Jam? This is 48 hours hackaton for people which would like to create games. And each year I’m impressed of ideas, talent and projects realization. You can see more here. …

What is git?

Today I would start quick series about Git. This will be 2-3 article about basic of Git. Internet has many different articles and tutorials about Git so I don’t want to do another one. If you like get know more about Git I can recommend 2 courses on CodeSchool about it. Start here. …

Coderetreat 2015 Cracow

Coderetreat 2015 Cracow

In last Saturday I was on Global Day of Coderetreat in Krakow. Coderetreat is one day in year when programmers focus not on delivery new functionality but focus on good code quality. I think this is very important to stop for a moment and think how to be better programmer. And Coderetreat is that moment. How looks this Coderetreat day? All day is divide for 6-7 sessions of coding. In our case it was 6 sessions. In each session we try resolved Game of life problem. This is very simple problem but in Coderetreat main goal is not solving this...…

CoderDojo workshops

Ones a week I’m teaching others at CoderDojo workshops. CoderDojo is a place for young people (not only young by age but also young by mind) which like to learn Computer Science. When I say Computer Science I mean: programming, game and website creation, graphic design, 3D printing, animations, video creation, robots and many many more. Only yours imagination can limit your skills connected to Computer. On this classes is only one rule: Just be cool! CoderDojo is places where everyone feel good and can learn new things. BTW we are looking for new mentors. All people which like this...…