2,190 reputation
615
bio website mackeblog.blogspot.com
location Gothenburg, Sweden
age 36
visits member for 4 years, 7 months
seen 1 hour ago

M.Sc. in Computer Science and Engineering, specialization in programming languages and algoritms

Professional interest in:

  • Python
  • OpenGL/OpenSG
  • Software engineering
  • Mercurial
  • BuildBot
  • C++

In the spare time

  • Bass player in rock cover band
  • Petrolhead (Seen a few F1-races live)
  • Gamer

Apr
13
answered How do you unit-test code using graphs?
Mar
21
awarded  Nice Answer
Feb
3
comment Should one check for null if he does not expect null?
Well, feel free use an assert^h^h^hconditional throw function that is active in release too if you need that. I've rolled my own quite often.
Jan
20
comment Is it always a best practice to write a function for anything that needs to repeat twice?
@PatrickCollins: Thanks for the vote! :) I've added some considerations to make the answer more complete.
Jan
15
awarded  Nice Answer
Jan
15
revised Is it always a best practice to write a function for anything that needs to repeat twice?
edited body
Jan
14
revised Is it always a best practice to write a function for anything that needs to repeat twice?
added 659 characters in body
Jan
13
revised Is it always a best practice to write a function for anything that needs to repeat twice?
deleted 47 characters in body
Jan
13
revised Is it always a best practice to write a function for anything that needs to repeat twice?
added 303 characters in body
Jan
13
answered Is it always a best practice to write a function for anything that needs to repeat twice?
Sep
28
awarded  Yearling
Jun
9
comment Why is programming sometimes viewed as a second-rate role?
Writers vs Authors?
Apr
22
comment I'd like to write an “ultimate shuffle” algorithm to sort my mp3 collection
I'd create a list in step 1 and remove from it in 2 and 3. That makes it impossible to get stuck in a loop, and if list becomes empty, you know you need to change the rules and re-scan. More robust way of doing it.
Apr
10
comment Make use of design patterns in C?
+1. You could also say that many of the design patterns are implementation overhead themselves for missing features in common OOP language implementations..
Feb
21
comment Can JavaScript be used as a general scripting language?
With Qt5, javascript get's an even bigger role with the new QML/QtQuick GUI framework (uses embedded javascript for managing the UI).
Jan
18
comment What are the drawbacks of immutable types?
@supercat: Like C++11's rvalue references?
Jan
18
comment What are the drawbacks of immutable types?
You have to code quite smartly sometimes for the compiler to figure out that there's no reference to the previous object left behind and thus can modify it in place, or do deforestation transforms, et al. Especially in larger programs. And as @supercat says, identity can indeed become a problem.
Sep
28
awarded  Yearling
Aug
22
revised Are there any real-world cases for C++ without exceptions?
added 55 characters in body
Aug
22
comment Are there any real-world cases for C++ without exceptions?
@armb: Yes. See "In that context, even free store allocation is banned!" above.