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

New interesting data structures in Python 3

Python 3’s uptake is dramatically on the rise rise these days, and I think therefore that it is a good time to take a look at some data structures that Python 3 offers, but that are not available in Python 2. We will take a look at typing.NamedTuple, types.MappingProxyType and types.SimpleNamespace, all of which are new to Python 3. typing.NamedTuple typing.NamedTuple is a supercharged version of the venerable collections.namedtuple and while it was added in Python 3....

May 25, 2017 · 4 min · Rezha Julio