Omar Rodriguez Software developer An attempt to log my development tips, tricks, and hurdles.

TIL about an unexpected behavior in powershell's ConvertTo-Json

Today I learned about an unexpected behavior in powershell’s ConvertTo-Json. When you pipe more than one object to the ConvertTo-Json cmdlet the output is an array of objects, as expected. When one object, or an array with a single object, is piped to it a single object is outputted.

TIL how to curry in javascript

Today I learned how to make a very simple currying function in javascript. I was already familiar with the concept of currying, however after seeing this really simply currying function in javascript it really cemented the concept in my head.

TIL that javascript arrays are objects

Today I learned that javascript arrays are objects. Typically an array is a contiguous span of memory divided into equal sized slots, where each slot is indexed. This allows for very fast and efficient reading/writing. The javascript array is not this.

TIL about spawning processes without a shell

Today I learned about the differences between spawning a process in a shell and without a shell.

TIL about powershell event handlers

Today I learned how to recognize event handlers in powershell code. I learned how to recognize it by helping a coworker troubleshoot a memory usage issue.

TIL about powershell event handlers feature image Photo Credit: Omar Rodriguez

Increasing my command line efficiency

My command line environment is where I spend a big chunk of my time as a developer. I have noticed a big boost in efficiency by taking some time to customize my command line environment and powershell profile.

Increasing my command line efficiency feature image Photo Credit: Omar Rodriguez

How I finally achieved a meaningful new years resolution

One of my 2019 resolutions was to read at least one book per month. Now I can proudly say I read 22 books from start to finish in 2019. Before this I think I was reading maybe 1-3 books a year. (I’ll admit this post is a bit of a pat on the back for myself :))

How I finally achieved a meaningful new years resolution feature image Photo Credit: Omar Rodriguez

Git the most edited files in a project

This post was inspired from seeing multiple bugs coming from the same file in a project in a short period of time. I could easily see all types of code smells in this particular file. So I had a hypothesis, if I could find the most edited files in the repo I would likely find the files with the most technical debt i.e. most code smells. So I created a very simple powershell script to test my hypothesis.

How to create a zip in Xamarin Android

This solution is specifically for Android using Xamarin because I am using the Java.Util.Zip Class. This solution can just as easily be ported to Java.

Meta post

The purpose of this blog is to try and organize my thoughts and archive my personal tips, tricks, and solutions to every day problems.

-->