Code Tips

How To write an Armstrong number checker

0 comments

Hello there, and for those of you who have read my previous work, welcome back. Now, what is an Armstrong number: “In recreational number theory, a narcissistic number (also known as a pluperfect digital invariant (PPDI), an Armstrong number (after Michael F. Armstrong) or a plus perfect number) is a number that is the sum [...]

How To Write a Custom Decoupled CSV Importer

0 comments

Hey there! Last time I spoke about how to add a bit of microservices style architecture flavor to your monolithic app and the benefits of doing it in such a way. Now I’m going to go through a concrete working example of a modularly built, ‘plug-in and play’, intuitive and reusable CSV importer. We’ll have [...]

Modules and the Method Lookup Path

0 comments

In the previous post “Organizing Your Code With The Help Of Modules” we created our very first outline of a module (though very basic) and mix it in a class via the include method (in this case we can refer to modules as mix-ins). If you haven’t noticed by now, the act of mixing in [...]

Namespace And Namespacing Objects

0 comments

“In many programming languages, namespacing is a technique employed to avoid collisions with other objects or variables in the global namespace. They’re also extremely useful for helping organize blocks of functionality in your application into easily manageable groups that can be uniquely identified.” – Addy Osmani “A Global Namespace is a heterogeneous, enterprise-wide abstraction of [...]