-
"Hello, World!" in C#
A "Hello, World!" program in C# can be written with a static Main method of a class, and calling the WriteLine method of the static System.Console class to send the "Hello, World!" string to the standard output stream.
-
"Hello, World!" in C++
A "Hello, World!" program in C++ can be written with a main function and using the insertion operator << to send the "Hello, World!" string to the std::cout stream buffer.
-
"Hello, World!" in C
A "Hello, World!" program in C can be written by calling the puts function to send the "Hello, World!" string to the standard output stream.
-
JavaScript countdown using localStorage
Using localStorage, it's possible to implement a countdown clock in JavaScript that survives a reboot of the user's computer. However, it's not possible to know when the user clears their localStorage contents.
-
Formatting a truncated float in JavaScript
By combining multiplication, division, and Math.floor(), it is possible to truncate a floating point number to a chosen number of decimals in JavaScript. Here, I explain every step of the way, and show how it's done in a one-liner.
-
The State of Frontend Web Development in 2015
2015 saw major leaps in frontend web development, with the rise of ES6, React.js, Babel, Webpack, the end of Internet Explorer, and Flexbox.
-
Reinventing a PHP MVC framework, part 4 of 4
In this fourth part, I end up with a framework that is useable, although there is still a long way to go before it is practical. I explore URL rewriting in Apache and Microsoft IIS for creating much nicer URLs.
-
Reinventing a PHP MVC framework, part 3 of 4
In this article, I explore the class loading mechanism in PHP, and use it to automatically load the correct Controller class for my MVC implementation. This uses reflection, which is notoriously difficult to unit-test in PHP, so unfortunately I break TDD principles for now.
-
Reinventing a PHP MVC framework, part 2 of 4
Now I start working on the request and response mechanisms of my PHP MVC framework. Little by little, the framework grows in a test-driven way, and the things I haven't made yet are mocked for now.
-
Reinventing a PHP MVC framework, part 1 of 4
This is the first article in a series where I build a functioning "replica" of ASP.NET MVC in PHP 7. I go through the expected results, and start writing unit tests for the behavior I want to see in the MVC framework.
-
First two parts Artsy published
I'm remaking the second part of the iconic 1993 Amige demo Sanity by Arte.
-
Phenomenal & Enigmatic, part 4 of 4
I'm drawing 2D and 3D animations on a rotating 3D cube using JavaScript and Canvas. Inspired by the 1991 Amiga demo Enigma by Phenomena.