RSSAmplifier

Blog

Pear Programming

A blog where I put any experiments and thoughts concerning programming, technology and, maybe, some opinions on other topics.

pearprogramming.blogRSS feed ↗8 posts

Latest posts

Building In The Open

It’s been a while since I’ve posted anything and now I’ve decided to pick this up again. One of the things that always stumped me was finding the appropriate content to write about. I had heard of building in the open before and always thought it interesting so I decided to try my hand at that. I have many reservations around doing this, especially because I tend to start things and never finish…

Growing Software

Back when I was young and dumb, I would avidly consume a lot of content related to programming: podcasts, books, you name it. At the time, there were many ideas floating around concerning how we should write code and the ones that really lived in my brain, rent free, were the principles exposed by Uncle Bob in Clean Code and in Clean Architecture. It was just beautiful. Everything nicely aligned…

A Matter of Order

Many times we encounter an apparently simple problem: I need this list of items to be ordered by X attribute. How do I do it? Now, for many cases it’s just a matter of sorting or, preferably, adding a call to order in your ActiveRecord query. For example: User . order ( :name ) But, what if I want to order first by a given status, say, a done todo item (yes, that was my actual case), and if the…

I built a Bitcoin RPC client in Ruby!

It’s been a long time since I posted anything. The reason being, I really couldn’t think of anything worth sharing. But I finally have something. I made a bitcoin RPC client in Ruby. Bitcoinr. ‘r’ for Ruby and for pronouncing it “Bitcoiner”. Now, I do know there is already such a gem called bitcoin-ruby , but it hasn’t been updated in a while (5 years) and I wanted to make my own client. Why?…

Dynamically adding associations with Live View

Sometimes we have entities that are associated with a form of has many association and we want to be able to, on the same form we create one entity, create one or more of it’s associated entities. In other words, we want nested forms. Ordinarily we’d need to write quite a bit of javascript to make this work but with live view we get to do things differently. And in an easier way. The tool for the…

Writing an 8086 assembly decoder - Part I

introduction As part of the work for the Performance Aware Programming course, we are asked to implement a simple program to decode binaries generated for the old 8086 and 8088 intel processors. This has been one of the most interesting things I’ve ever done. First thing we needed to decode a simple register to register mov instruction. There is ample material on the web. For one, the course…

Building this site

tl;dr This is kind of where I started: And this is where I got: motivation So, basically, I’ve been taking notes of the things I do with my programming time in order to be more organized and to slowly build a knowledge base, if you will, that I could later reference and, of course, use it to make my CV look cool. I’ve been beating around the bush for this project for the longest time. I tried out…

Hello, World!

Not much to say for this one except for: Hey there! As I’ve described elsewhere in this site, this blog will serve as a space for me to share my explorations and thoughts concerning programming, both in and out of work. I might insert an article on a completely unrelated thing every now and then, but no promises. Of course, since this post is called hello, world! , I’m just going to leave an…