1,068 reputation
1710
bio website
location Umeå, Sweden
age 29
visits member for 2 years, 4 months
seen 2 days ago

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


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.
Aug
5
comment Make use of design patterns in C?
Languages like C need design patterns even more, as one of the primary reasons why they exist at all is because of inadequacies of the underlying language.
Aug
2
comment OAuth2 flow - does the server validate with the Auth server?
About important parts, it might be worth reading this blog post for some background on the priorities for OAuth2.
Jul
31
comment Why should I push if I'm working alone in a local repository?
There's one significant lack of understanding in the question that's worth pointing out: if you haven't pushed anything remotely, all your work is in the local on-disk repository. Lose your machine, lose everything you ever did.
Jul
28
comment What does the term “Payload” mean in programming
The framing/overhead would be the stuff that's wrapped around the payload to get it where it needs to be, labelled as what it needs to be identified as. You can contrast it with a web request, which results in a bunch of headers that identify things about the actual page like the encoding, the size, the format, and so on. The payload is the actual page, which comes after the headers that enables the recipient to make sense of it.
Jul
26
awarded  Enthusiast
Jul
25
comment Compiler Linking: How to handle circular references?
I don't quite see what this has to do with the traditional meaning of the word linking. You might want to use a term that belongs to the compile phase, as linking has a strong connotation of being after every module or translation unit has been compiled.