16,061 reputation
23063
bio website
location
age
visits member for 4 years
seen 17 hours ago

Aug
11
comment How to handle growth of an open source project?
first things first get a proper bug tracker up and running, no open source will ever survive without unless the core team is very good. Also ensure the direction of the features are clear and doesn't creep away on you.
Aug
10
comment Reconstructing a huffman tree using minimal information in the header
sorted by the order you find them in during reconstruction. after that you have your huffman tree ready for use, leaf nodes have null child nodes and a value while non leaf nodes have the opposite.
Aug
10
answered Reconstructing a huffman tree using minimal information in the header
Aug
4
comment Is this a specific pattern and what is its purpose?
seems like a poor man's multiple inheritance
Jul
28
comment Why was the first compiler written before the first interpreter?
and without a compiler you'd have to write the interpreter in assembly
Jul
28
comment Why was the first compiler written before the first interpreter?
because there was more need for a compiler than a interpreter at the time
Jul
28
comment Why (most?) retro computer emulators are single threaded?
creating an emulator is hard you don't want to make it harder by including multithreading
Jul
26
comment Is too much whitespace a bad thing?
a good compiler will not even care about whitespace as it will compress it into a single token during the tokenizing pass
Jul
24
comment How should a REST API handle PUT when missing parameters?
or error out and not do anything
Jul
22
comment Can I refactor “safely” without specs?
create unittexts then refactor as a safety net
Jul
22
comment How should I remember what I was doing and why on a project three months back?
comments and commit messages, there's a reason people tell you to leave them
Jul
22
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
Jul
22
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?"
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
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 Ensuring submitted hiscores are not fake
@Philipp indeed: gamedev.stackexchange.com/questions/4181/…