Category Archives: Programming

Regex Escapees

Sometimes when one writes regexes, Its hard to know what needs to be escaped and what doesn’t. But I’ve solved that problem while I was writing a program that generated my regexes for me. Now I have a snippet that … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

OpenGL weirdness

Try this: and render your display list. Then, try this: I don’t know if its my graphics drivers, or graphics card or perhaps just me, but the top code maxed out at 60 fps while the bottom code ran at … Continue reading

Posted in Programming | Tagged , , , , | Leave a comment

Help! GLEW compiles but doesn’t link!

When you compile the glew_static project from glew on Visual Studio and link it with your program, you may get something like this: It’s easy to fix. Just add GLEW_STATIC to the preprocessor definitions and you’re done. This is because … Continue reading

Posted in Programming | Tagged , , , , , , | Leave a comment

Why I Prefer Initialization Through Constructors

I always prefer initializing my class through the use of a constructor like this: class Apple { Color color; Taste taste; List<string> countries; public Apple(Color color, Taste taste, List<string> countries) { this.color = color; this.taste = taste; this.countries = countries; … Continue reading

Posted in Programming | Tagged , , | Leave a comment

First test post from BunnyBlogger

Several moons ago I have been working on a special blogging client, that is capable of wysiwyg blogging and allows you to take snapshots from movie files and add images and other images to your post. I have only shown … Continue reading

Posted in Programming | Tagged , , , , , | Leave a comment

Will the destructor be called?

Here’s a C++ quiz for all of you: somefunc() will be called from a thread. Do you think this destructor will be called?

Posted in Programming | Tagged , , , , | 2 Comments

Idioms

What if Was Would the world be a better place?

Posted in Programming | Tagged , , , | Leave a comment

That’s Not The Point

Today I read an interesting chapter in Writing Solid Code, and it showed an example where a supposed optimization led to code bloat: To represent the hierarchical window structure, Character Windows used a binary tree in which one branch pointed … Continue reading

Posted in Programming | 1 Comment

GWT: Next level of automation

After playing a little with GWT, and attempting to add a map into my little webapp, I’ve found that this is really a very good idea. By applying a language to abstract all the small difficulties of programming a webpage … Continue reading

Posted in Programming | Leave a comment

Attempt to rush an RPG

After reading an article on GameDev about a guy who managed to build an RPG in 40 hours, I decided I’d try my hand at doing an RPG 40 hours too, but in C#. So I started to write the … Continue reading

Posted in Programming | Leave a comment