Profile Picture

Sirwan Afifi

Stories from a web developer.

© 2019. Sirwan Afifi All rights reserved.

Testing React Components

comes with a built-in test runner called which is basically a tool for executing unite tests and also reporting the result. To run the test…

Higher-Order Components

Before we get started, we need to understand what a higher-order function is. In JavaScript functions are first-class citizens because they…

Importing JSON files into SQL Server

I was assigned to a task to import a GeoJSON file into a SQL Server database. The file was pretty big; I couldn't even open the file in an…

Using IHostingEnvironment in a test project

Assume that you have a service which accepts as its dependency: Now we wan to be able to load that JSON file inside a test project in order…

Migrating To Gatsby

Jekyll got me into blogging mostly because of its markdown support. When I first saw it, it was clear to me I had to have it. I'd say it was…

Morse code

Morse Code is a set of dots and dashes (short mark, dot or 'dit' (·) and longer mark, dash or 'dah' (-)). Basically, it's a character…