RSSAmplifier

Blog

{{ Developer Notes }}

Devaneios de um desenvolvedor em construção.

danilobarion1986.github.ioRSS feed ↗10 posts

Latest posts

Ruby Pills: Enums Options

Ruby Enums Ruby does not have native support for enum (as a core module/class or keyword). Many coming from other programming languages may miss this feature (myself included, as I came from C#). Maybe: This does not mean that you cannot represent the enum type in Ruby. There are many ways (like we all like!). In this Ruby Pill, I’ll cover 3 ways to define enum’s in your Ruby code! 1st - A Simple…

Ruby Pills: Dynamic Method Inclusion

Ruby Metaprogramming Ruby is an amazing programming language in many aspects, especially regarding metaprogramming! The fact that everything is an object, give to the programmer the ability to manipulate methods and closures, the inheritance chain classes, callbacks, have modules with common code, and a lot of other nice things! In this Ruby Pill, I’ll cover 3 module callbacks ( included ,…

Ruby Pills: Hash Fetch and Performance

Ruby Hash The Hash class is widely used in Ruby code, due to its key/value structure. It has many interesting methods, aside from most basic ones, like #default and #key? , used to return a default value if the desired key was not found and verify if some key exists, respectively. There are accessor methods like #[] , that return nil if the key doesn’t exist, and #fetch that you raise an error…

Architecture and Tools Decision: Rails + React = BFF

When we began to modernize our company’s main software , we need to choose an architecture that could be as stable as it was for the last 20 years and at the same time, allow us to use one of the best alternatives to build a highly interactive and complex front-end. So, to embrace the innovation while keeping a solid foundation, we decided to work with our main web framework Rails, with the React…

Dia (Quase Mundial) do Rock!

♪♫ Flyyyyy! On your waaaaay! Like an eagle! Fly as hiiiiigh, aaaaaas the suuuun! ♪♫

Desenvolvendo em C# no Linux com .NET Core (Parte 1)

A Microsoft tem cada vez mais declarado seu amor pelo Linux e abraçado o Open Source! Porque não juntar então estes 2 mundos utilizando o (relativamente) recente framework .NET Core lançado pela MS para construir e rodar aplicações C# no Linux?!

Extracting Lambda Source Code

In this post, I’ll show you how to extract the code definition of a Lambda object, using just pure Ruby! But, first things first! What is a lambda in Ruby? A lambda is a special type of Proc, with some little differences in syntax, behavior and functionality, one of them that could be used as an anonymous function. There are many articles with all the details of what a lambda is and its main…

Código Sobre Código Sobre Código…

Olá pessoal! Andei um pouco (muito) sumido, mas não esqueci do blog não! Desde o último post decidi que escreveria o próximo sobre algo mais técnico. Só não conseguia escolher dentre as infinitas possibilidades! Mas afinal pensei: “Esquece o perfeccionismo e escreve logo!”. Então lá vai! Contextualizando Recentemente, precisei desenvolver uma funcionalidade para corrigir um problema tenso de…

Organizando a Bagunça (parte 2)

Olá pessoal! Este é o 2º post da “minissérie” que iniciei aqui.

Organizando a Bagunça (parte 1)

Estava indeciso quanto ao tema do novo post, mas finalmente decidi! Organização e Produtividade! Não sou nenhum expert nestes temas, mas gosto muito do assunto, leio sobre ele e sempre busco aumentar a eficiência na realização de meus projetos pessoais e profissionais. Quero focar em duas questões práticas sobre eles, e que possam ser usadas sem demora! Dividi o post em duas partes, nas quais irei…