Categories
Articles Javascript

Arguing for the sake of arguments in JavaScript

This article deals with some intricacies revolving around the arguments object, a magical and mysterious creature residing in the functional realms of the Javascript world, which can be summoned anytime in your code by the programming wizards without any spells, incantations or sorcery.

Categories
Articles Javascript

Testing for Primality in Javascript

This article describes a method for checking the primality of an integer n with Javascript, one with order of growth Θ(√n) and a “probabilistic” algorithm with order of growth Θ(log n), based on the famous book Structure & Interpretation of Computer Programs Gerald Jay Sussman and Hal Abelson.

Categories
Articles Javascript

Javascript Refactoring Series: Inline Temp

In this article we take a look at one of the refactoring techniques named as Inline Temp. We will see how to apply these techniques in Javascript code since the original methodology is language agnostic. This is second in the series of articles exploring various refactoring techniques by Martin Fowler.

Categories
Articles Javascript

Javascript Refactoring Series: Inline Function

In this article we take a look at one of the refactoring techniques named as Inline Function originally known as Inline Method. We will see how to apply these techniques in Javascript code since the original methodology is language agnostic. This is second in the series of articles exploring various refactoring techniques by Martin Fowler.