Articles
-
Dec 8, 2022
Being a web-developer is one of the coolest jobs in the world. It brings freedom and growth opportunities like no other job in the world. It’s easy to just enjoy the fruits of this craft. But remember with great benefits comes great responsibility.
-
Jan 15, 2022
How to change order of Active Storage has_many_attached attachments
-
Nov 20, 2019
You can use AWS S3 bucket to host static websites. In this article I'll show you how you can set this up with custom subdomains / domains using AWS CLI
-
Feb 22, 2019
Desktop Workspaces are designed to hold multiple applications in different contexts. This article will try to show you how you can organize and access these applications in relation to their responsibilities to boost your productivity.
-
Feb 20, 2019
Quick cheatsheet how to install various technologies for Ruby on Rails application under fresh Ubuntu 18.04 machine (2019 revised article)
-
Feb 14, 2019
In programming there is a powerful concept called "duck typing" in which you copmose objects without the need to worry what kind of type they are. You just call public interfaces methods and you expect them to "quack" like a duck. It walks like a duck and it quacks like a duck, then it must be a duck.
-
Dec 6, 2018
AWS Lambda now Supports Ruby natively. That means we can build serverless applications with the language we all love. Not only that doh. You can run small Sinatra microservices with AWS serverless approach and in this article we will have a look how/why
-
Aug 20, 2018
Is Ruby on Rails still relevant technology to learn in 2018 ?
-
Aug 9, 2018
Step by step article for Junior Rails developers on how to configure RSpec in Ruby on Rails, Factory Bot and Database Cleaner
-
Aug 3, 2018
Our tests (same as our code) needs to be maintained and clean. Therefore we often try to reuse parts of application in the tests. This may lead to several problems that we may get away with if we just tested the most primitive objects we can like "Strings, Integers" etc.
-
Jun 14, 2018
How to secure Rails API for SPA with CSRF protection. Is it needed for token headers (e.g.: Bearer token, JWT) ? Or just for session cookies?
-
May 24, 2018
In this Article I'll show you how to organize business classes in Ruby on Rails so your application can benefit from Bounded Contexts while still keep Rails conventions and best practices. Solution is also friendly for junior developers.
-
May 14, 2018
In Ruby there are several ways how to define a class method. In this article I'll go trough 4 major ways and explain what class methods really are.
-
Mar 29, 2018
HTTP Explicit contracts are straight forward way how to write fixtures like tests for consuming 3rd party APIs. They can be easier to maintain compare to mocks
-
Jan 24, 2018
There are different ways to increase your performance in Ruby on Rails application, there is no silver bullet. In this article I'll show some of the techniques.
-
Dec 23, 2017
When building a web-application you may loose track of what data is controller receiving from interface. We will have a look on how to design the code so that we will communicate our intentions better for our colegues
-
Dec 19, 2017
Ruby is all about Objects. But in this article we will have a look on how your Ruby and Ruby on Rails application team can benefit from more more functional flavor of programming.
-
Nov 28, 2017
Ruby method #call is common interface protocol for calling Lambdas, Method objects, Procs,... In this article I'll try to present why it's important to name the run method #call in your custom class objects
-
Oct 12, 2017
Single Page application is awesome paradigm but because they communicate with APIs there is lot of confusion around what security measures are needed and what are unnecessary. In this article I'll try to explain when is CSRF protection needed.
-
Oct 5, 2017
Cloud Coding is a method of developing software on a remote VM. In this article I'll give you some insight on benefits and the flow.
-
Jul 5, 2017
Discussion on Rails Asset Pipeline compile in Docker image so that CDN can pick up assets.
-
May 2, 2017
Authorization (unlike Authentication) is really complex topic that may go wrong when using generic solutions. In this article I will show you how to write Policy Objects specific to your business logic.
-
May 2, 2017
How to build Gemfile with private gems with bundler inside docker image
-
Apr 27, 2017
Lot of time developers just write the logical evaluation for the test but don't quite express their intention. RSpec is really expressive testing library. This article is first article in my article series on \"Expressive testing with RSpec\" and will help you to better use describe and context blocks and be able to DRY the tests.
-
Feb 27, 2017
Ruby on Rails ActiveRecord::Relation (or Arel) is really handy tool to create complex SQL calls. In this article I'll show you several tricks I've came across over the years and show you how to combine them to Query Objects and Query Interfaces
-
Dec 13, 2016
Ruby on Rails developers tend to think that HTTP method POST represents Create and PUT means Update. Well, not really. The CRUD mapping of modern web-frameworks just limits the scope of this HTTP methods for sake of simplicity in code design. Read more in this article what they really stand for.
-
Dec 12, 2016
There is still lot of confusion on PUT vs PATCH HTTP methods and the JSON syntax. In this article I will try to explain the difference and present pragmatic solution to PATCH syntax problems.
-
Nov 27, 2016
Quick cheatsheet how to install various technologies for Ruby on Rails application under fresh Ubuntu 16.04 machine
-
Nov 15, 2016
In this article I will show you how to Set up AWS Elastic Beanstalk Docker environment, RDS, ElasticCache and Security Groups for demo Ruby on Rails application.
-
Oct 10, 2016
How to properly set up Cloudflare with Route 53
-
Oct 4, 2016
CORS may be bit tricky (not only) for Ruby on Rails application. In this article we will have a look on some problems and solutions I've dealt with.
-
Sep 29, 2016
In this article we will bulid simple session based authentication for one user for Rails from scratch.
-
Aug 22, 2016
In Ruby on Rails there are many tools how to test your JSON API, but you don't necessary need to install any gems. RSpec provide really decent tool set for many scenarios including APIs.
-
Aug 22, 2016
How to run post and pre deployment scripts on AWS Elastic Beanstalk running (not only) Docker environment
-
Aug 2, 2016
Ruby has couple of nifty tricks up its sleeves to deal with collection objects so that they map your domain. In this article we will look on Enumerator, Lazy Enumerator and Enumerable and how to implement API collection objects in Plain Ruby so that they can be used in similar way as you would use Rails scopes
-
Jun 30, 2016
RSpec 3 be_within matcher for comparing values in delta range
-
Jun 29, 2016
Rendering Paperclip attachments / urls vith Elasticsearch without ActiveRecord calls.
-
May 12, 2016
Several debugging tricks for AWS Elastic Beanstalk runing Docker
-
Apr 12, 2016
Several debugging tricks for Ruby and Ruby or Rails developers
-
Mar 2, 2016
After while our machine, Github, server, ... gets piled with old unneeded stuff, here are sme tricks & commands I use for Spring Cleaning in my machine.
-
Feb 28, 2016
Ruby on Rails has a decent way how to ensure that invalid params won't end up in DB. Problem with Rails Validators is that they are bound to a class rather than Instance object. In this article we will have a look on few workarounds to do context validations.
-
Feb 2, 2016
Problem I had where NginX was passing wrong HTTP_X_FORWARDED_HOST to Rails and me spend several hours debugging.
-
Feb 2, 2016
Ten Finger Typing Technique, Dvorak layout, Split Keyboards and Vim. All this are Techniques and Life Hacks that can improve your productivity and development experience.
-
Jan 16, 2016
This article will show you a simple way how to set up deployment of a WordPress website via CodeShip
-
Jan 12, 2016
You don't need expensive laptop to be a web-developer or sys-admin guy, all you need is an attitude to get things done. In this article I'll give you my experience on developing commercial web-application backend via chromebook
-
Jan 10, 2016
Docker images can be build either on local computer or via hosted build servers. Although we all are fans of cloud automation, should we really let hosted solutions build the images for us? Isn't that against Docker philosophy?
-
Aug 13, 2015
In coding / software-developing world a rule called Scissors Rule exist several years. Funny enough I couldn't google single article about it :) . In this article I'm summarizing it's base principles
-
Jul 2, 2015
Ruby provide so many easy ways how to create a scheduled job (Whenever gem, Daemons gem, ...) but what if you want to configure something really simple with plain cron along rbenv?
-
May 8, 2015
Rails provide option force_ssl as a global seting and as a controller method. They act the same way in terms of redirect to https but have a huge security affect on cookie security.
-
Apr 23, 2015
In Ruby is easy to pull "ancestor" classes of a class. However once developer want to work with "descendants" he may find it's not that easy. This article is providing a way how to look at Ruby ancestor tree
-
Feb 20, 2015
How to pass JSON to HTML element data attribute
-
Jun 2, 2014
There is overall confidence that seed files (rake db:seed) don't need any additional testing. But in this article I will show you easy way how to add simple layer of tests during the seed process.
-
May 29, 2014
Proper way how to translate Rails validation messages
-
May 21, 2014
Rails mail interceptor to prevent sending emails from being sent for different environments using custom environment configuration options.
-
May 19, 2014
Improve your test-suite performance by properly using before(:all), after(:all) RSpec hooks so that you trigger less database queries.
-
May 19, 2014
How to stream images with Ruby on Rails controller so that you can fake that images are located on your server.
-
Apr 15, 2014
Jenkins CI to test your Rails app with RSpec Cucumber (Spinach), Selenium and also doing tested deployments.
-
Apr 14, 2014
Ideally when you're running tests you don't want to cache anything, but there are some cases that you need to make sure stuff is working with caching enabled. This article will show you how to temporary enable Dalli cache for some of your specs
-
Mar 3, 2014
Set up rbenv on Ubuntu
-
Feb 28, 2014
Step by step manual to install NginX on Ubuntu 12.04 (Precise) from source with SNI support without headache.
-
Jan 16, 2014
Thoughtbots team behind gem shoulda_matches have decide to depricate several matchers in version 2.0. Lot of people still find them useful. Read more to see alternatives.