In one of my last articles I have written about my new challenge. To be a speaker at a conference. This happened two times at local editions of 4Developers in Krakow and in Katowice. It was for me interesting experience, especially that this audience doesn’t know Ruby as programming language too well. I had a chance to share my knowledge about Ruby and good programming practices with them. In the near future there are going to be two more local editions of 4Developers. And because of that I have a surprise for you which is prepared together with 4Developers organizers....
Iterators in Ruby
Ruby as other programming languages has many ways to repeat instructions. We can use loops for that. Loops like loop, while, until or even for. This is very useful, but Ruby has also something like iterators. Iterators are even more awesome than loops. In Ruby you have many iterators with some specific destiny. You can use each, map, collect, select, find, times or even more. But wait! When should I choose each and when should I choose map? This is a good question! And I’m going to answer it. Basic terms Before we start, let me explain you basic terms...
Normally I’m quite active in Rails Girls community. I’m a mentor and an organizer, and also a speaker at Rails Girls workshops. In this year is a little bit different. I spend less time supporting Rails Girls events, but I challenged myself in a different way. I started sending my proposals to the conferences. I wanted to be a speaker at more than just local community groups or Rails Girls events.
Functional programming in Ruby
Ruby is an object oriented language. That doesn’t mean we cannot do some functional programming in Ruby. When you take a look closer to the history of the Ruby language, you can find out, that Ruby was influenced by other languages like Perl, Smalltalk, Eiffel, Ada, Basic or Lisp. Because of this different inspirations we can find in Ruby not only object oriented concepts, but also a little bit of functional programming.
Ruby pattern matching
Some time ago I wrote an article about Pattern matching in Elixir. I really like this idea. Now from Ruby version 2.7 we have pattern matching in Ruby!!! It is not the same like in Elixir, but it is a nice feature to have. Keep in mind that this is still an experimental feature, so it can change in the future versions of Ruby. Let’s check out what we can do with pattern matching in Ruby.
How to become a programmer?
I’ve been working in the programming world since 2011. Before then, I spent about 6 years searching my own life path. When I was starting this adventure, my goal was completely different. I wanted to be a math teacher. During those 6 years, in most cases, I didn’t know what I was doing. Where should I spent my time? On what should I focus? I studied hard, but to be honest, I didn’t know where all this will end. Especially when some of my plans failed. I put more details about my journey in about me section, check it out...
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.