Functional Particularities of Python

This time we’ll explore some of the paradigms of functional programming as applied to Python, specifically. One of the most common constructs to employ in a functional-style Python program is a Generator. Generators are a special class of functions that make writing iterators [1] more easy. When we call a function, a new space in memory is allocated to hold all of the variables that function is concerned with, as well as other data....

July 19, 2018 · 3 min · Rezha Julio

Debug Bad Commit with Binary Search

Let’s say you just pushed out a release of your code to a production environment, you’re getting bug reports about something that wasn’t happening in your development environment, and you can’t imagine why the code is doing that. You go back to your code, and it turns out you can reproduce the issue, but you can’t figure out what is going wrong. The git bisect tool helps to identify the commit that introduced a bug....

July 18, 2018 · 2 min · Rezha Julio

Number Extensions in Javascript

Number benefits from several changes in ES6, providing several of new methods saving us from writing our own potentially error prone implementation. There are quite a lot of methods so here are some of the ones that are likely to have more use: Number.isFinite Determines whether a number is finite (finite means that it could be measured or have a value). Number.isFinite(Infinity); //false Number.isFinite(100); //true Number.isInteger Determines if a number is an integer or not....

July 17, 2018 · 2 min · Rezha Julio

New Blog, New Domain

For the last 2 years, I think I have been guilty of abusing this domain. The domain is rezhajulio.id which is an Indonesian special TLD, yet I have been using it for writing English content (well actually nothing’s wrong with it). Also, there is a domain that I really want: rezhajul.io. It’s really concise, have my name on it and ends with IO (input output) and that sounds so “techie” I think....

July 16, 2018 · 1 min · Rezha Julio

CSS Grid on Production

Today we have new tools/toys like CSS Grid which allows far greater control than we’ve ever had before, but at the same time, it allows us to let go of our content and allow it to find it’s own natural fit within the constraints of our design. Personally, I’ve been looking at CSS Grid as a way to force elements to go where I want them to which is certainly one way to look at it, but it also offers a more natural “fit where I can” approach which I’m beginning to explore and having a lot of fun with....

May 31, 2017 · 2 min · Rezha Julio