Coming from the Ruby/Rails world I was searching for a way to mock the current time in my Elixir test suite, something like Timecop for Elixir. I didn’t find anything that suited my needs so I decided to give it a go by myself.
In this blog post we will take a look at a simple example of refactoring Elixir
with syntax (called a “special form” in the documentation), and guard
I wanted to have a case insensitive database column to store email address in the open source application I’m working on. I’m using PostgreSQL and there’s a nice extension that does exactly that – citext – so I gave it a try. I spent some time figuring things out so now I’m sharing the knowledge in this blog post.
Working at GitLab – fully remote, asynchronous and distributed company – was a valuable experience. One of the most important things that I learned was the approach to meetings. In fact, remote meetings at GitLab were far more effective than most of on-site meetings that I participated in. Now I’m back in an office, but I think that many principles and rules can be applied in an on-site company as well.
I am really fascinated by the idea of abusing ETag (caching mechanism built into HTTP protocol) for tracking users. It is not that I want to do in a real production application; I just appreciate how simple and clever the “trick” is. Also, not so many people seem to be aware of it.
Ruby on Rails has a good support for Postgres Array type. I really like using this feature when creating a separate database table sounds like over-engineering. In this short post I want to share my solution for the following problem: “find a record for which any of its tags contains a given string”.
I’m bad at marketing products that I created. Just today I had to shut down Codebase Health Check, because I couldn’t get enough customers in the last six months. Fortunately, you have a chance to be much better at marketing than me.
This is your complete guide to removing Action Cable from a Rails 5 app.
Some people need WebSockets in their app while other people do not need it at all or want to use other solution such as message_bus. Keep your application clean and delete Action Cable specific stuff.
Programmers love to approach new business problems thinking about frameworks, libraries, tools or methods which can be used. However, my experience shows that quite the opposite way is most successful – postpone writing the code as long as it’s possible.