Reduce memory consumption with a custom ActiveRecord attribute

Posted: Apr 11, 2021

In the team I work we try to see what can be improved in our projects before it hits us, performance is one of those topics. In general, I like to play with different profilers. Especially, we are on Heroku, thus if we can optimize something we can...

Automate precaching resources

Posted: Apr 8, 2018

Nobody likes to wait. When a user clicks on a link, they want to get an immediate response. If it takes a while, the user might switch to another tab and completely forget about the opened site which is loading. In fact, it means lost customers for...

Offline Middleman blog

Posted: Jan 27, 2018

There are lots of sites with different content. In most cases, similar information a user looks for can be found on a few resources. Thus, if a site is slow or it doesn't respond, the user will choose another one. To win this competition, your site...

Cost of stubs in tests

Posted: Dec 9, 2017

A topic about stubs in tests appears now and then. There are people who think that stubs/mocks (there are differences between them, but I will refer to them as stubs. I am sorry, this post isn't about differences between them) are very helpful and...

Custom templates in Polymer.js components

Posted: Oct 29, 2016

Polymer.js doesn't provide a straightforward way to use a custom template in place of the template supplied by a component. Also, HTML code embedded into a component doesn't have access to properties of the component.

Sprockets integration into Padrino application

Posted: Apr 16, 2015

For one of my projects I decided to use Padrino instead of Rails. I worked with Sinatra, therefore I thought that Padrino would work for me as well. Actually, I guess even Sinatra matches my needs, but start of a project with Sinatra is slower, because...

How to get rid of legacy code

Posted: Nov 24, 2014

Most of the developers don't like to work with legacy code even when it was created by them. A good developer should grow. If you take a look at code which you wrote last year and you don't want to improve it, it is a sign that you didn't grow since...

Introduction into Whisperer

Posted: Nov 16, 2014

The project I work on consists from a few parts which are written on PHP, Ruby and Java. To write proper acceptance tests on Ruby part, we have been using VCR which stubs external API. In our case we stubbed all interactions with PHP and Java parts...

Introduction into SitePrism.Vcr

Posted: Oct 30, 2013

Last years we hear more and more about SOA (service oriented architecture). Actually, it is very naturally, because it gives you huge flexibility. Instead of coupling all functionality into one monolithic application we can spread functionality on...