Tags: Programming

Text Processing in Rust

Create handy command-line utilities in Rust. This article is about text processing in Rust, but it also contains a quick introduction to pattern matching, which can be very handy when working with text. Strings are a huge subject in Rust, which can be easily realized by the fact that Rust has two...
Read 0 Comments

Source{d} Can Help Solve Your Own Tabs-Versus-Spaces Debate

The debate over tabs versus spaces has been going on for decades and, despite all attempts to end it, it is ongoing. StackOverflow co-founder Jeff Atwood once wrote of the debate, “It doesn’t actually matter which coding styles you pick. What does matter is that you, and everyone else on your team...
Read 0 Comments

Happy Little Accidents - Debugging JavaScript

Last year I gave a talk in HelsinkiJS and Turku ❤️ Frontend meetups titled Happy Little Accidents - The Art of Debugging (slides). This week I was spending a lot of time debugging weird timezone issues and the talk popped back up from my memories. So I wanted to write a more detailed and Javascript...
Read 0 Comments

C Programming Tutorial Part 3 - Variables Basics

Up until now, we've discussed the basics of what a C program is, how to compile and execute it, and what are preprocessors. If you have gone through these tutorials, it's time we discuss the next topic, which is variables.  Variables are one of the core elements of C programming as they store...
Read 0 Comments

Recursive Programming

Despite often being introduced early-on in most ventures into programming, the concept of recursion can seem strange and potentially off-putting upon first encountering it. It seems almost paradoxical: how can we find a solution to a problem using the solution to the same problem? Believe it or not...
Read 0 Comments

The Monty Hall Problem

The original and most simple scenario of the Monty Hall problem is this: You are in a prize contest and in front of you there are three doors (A, B and C). Behind one of the doors is a prize (Car), while behind others is a loss (Goat). You first choose a door (let’s say door A). The contest host...
Read 0 Comments

Introductory Go Programming Tutorial

You've probably heard of Go. Like any new programming language, it took a while to mature and stabilize to the point where it became useful for production applications. Nowadays, Go is a well established language that is used in web development, writing DevOps tools, network programming and...
Read 0 Comments

An Example of How C++ Destructors Are Useful in Envoy

For a while now I’ve been working with a C++ project (Envoy), and sometimes I need to contribute to it, so my C++ skills have gone from “nonexistent” to “really minimal”. I’ve learned what an initializer list is and that a method starting with ~ is a destructor. I almost know what an lvalue and an...
Read 0 Comments

Introductory Go Programming Tutorial

Maybe you've heard of Go. It was first introduced in 2009, but like any new programming language, it took a while for it to mature and stabilize to the point where it became useful for production applications. Nowadays, Go is a well-established language that is used for network and database...
Read 0 Comments

Normalizing Filenames and Data with Bash

URLify: convert letter sequences into safe URLs with hex equivalents. This is my 155th column. That means I've been writing for Linux Journal for: $ echo "155/12" | bc 12 No, wait, that's not right. Let's try that again: $ echo "scale=2;155/12" | bc 12.91 Yeah, that many years. Almost 13...
Read 0 Comments

Pages

Click Here!