Why I do not use instance variables in my Ruby classes anymore?

You can create a new class in many ways. From one point of view, this is awesome. You can be creative and adjust your code to your needs. On the other hand, it is hard to choose the best option. It can be even overwhelming, especially when you just started learning programming. That’s why I would like to show you some quick tips, how to improve your classes on a very basic level.

Why you should not use mailers inside Rails model?

Sending emails in web application to users is very often process. We send emails related to registration, new changes in application, advertising, last activities or friends’ invitations. This is very common. Even we create that functionality in ours apps frequently, we still have bugs there. I would like to share with you one of the bugs examples.

Wroclove.rb 2019

Wroclove.rb 2019

In my opinion, conferences are one of the most awesome ways to get to know programming community. You can meet new people or someone you already know, discovers something new or just get more knowledge about some topics. Even if you cannot be a part of the conference, I really recommend you to check out the videos after conferences. However, there will be one missing part - a community factor. I felt like that, when I was starting my programming adventure. As if I was alone. Conferences, workshops and hackathons gave me that feeling of being a part of something...

Operator precedence in Ruby

The order of math operations is very important in programming language. If you don’t know them well, you can get completely different results, than you expect. And your code can be just wrong. You need to know the rules. Is the order similar like in math? Or maybe the algebraic expression is interpreted from the left to the right? Do you know how does this look like in Ruby? Let’s check it.

Global Game Jam Cieszyn 2019

Global Game Jam is an annual game hackathon. It took a place in many countries at the same time all over the world. People like designers, sound creators, programmers sit together to create games in 48h. The main purpose of this game jam is to innovate, experiment and collaborate. Each year, participants get a new theme for the game. They try to use this theme as inspiration for game storyline. After a whole weekend of work the hackathon participants put the results of their work to Global Game Jam website. ‘Til now I attend in three game jams in Cieszyn....

Pattern matching in Elixir - basics

Elixir is a functional language, created by José Valim in 2012, runs on the Erlang virtual machine. If you want to know more about Elixir, go to its Elixir - official website. I would like to mention one more thing. It is Rails and Ruby reference here. José is one of the members of Rails Core Team.

Small code smells

I think every programmer, at least at some point, wanted to resolve some big problems, focus on big architecture and be the one, who will fix the entire world. Did you ever feel that way? I did, more than once. It’s funny because at that moment I feel that I can change application completely, for the better of course ;] I can do some refactoring here and there. I can do that alone, without any help. I see the solution inside my head. It is almost done. But after this moment of excitement, I know that this is a daily...

Regular expressions - what can go wrong?

Someone said: If you have a problem, use regular expressions. You will have two problems. That’s true. At least in some cases. As a programmer, we should be responsible for our code. We should think twice about all possible usage of our code. And also, do tests for it ;]. Today I would like to share an example with using regular expressions, but without enough preparation and testing. I would like to show what was wrong and how I fixed it. This is a case study. I will not introduce the concept of regular expressions, but I will show you,...