Quantcast
Channel: Mlangc's Blog
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Anti-Patterns once again

I just stumbled over another list of interesting Java Anti-Patterns. Luckily I agree with all of them, so unlike the last time, I can just link them here.

View Article



Image may be NSFW.
Clik here to view.

What you don’t want to know about Java Collections

In one of my previous posts I wrote (I deleted “very” later, after the post was already published, as it seemed to strong): Prefer lists to arrays unless you have a very good reason not to. This was...

View Article

Image may be NSFW.
Clik here to view.

What you don’t want to know about Java boxed primitives

In my last post I used a simple calculation to argument that a List containing 1024 Integer objects will take at least 8kb on a 32bit system, and at least 12kb on a 64bit system. I then also argued...

View Article

Image may be NSFW.
Clik here to view.

Propagating exceptions between different threads in C++0x

Yesterday I finally decided to make use of all available C++0x features that are supported by gcc-4.4 in Untropy (a very specialized tool for a limited audience that is not of interest here). Whats...

View Article

Image may be NSFW.
Clik here to view.

Saying Goodbye to boost::regex.

Yesterday I decided to finally say goodbye to boost::regex (a.k.a tr1::regex) and use PCRE instead in Untropy. The reason for this is, that boost::regex doesn’t support UTF-8 properly. Yes, there is...

View Article


Image may be NSFW.
Clik here to view.

Using C++0x Variadic Templates to Pretty-Print Types

Recently I stumbled over an exercise in the very interesting book C++ Template Metaprogramming. The challenge of the exercise is to make something like the following compile and do what you expect:...

View Article

Image may be NSFW.
Clik here to view.

Be Careful When Converting Java Arrays to Lists

Unfortunately not everything that should be trivial actually is. One example is converting Java arrays to lists. Of course, there is Arrays.toList, but using this method carelessly will almost...

View Article

Image may be NSFW.
Clik here to view.

When True Is Not True Anymore

We all know that accessing uninitialized variables in C and C++ usually leads to some kind of undefined behavior one usually wants to avoid. What I didn’t know until recently is that uninitialized bool...

View Article


Image may be NSFW.
Clik here to view.

Series About Java Concurrency – Pt. 3

As it seems that even experienced Java programmers might have serious misconceptions regarding the Java memory model, I’ve decided to publish a concurrency related puzzle once again. Consider the...

View Article


Image may be NSFW.
Clik here to view.

Series About Java Concurrency – Pt. 4

This post is the solution of Series About Java Concurrency – Pt. 3, so be sure to read my last post before this one. So, what does the code from Series About Java Concurrency – Pt. 3 do? As it turns...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images