Chat Application with Rails 5 and React

One of the recent projects I worked on was called Cliizii, which is an online marketing platform. This was a big project that contained several parts, one of which was a chat platform. Even though the dashboard platform was written using AngularJS, we decided that, for the chat part, ReactJS would be a better fit. … Continue reading

Different sides of Ruby development: OpenGL

When I’m trying to take a break from web development, I like to build something new and uncommon in Ruby programming. Ruby is typically known for web services, APIs and other web-related development. But with some time, you can build many other types of software. After creating, I started researching Ruby applications that use 3D graphics. … Continue reading

Gamedev on Ruby? Why not!

This article isn’t about big games with sophisticated graphics, nor will I be creating something like MMORPG (even though, I think it’s possible). In this article, I will be creating a terminal Snake Game. I know a lot of developers; including myself, who got started in programming because they were crazy about games. They wanted … Continue reading

Dynamically Compile Stylesheets with Rails and Sass

One of the latest challenges that I had, was to create “Custom style sheets for each user” that user can generate to style his page. This blog post will be right about how I managed it and what “underground rocks” I faced. Basic Setup First of all, we need some basic test app before we … Continue reading

Remove N+1 queries in your Ruby on Rails app

Introduction Ever wondered why your page loads slower than it should when you do simple data representation or iteration over a bunch of data? One answer might be that you have the N+1 problem which slows your page significantly. But what is that N+1 problem and how to resolve it? That is what we will … Continue reading

A brief overview of Ruby hash

This will be a brief overview of the hash data structure, how it is implemented and how it can be manipulated in Ruby. What is a Hash? A Hash is a data structure that organizes data in key-value pairs. It is also referred to as a dictionary or associative array. These properties of a hash … Continue reading

Possible chess knights movements using minimax algorithm

While at high school, I had been assigned to make a two-person game in Artificial Intelligence studies based on chess figure – knight, where one player is human and other is a computer on 4×4 field. Also, you can’t step on the same field where you or computer has already been. At first, I had … Continue reading

Array is one of the workhorses in Ruby

In this post, I will dive into Arrays. There are several methods we use every day, methods we use sometimes and methods we don’t know they even exist. Basics It’s a boring definition, but we all need to remember it: Array indexing starts at 0. A negative index is assumed to be relative to the … Continue reading

Observer pattern in 3 languages – Ruby, C# and Elixir

The goal of this article is to show the differences in thinking that arise when you develop your application design using different languages and language paradigms. We will have a dynamic object-oriented language (Ruby), static object-oriented language (C#) and functional actor model-based dynamic language (Elixir). I may speculate that this might be interesting to people who … Continue reading

Using Neo4j with Ruby on Rails

First of all, what is Neo4j? To sum this up, Neo4j is an open-source NoSQL graph database implemented in Java and Scala. It’s development started on 2003, but it got available as an open source database only in 2007. You can see it on GitHub. Neo4j is one of the market leading graph databases, you … Continue reading

From Ruby to C#

I started my career as Ruby developer and I have not been in C++, Java (except for some Clojure) or C# land. Here at Diatom most of the people are .NET developers and I was selling them Ruby and they were selling me C#. In this post, I wanted to share how I got convinced … Continue reading