rust macro rules in practice

This is the first post on my new series "practical rust bites" that shows very tiny pieces of rust, taken out of practical real projects. So this article will be super short, easy to follow and hopefully helpful to find your way into the rust eco system.

TL;DR#

macro …

Continue reading »

Super Simple Disk Benchmark written in rust

Today I discovered simple disk benchmark that is written in C and I wanted to give a very minimal version of it a try in rust. So here I'am reporting of my new crate and command line tool ssd-benchmark. It is so super simple you cannot do anything wrong. Give …

Continue reading »

little rust starter hint series: lifetimes made easy

As usual, I want to share with you an awesome online-book to learn rust in a very problem centric way. This book focuses on the problem of implementing a linked list, which is a very essential data structure, and a fundamental lesson in computer science and programming. It's for instance …

Continue reading »

little rust starter hint series: Polymorphism and Traits

Today we going to explore Polymorphism and how that is actually doable in Rust. For those that have not done any OOP language yet, Polymorphism is just a fancy term for behaving or being polymorph. For example a instance of something can also be or behave as something else. In …

Continue reading »

little rust starter hint series: tests and TDD

Today we going to solve the Daily Challenge #47 - Alphabets in rust by applying test driven development (TDD) methodologies. Don't worry we will do very little steps and the full code is available as repo (link at the end).

For those that are familiar with rspec like testing frameworks as …

Continue reading »

little rust starter hint series: modules and imports

This post is additive to the awesome online book rust101 from Ralf Jung. Just in case things are a bit unclear be advised to read that book / section in addition then it should all make sense.

Today I want to show how you can separate your code in rust 2018 …

Continue reading »

rethink nested loops in Javascript functional

I want to start right away with the little problem statement:

const animals = ['ant', 'bison', 'camel', 'duck', 'elephant'];

// c-ish for-i loop
for (let i = 0; i < animals.length; i++) {
    for (let j = i + 1; j < animals.length; j++) {
        const a1 = animals[i];
        const a2 = animals[j];

        console.log(`${a1} and …

Continue reading »

prepare a dart package for publishing in 5minutes

When publishing a dart package pub.dartlang.org you should spend a minute and read the recommendations from the dart team about publishing. However it makes sense to add a few more things to show up how nice your new package is and what awesome things it can do.

dartanalyzer …

Continue reading »

ReStructuredText Blogging!

CMS based blogging was my choice for long. Now it's time to change and rediscover the benefits of blog offline in my IDE of choice.

Continue reading »

development environment

this post will cover some topics that are more or less common if you have a Linux system as your personal one, but you also want to develop on that machine.

Continue reading »