Calculating IP Address Ranges in Go: Learn IPv4 Range Between Addresses

This article discusses solving a programming problem related to calculating the number of IP addresses between two IPv4 addresses. The solution, implemented in Go, involves parsing the IP addresses, converting them to integer representations, and handling various edge cases. The article also includes code refactoring for improved readability and compactness. Continue reading →

Converting 2D Arrays to CSV in Go: Problem-Solving and Testing

In this programming article, the author discusses converting a two-dimensional numeric array into a CSV string using Go. They define tests using the Go testing package, implement the ToCsvText function, and then refactor it using strings.Join for better performance. Multiple test cases ensure the correct handling of empty, single-element, and complex input arrays. Continue reading →

How to Convert an IPv4 Address to a 32-bit Integer in C#: A Step-by-Step Guide

In this programming article, the author presents a challenge of converting an IPv4 address into a 32-bit integer. The process involves splitting the IP address, converting octets to integers, performing bitwise shifting, and using bitwise OR to combine the values. A C# function is provided for this purpose, along with tests and a refactored solution.... Continue reading →

______11 |> F# – Some Hackery – A String Calculator Kata

Now for some F# hacking. The first thing I did was actually go through a Code Kata, which I’ll present here. The first step I took was to get a project started. For that I used the ProjectScaffold to build a clean project via bash. First cloned… git clone git@github.com:fsprojects/ProjectScaffold.git sharpKataStringCalc …then I … Continue reading →