Reputation
9,846
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 20 51
Impact
~464k people reached

20h
awarded  Popular Question
Apr
29
answered Command Pattern - Correct usage?
Apr
24
comment Test Cases in an Interview Setting
On the other hand, the ability to identify corner cases is not a "teachable" skill. Some people can do this in the blink of an eye, and we don't really understand why some people can do it while others can't.
Apr
24
comment Test Cases in an Interview Setting
Perhaps it would be easier to understand if you think of those as "examples". For example, if you look at competitive programming, every question comes with a few "sample inputs". This is very different from "test cases", which focus on exposing the corner cases that may be inadequately covered by the code implementation.
Apr
20
revised Is this a Single Responsibility Principle violation?
added 5 characters in body
Apr
20
answered Is this a Single Responsibility Principle violation?
Apr
19
comment Implementing an algorithm for parallel task scheduling
Also, every aspect in the question appears to be of an "eager strategy", as long as resource permits. I don't see any aspect of "optimization". Is this question a scenario simulation question, and not an optimization algorithm question?
Apr
19
comment Implementing an algorithm for parallel task scheduling
If there are two applications with the same execution cost Ex and they start executing immediately, does it take exactly 2*Ex time for both of them to finish? (I asked this because the execution cost and the division of CPU time among different applications aren't explained clearly in your question.)
Apr
7
comment Why is threading platform-dependent?
A better way to say that is "there are platform-specific differences". It is possible to wrap the basic threading facilities in a platform-agnostic ways, as multiple languages are. Also, inter-thread communication (in a thread-safe way) are also platform-specific, for which "wrapping" is more tricky, and requires its users to know about those trickiness.
Mar
30
comment How to implement k-means algorithm on RGB Images?
It's already on the OpenCV tutorial
Mar
25
comment Which languages allow to mix its source code with C++ source code?
See: Hourglass interfaces for C++ APIs
Mar
24
comment Automatically detect offensive images
"Detect Inappropriate Content" (cloud.google.com/vision)
Mar
24
answered Transitioning from C++ multithreading to Java multithreading
Mar
23
comment Does having a lot of using/import statements indicate bad design or code smell?
Have you tried with adding an IoC, converting to constructor injection, and/or convert some integration points into inline lambdas to see if it will reduce the number of using statements without having to increase the number of classes? Keep in mind that increasing number of classes or source files will increase source code management overhead.
Mar
23
comment How do I generate multiple hashes that can be resolved to a single value?
You might also need to think about whether security is a concern, i.e. would it matter if your scheme is trivially breakable by an outsider.
Mar
23
comment How do I generate multiple hashes that can be resolved to a single value?
The correct name is hash collision. Hash collision is a bad thing for hash functions; therefore, well-designed hash functions will minimize hash collision. Based on your usage, you probably aren't looking for a "hash function" per se, but instead try to look for an information concealment function, preferably one that doesn't require maintaining a database of keys and values.
Mar
23
answered tiling algorithm for maximum size of equal-sized tiles
Mar
18
answered Is scientific code a different enough realm to ignore common coding standards?
Mar
17
comment Is scientific code a different enough realm to ignore common coding standards?
To fellow answerers: This question refers to the code base of open-source libraries for computationally intensive tasks in one or more scientific domains. This question is not about throwaway code. Please pause for a moment to make sure you grasp every highlighted aspect before writing an answer. Thanks.
Mar
16
comment Is scientific code a different enough realm to ignore common coding standards?
You will certainly find my earlier question relevant: programmers.stackexchange.com/q/266388/620