Reputation
6,533
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
15 51
Newest
 Necromancer
Impact
~373k people reached

Apr
30
comment How can one think of a relational schema in terms of storing it in a NoSQL database?
@MasonWheeler it's just an example about modeling. Actually full text search is the NoSQL way of indexing large amounts of text in an SQL database. See, even classic SQL databases have a bit of NoSQL.
Apr
29
comment How can one think of a relational schema in terms of storing it in a NoSQL database?
@JeffO I always see binary and text blobs in databases as a way of storing non-relational data in a relational database. But things like a full text search feature or even the keyword "LIKE" in SQL databases shows the need that relational modeling isn't always the best.
Apr
29
comment What's the difference between a function and a method?
@Laiv I'm not talking about levels of abstraction, just saying that methods and functions are the same thing by another name, one is not an abstraction of the other.
Apr
29
comment What algorithm would have the fastest average run time and least memory requirements for sorting a deck of playing cards?
@Bizorke you explicitly talked about a deck of playing cards. In the most general case, that's 52 cards, not millions. In that case, the implementation of your algorithm is much more important then the complexity.
Apr
29
comment What's the difference between a function and a method?
@laiv java.lang.math is nothing but a namespace containing functions disguised as class methods because, well because of OO.....The concept of functions does exist, just by another name: methods. They're the same thing.
Apr
29
comment What algorithm would have the fastest average run time and least memory requirements for sorting a deck of playing cards?
For a deck of cards it doesn't really matter because of small N.
Apr
26
comment How does immutability remove the need for locks when two threads are trying to update the shared state?
You didn't fully read the question.
Apr
24
comment is stored procedure having multiple UNION efficient than running all SQL's in parallel?
Using implicit joins is depracated. I'd advise against using them.
Apr
15
comment Web server facilitating a TCP handshake between two native apps behind typical home firewalls
It is by design that two computers behind different firewalls can not directly communicate with eachother. There are workarounds, like UPnP which provides port mapping, but then the client is effectively not behind a firewall. It's just that, workaround.
Apr
14
comment Most efficient way to keep count of objects in State X without constantly counting
Also, it's hard to give generic answers on database problems, the problems are very specific to a situation.
Apr
14
comment Most efficient way to keep count of objects in State X without constantly counting
How do you query the state of an object? Is it like a state-field in the Database or some complex combination of object properties you read on the fly? I mean, is the state set or determined?
Apr
14
comment How to warn other programmers of class implementation
@Ext3h I don't think the factory pattern and RAII are mutually exclusive.
Apr
8
comment Why are large amounts of magic numbers acceptable in CSS and SVGs?
+1 because :"It's acceptable because these formats are not code, but data."
Apr
5
comment Complexity of recursive calls
Wouldn't the complexity be independent of array size but be constant time? When the target is hit, it's hit.
Mar
23
comment How do I generate multiple hashes that can be resolved to a single value?
That's not a hash, it's obfuscation.
Mar
22
comment Can we say “If a parent class never appears in my codes except in its child class, it should be composition instead of inheritance”?
Well, you work with a virtual base class, but how is that composition?
Mar
19
comment Using flat files vs database/API as a transport between a frontend and backend
Isn't using a database as a messaging service just as bad as a file-system? In both cases you use something that it's not intended for.
Mar
19
comment Using flat files vs database/API as a transport between a frontend and backend
Using a database as a messaging service is just as bad as using files.
Mar
18
comment How to find all occurrences of a variable within a source code?
Rename the variable and find where your program fails?
Mar
17
comment Refactoring my code that depends on a renamed library method
@jason building a class around another class can be as simple as just inheriting from your external-library class without declaring anything extra. It will work exactly the way as if you would call it directly. It's just, when something in the library changes you don't have to deal with it in a 1000 places in your code but can modify your inherited class instead.