Reputation
6,013
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 49
Impact
~212k people reached

2d
revised Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?
added 1 character in body
2d
answered Do binary trees serve a specific purpose in storing hierarchical data? What is their canonical use?
2d
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'
May
8
comment How to quickly search through a very large list of strings / records on a database
In my opinion the fulltext options in any RDBMS is a workaround to make it do something it isn't designed for: "search in some pile of unstructured unrelated data". If you're building a searchengine, you just don't use an RDBMS. It may work for small datasets but lakcs any sort of scaling. Searching through piles of unstructured data is not a nail, so don't use a hammer. Use the right tool for the job.
May
8
comment How to quickly search through a very large list of strings / records on a database
The problem as stated doesn't seem like a good fit for an RDMS anyhow.