Blog - Joe Butler
The important thing is not to stop questioning. Curiosity has its own reason for existing.
Albert Einstein
Simplifying Generic Function calls in Typescript
Leveraging generics in typescript can lead to more verbose code, this can make your codebase more difficult to read and maintain. A quick optimization you can use to reduce the amount of syntactic noise is called type argument inference.
Private Constants in Ruby
While implementing a feature the other day, I noticed a piece of code that was reaching into another class to access a constant. This would be okay for an API like Math.PI, but in this circumstance the calling code was tightly-coupled to the class containing the constant. Remember, we should...
What is a Closure?
You can see closures in different web programming languages such as Ruby, Javascript, ActionScript 3.0 and newer versions of PHP. It is a powerful tool and can be an elegant solution given the right circumstances. With that background in mind, let’s give it a specific definition.