13,334 reputation
12049
bio website
location
age
visits member for 3 years, 2 months
seen 58 mins ago

Oct
7
comment Why should your code not use 100% CPU?
Windows work this way. In Linux and many other systems threads that waited on something (user input) automatically get priority over threads using up their allocated time, so the interactive programs remain responsive even when you don't play with priorities.
Oct
7
awarded  Yearling
Oct
7
answered Should private key files be checked-in in git?
Oct
7
comment Should private key files be checked-in in git?
Is the key needed to build the software at all, a key needed to build the software and the key blesses it as official or is the key needed to get a particular installation do what it should?
Oct
7
comment Should private key files be checked-in in git?
@kostix: There are keys that are part of the source, not configuration. It depends how the key is used (and the question only gives limited details).
Oct
7
comment Should private key files be checked-in in git?
And how do you authenticate the public key if the client gets it from the internet? Sorry, that advice sounds extremely off. -1 for that part.
Oct
6
comment Why is object-level privacy difficult to use as a paradigm, and why is it desirable?
What about ruby. It has object-level privacy (and does not seem to have class-level one).
Oct
6
comment What should I do in C++ when implementing a container class: storing objects by value or by reference?
C++ does have a stack in standard library. It's creatively named std::stack so it shouldn't be hard to find. And this one is there since the initial SGI STL. You don't need to implement it.
Oct
2
answered FizzBuzz on Large Scale
Sep
29
comment How do I compile my software for all platforms from Ubuntu Linux 64 bit?
So what is your problem? Maintaining the build system or actually running the builds somewhere or what? And what build system and what language?
Sep
28
comment Why do most programming languages have special keyword or syntax for declaring functions?
Methods are fundamentally just a special kind of functions. -1. Note that Java (and by extension Scala) doesn't have any other kind of functions. It's "functions" are objects with one method (in general functions may not be objects or even first class values; whether they are depends on the language).
Sep
15
comment Is it bad practice to use Inheritance to associate methods with a basic container?
Collections don't have any virtual methods, so you don't get anything and you risk breaking the subclass invariants by direct calls to the base class methods. It's better to delegate.
Sep
12
comment Is it bad practice to use Inheritance to associate methods with a basic container?
You missed the point of the question. It is fine to create inner class but it is not fine to derive it from std::map.
Sep
10
comment How do you track what you and your team are working on day-to-day?
@andy256: Most of the time you should actually talk, but occasionally instant messages are useful. You can have app for that—softphone with voice calls, instant messages and preferably also ability to share screens. A chat with all team members joined also helps occasionally if Joe has a problem and you don't know who might be able to help.
Sep
8
awarded  Popular Question
Sep
8
comment Efficient “Object with weights” structure
You do have access to addresses, via the built-in id function. Or create a wrapper class or create custom dictionary (in python you can inherit from dict).
Sep
5
accepted What is use of universal character names in identifiers in C++
Sep
2
comment Is randomly refactoring code allowed in scrum
No amount of tests makes refactoring completely safe. SQLite is one of the most tested pieces of software, with total branch coverage, yet they still do emergency bugfix releases all the time.
Sep
1
comment Where to put sample data in project structure
@user1893354: At the same level as src. It is not a source.
Sep
1
answered Where to put sample data in project structure