Author Archives: vrichard86

About vrichard86

I'm Richard and I'm an enthusiastic coder. I want to be better and I think a professional journal is a great self improvement tool. Welcome to my blog, to my hq, to my home on the web!

How does car physics work in the original Death Rally? Part one, background extraction, background position tracking. (C++, OpenCV)

Likely the original Death Rally is my favourite game of all time. Okay, maybe I loved other games too, I grew up with Lara Croft and I played through all the classic Tomb Raider games at least three times (by … Continue reading

Posted in C++, OpenCV | Tagged , , , , ,

What is the difference between a junior and a senior programmer? (Personal)

Nowadays, I don’t feel like writing, but yesterday a funny idea came up to my mind. Once – it happened not so long time ago – I was in the running for a simple job, a determined guy prepared to … Continue reading

Posted in Personal | Tagged , , ,

How to write your own AS3 project using VI and how to compile it under Ubuntu linux (ActionScript 3.0)

Once I thought Adobe Flash CS5 was the only one way to write ActionScript 3.0 programs. Well, it is not true, but I didn’t know that. I’m a programmer and my profession is not drawing and animating things, I’m working … Continue reading

Posted in AS3 | Tagged , , , , ,

About middle-test loops

Ordinary program loops can be cathegorized into the following two cathegories: pre-test loops and post-test loops. For example, in C++ for loops and while loops are pre-test loops, do-while loops are post-test loops. (It isn’t very hard to find out … Continue reading

Posted in Theory | Tagged , , ,

Another annoying mistake (ActionScript 3.0)

Debugging is not always a torture. It is when we have to beat a deadline and when eliminating bugs from a new product is matter of life and death, but when we have enough time and we are enthusiastic enough, … Continue reading

Posted in AS3 | Tagged , , ,

Approaches to optimize a small program (C++)

Imagine we have to work on the following problem (because it is our new assignment, our boss is obsessed with this problem, etc.): We have a text file that’s a few hundred megabytes long. We knows that this text contains … Continue reading

Posted in C++ | Tagged , , , , , , ,

My five most common programming mistakes in C++

I’m a junior programmer. Junior means I don’t have industrial experience, sad, but coding at home and working at a company are entirely different things. Strict deadlines, teamwork with a lots of smart guys, really big source codes and the … Continue reading

Posted in C++ | Tagged , , , ,