11,936 reputation
22247
bio website
location
age
visits member for 3 years, 2 months
seen 6 mins ago

4h
comment How should I remember why and what was I doing on a project 3 months back?
comments and commit messages, there's a reason people tell you to leave them
5h
comment How comes the C++ standards committee introduces a keyword like nullptr and gets away with it?
@Wildling when nullptr isn't NULL then something is wrong with your code on a more fundamental problem
5h
comment How comes the C++ standards committee introduces a keyword like nullptr and gets away with it?
"How many breaking changes were introduced? That many? Well one more wouldn't hurt, right?"
7h
comment How to load a dynamic array from file?
never write pointers to a file, they are never valid when read back in
2d
comment Online Shopping password keylogger risk
if you enter the details on their page then they can access those details, if you are redirected to your bank's site then only the bank can access it and the bank sends a security token
Jul
18
comment Building software with version numbers
fork on the commit that you want to release, versionize and tag the result
Jul
17
comment Why does C have no competitors in low level stuff?
1 word, inertia
Jul
17
comment Do immutable objects that constantly change impact memory/performance?
most garbage collection is geared towards many short lived objects, though spawning thousands in a tight loop will still cause slowdown
Jul
17
comment Partial sorting problem
keyword: topological sort
Jul
16
comment Simple straight-line path algorithm
otherwise there is a line drawing algorithm for if you need to move in a grid: en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
Jul
16
comment Huge long addition overhead compared to Native call?
optimizer knows that System.currentTimeMillis(); doesn't have side effects and just optimized the entire "native" call
Jul
14
comment Encode Optimal Huffman code
D and A together have 8+5=13 which you should combine with the C node before C and E combine
Jul
13
comment Hardware and the Programmer
you may wish to read " Q&A is Hard, Let’s Go Shopping!"
Jul
13
comment Ensuring submitted hiscores are not fake
@Philipp indeed: gamedev.stackexchange.com/questions/4181/…
Jul
13
comment Ensuring submitted hiscores are not fake
you can submit the replay with the highscore and let the server run them to verify, that would also allow other players to learn from each other, that would require a replay ability in the game
Jul
11
comment Implementing a priority queue with a circular array
honestly for small N implementation details trump the big O, only way to know is to profile
Jul
11
answered Implementing a priority queue with a circular array
Jul
8
reviewed Approve suggested edit on How meaningful is the Big-O time complexity of an algorithm?
Jul
8
comment A vector of pointers to different derived classes of the same base class
@Mathsnoob make the functions virtual in the IEnemy base class
Jul
8
answered A vector of pointers to different derived classes of the same base class