O. Valadares' Blog

Otavio Henrique's Blog

Demystifying Linked Lists / Complete tutorial/implementation with TDD

with a lot of images to easy understand

This text is not recommended for People who have solid knowledge of Data Structures and Linked Lists People who don’t know ruby and object oriented programming basics What I’ll explain on t...

each, map, select in ruby? Understanding Enumerable

stop guessing forever

When you’re starting with ruby programming, a lot of people (and me too), usually have questions about the difference between ruby .map, .select, .collect, .each and many others enumerables. Each ...

Understanding basic of Big O notation

without a lot of mathematic

Big O notation is a famous topic of computer science, but this topic still afraid a lot of people. Some programmers don’t have a complete cs degree and never studied this, and those who have studie...

Understanding rails basic CoC under scaffold for begginers

Simple tutorial for begginer about rails CoC

Rails is a framework where almost everything is based on convention over configuraton (CoC) philosofy. Many begginers with rails framework don’t understand exactly what rails do with CoC to build a...

Understanding Law of Demeter

Understanding Law of Demeter

During my studies of object oriented programming and good practices, one law/practice have gained my attention, and this was the Law of Demeter (LoD). But why this law have gained my attention so e...

Creating simple REST API with Rails 5

Creating simple REST API with Rails 5

On this post I’ll teach how to make an rest api in few minutes using rails 5 api only, I know this is to late (ruby 5 was released in more than year ago), but I’ll try to make a good tut...

So, I started to use Vim

Since I started studying programming, I have heard about use Vim to code, but I have always used IDEs such as Visual Studio, CLion, IntelliJ, Eclipse, NetBeans, or text editor like Sublime and At...

Why should every programmer learn functional programming?

Almost all people on their first contact with programming, starts with imperative languages, like, C/C++, Java, Ruby, C# among many others, I don’t know excatly why, I think almost all professors o...

Simple Enemy AI System for Unity3D

In this post I am going to explain how I have developed a simple AI system for the enemies of my final project on technical college. The idea is a simple script that made the enemy’s walks randomly...