Reputation
6,033
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 49
Impact
~221k people reached

Jul
25
answered Should class with only static data need to be instantiated?
Jul
9
comment What can go wrong with composing a method name out of a string?
potential to cause name conflicts? what woudl myObject[MyObject] do?
Jul
3
revised Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?
added 1 character in body
Jul
3
answered Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?
Jul
3
comment Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?
This answer leaves out half of the reason why you want to use them: adding and removing elements. It's not only about access to elements: a sorted array would be just as fast as a binary tree.
Jun
26
comment What is faster? Using REST API or querying a database directly?
@JacquesB and the web app runs on the clients computer. So it shouldn't be trusted because it could be a modified version.
Jun
23
revised How safe is it to compile a piece of source code from a random stranger?
added 19 characters in body
Jun
23
answered How safe is it to compile a piece of source code from a random stranger?
Jun
22
comment Simple and clean way of comparing three numbers
I don't understand your comment about DONT_KNOW , what if c is the smallest and a and b are the same? The algorithm would return that b is the biggest, while a is the same as b.
Jun
20
comment Retrieving maximum value from a range in unsorted array
what's the complexity of filling the tree?
Jun
17
comment What is faster? Using REST API or querying a database directly?
The "on the other hand" requires you to expose your database to the big bad world.
Jun
11
comment '<' versus '!=' as condition in a 'for' loop?
@KonradRudolph and < is exactly what you use to establish an upper bound. < for upperbound without edges, <= for upper bound with edges, != for telling 1 element is not in the set.
Jun
10
comment What is the best way to go about storing application options: file system or db?
Yup, make a generic interface for your options so you can use either a database or a file-system.
Jun
2
comment What stops C from being compiled/interpreted/JIT'ed?
I can emulate the x86-platform on most other platforms, as a virtual machine. Run my c-programs targeted there. How is that conceptually different from a "transparent"-virtual machine as the JVM ?
May
28
answered Time complexity of this loop
May
21
awarded  Popular Question
May
21
comment Is it okay to go against all-caps naming for enums to make their String representation simpler?
+1 for : Let an enum be an enum and a string be a string.
May
21
comment Is it okay to go against all-caps naming for enums to make their String representation simpler?
Maybe not use the "sting form" of an enum? An enum is an enum and I think it's a bad design choice to have a stringrepresentation of it.
May
19
comment How do I communicate to a colleague that their code does nothing?
What will this code do in the case that int n is int_max ? Take just a long time? Throw an exception? That's definitely side-effects in my book.
May
12
answered Non-ambiguous wording for 'Backend'