Tweaking Vim To Be A More Suitable C/C++-IDE

Being a true Vim patriot requires me to share with my fellow brethren my repertoire of handmade tools, lest they should be forsaken. Therefore I will present in this very post some script fragments to drastically improve productivity when developing C/C++ inside Vim. All of these fragments are part of my .vimrc and can thus be viewed on my dotfiles repo on GitHub. Include guard insertion Upon creating a .h or ....

October 27, 2018 · 5 min · 895 words · Gian Sass

Computational Complexity of Recursive Functions

A function is deemed recursive if it satisfies the following three rules: There must be at least one halting condition. The function must call itself. The parameters thereof must be altered such that the halting condition will eventually stop the recursion. The easiest example of a recursive function would be calculating the factorial of a (natural) number. int fact(int n) { if (n == 0) /* 1. Halting condition */ return 1; else return n * fact ( n - 1 ); /* 2....

November 7, 2016 · 2 min · 386 words · Gian Sass

The Mandelbrot Set, Part 2: OpenGL Program

In the last part I tried to give a general overview of how the Mandelbrot set is generated and how it can be rendered using a simple algorithm. This part will focus on programming a simple realtime renderer that can also zoom and move around, as I showed in this video. Additionally, it will serve as small introduction to modern OpenGL programming. In this tutorial we work with C++, but you may use any other language you feel comfortable with that also binds with OpenGL....

November 6, 2016 · 11 min · 2212 words · Gian Sass

The Mandelbrot Set, Part 1: Overview

Recently, I have been experimenting with the Mandelbrot set. I made a video where I showcased a simple Mandelbrot explorer, written in C++ and OpenGL. In this little series I want to explain what the Mandelbrot set really is, how to generate it, and how to program it in OpenGL! What is the Mandelbrot set? The Mandelbrot set is a set of points, which are determined by a simple iteration. For a certain amount of iterations, this equation is repeated for each points in the set and coloured appropriately....

July 6, 2016 · 3 min · 566 words · Gian Sass

Why Java Is Not A Good Beginners Language

Java is still taught as language for beginners to this day. I know, because I’m taught Java right now in my introductory informatics class. In this post I want to share some thoughts on why I think Java, as a language for beginners, should be phased out and replaced with a different, easier and modern language. Primarily I don’t think Java is a bad language. There are certain limitations which led to the development of languages such as Scala....

February 11, 2016 · 3 min · 446 words · Gian Sass