Skip to content
  • Home
  • About
Twitter LinkedIn GitHub Stack Overflow

frontdeveloper.pl

A developer taking advantage of the best pratices.

Author: Igor Springer

27 January 2019 by Igor Springer on Ruby, Tips & Tricks

Not-so-private constants in Ruby

Using constants is idiomatic for Ruby. We use them to store something meaningful (a well-suited name is very important), connected with a class that holds it. Consequently, we make our code easier to reason about, avoid duplication and, very often, more performant.

Read more...
 
16 January 2019 by Igor Springer on Performance, Ruby

Is `Array` the only option for storing elements in Ruby?

Array class is one of the most commonly used Ruby class in day-to-day development. Enumerable module adds a comprehensive set of methods which makes playing with arrays a pleasant activity. I have just written set deliberately.

Read more...
 
7 January 2019 by Igor Springer on Ruby on Rails, Stability

Common mistakes that cause Ruby on Rails apps outages

Everybody makes mistakes. Some of them are caught early in a deployment pipeline: during writing code, testing it locally or code review process. Unfortunately, some hide cleverly and pop up on the production environment.

Read more...
 
20 November 2018 by Igor Springer on Ruby, Today I Learned

Ruby `allocate` method

TIL that Ruby, or to be more precise Class class, offers allocate public instance method.

Read more...
 
24 October 2018 by Igor Springer on Ruby on Rails, Today I Learned

`ActiveSupport::ArrayInquirer` and even more Rails magic

In the previous article, we dived into ActiveSupport::StringInquirer class and superpowers it gives to String objects.  After I had published that article I decided to take another look at the ActiveSupport module and to my surprise, I found something even more interesting, ActiveSupport::ArrayInquirer class.

Read more...
 
17 October 2018 by Igor Springer on Ruby on Rails, Today I Learned

`ActiveSupport::StringInquirer` magic

Rails magic is a widespread term among developers working with Ruby on Rails application. Is it an overstatement? Well, it depends. 

Read more...
 
10 October 2018 by Igor Springer on Ruby, Today I Learned

How to log HTTParty requests

Today I learned that HTTParty gem has a built-in option for enabling logging details of all requests made by the gem.

Read more...
 
3 October 2018 by Igor Springer on Ruby on Rails, Security

5 security issues in Ruby on Rails apps from real life

…and how to fix them 🙂

Read more...
 
16 August 2018 by Igor Springer on Git, Tips & Tricks

Find out when a file was removed from GitHub repo

I was looking for a file in GitHub repo, but didn’t manage to find it. How to check if a file was in a repository and/or when it was removed?

Read more...
 
26 October 2017 by Igor Springer on Ruby, Tips & Tricks

Updating a single gem at a time

If you have Gemfile file in your repository you know what Bundler is.

Read more...
 
Older Posts →
Page 1 of 2

Recent Posts

  • Not-so-private constants in Ruby
  • Is `Array` the only option for storing elements in Ruby?
  • Common mistakes that cause Ruby on Rails apps outages
  • Ruby `allocate` method
  • `ActiveSupport::ArrayInquirer` and even more Rails magic

Categories

  • EmberJS
  • Git
  • Performance
  • Ruby
  • Ruby on Rails
  • Security
  • Stability
  • Tips & Tricks
  • Today I Learned
 
Subscribe!
Copyright © Igor Springer