Archive for 'Software'

Factorial calculation algorithms

FactorialAlgorithms

Eventually, at some point in your coding career, you’ll need to calculate the factorial of a number. This, of course, with most modern programming languages shouldn’t be a problem… unless you need to calculate the factorial of any real number, even if it is a fractional number. (more…)

Drawing lines in the Console (or elsewhere)

ConsoleClock

I remember once needing to code my own drawing functions for an HP48 and not having a clue how to draw line. My first implementation worked by determining the delta increment that should be applied to both x and y from the starting (x0, y0) point to the final location (x1, y1). Although this worked, […]

I guess I haven’t been bored for a while…

Busy Orange Man

I haven’t had the time to get bored for a while, hence the lack of new posts. Fortunately for me, I’ve been pretty busy working on a number of different projects. Among them, I started coding for Android (using Xamarin) and as soon as I finish the project I’ll post my impressions on the experience […]

.NET introduces binary literals

With the introduction of the new Roslyn compiler platform for Visual Studio, the .NET languages team has, finally, made available the support to declare and use binary literals for VB.NET. Back in 2011 I posted a request to the .NET languages team to implement support for binary literals and also took the liberty to suggest […]

VB.NET and its broken data types

vb_datatypes_01

VB.NET is starting to get on my nerves. (more…)