1,153 reputation
1710
bio website
location Umeå, Sweden
age 30
visits member for 2 years, 8 months
seen 13 hours ago

C++ developer at heart, loves to play around with graphics APIs.


Oct
24
awarded  Mortarboard
Oct
24
awarded  Nice Answer
Oct
24
answered Execute code every hour
Oct
20
answered Why error codes are negated?
Oct
19
comment Is it okay to define a [] method in ruby's NilClass?
This smells like Perl autovivification. There's many fine caveats there, and you should probably find out which before changing a global behaviour of your language just in order to be lazy.
Oct
13
comment Is the use of “utf8=✓” preferable to “utf8=true”?
I can't quite see how it would save you from having to validate input, considering that you always have to consider malicious input for public interfaces.
Oct
4
comment Two interfaces with identical signatures
The only reason that this question even appears is because your functions have access to way too much state, due to the incredibly wide and unconstrained Player and GameState parameters.
Oct
4
awarded  Fanatic
Sep
29
comment Visual Studio 2012 - Express vs Professional
It's not worth a proper answer, but if you're doing desktop graphics, the Graphics Debugging feature is currently only available in paid SKUs.
Sep
29
comment Visual Studio 2012 - Express vs Professional
Thankfully in 2012, they at least combined the different languages into a single Desktop edition.
Sep
29
comment Using T[1] instead of T for functions overloaded for T(&)[N]
Yes, you have is_pod in C++11. Boost.Asio hasn't abandoned all the people with C++03 compilers yet. Just because a new language standard appears doesn't mean that everyone magically are on conformant compilers, particularly not for existing products.
Sep
28
comment Using T[1] instead of T for functions overloaded for T(&)[N]
How do you SFINAE on PodType being, well, a POD type? I believe that any type traits that could do that need some sort of compiler assistance.
Sep
24
comment How mature is FreeBASIC?
Version numbers are very project-specific things. Some projects reserve the major digit for something very special and just keep revving the minor and micro versions.
Sep
22
awarded  Nice Answer
Sep
22
comment Why isn't the arrow operator in C++ just an alias of *.?
It illustrates the last paragraph of my answer, how using the -> operator chains until it gets a raw pointer to something, dereferencing and accessing a member of it. If operator -> didn't chain, the example would be ill-formed as a shared_ptr is not a raw pointer.
Sep
21
comment Using a GPL game engine
The GPL doesn't prevent you or anyone else from selling things, but it requires you to provide access to the source and all modifications to it, as well as requiring you to ensure that all source that touches it has a compatible license.
Sep
4
answered Is Operator Overloading supported in C
Aug
30
comment What should developers know about Windows executable binary file compression?
It's also not always lossless. Several popular compressors fail miserably at TLS callbacks, which is quite a bummer if you ever happen to have them. If you ever incorporate one into your build process, make sure you test the resulting binary.
Aug
10
comment hash with file instead of array
If you have an algorithm that works within a single slab of linear memory, you have something can be translated to a random-access file. You're going to have a hard time if you have variable-width records, handling collisions, rehashing, etc. You can implement a rudimentary system, but I would strongly recommend looking at a lightweight solution like SQLite3, leveldb (or possibly Berkley DB if you can accept copyleft).
Aug
9
comment Where Should I Put Configuration Files?
If you're going to use environment variables to construct paths, at least use %LOCALAPPDATA%. There's nothing that guarantees that the path you constructed there from the user profile actually points out the local appdata. If you've got Win32 bindings, prefer Known Folders.