11,859 reputation
11644
bio website
location
age
visits member for 2 years, 9 months
seen 9 hours ago

Sep
27
comment Should you hard code your data across all unit tests?
The problem with tutorials/examples is that they need to be simple, but you can't show solution to a complex problem on a simple example. They should be accompanied by "case studies" describing how the tool is used in real projects of reasonable size, but they rarely are.
Sep
26
comment Why to have an application with GUI on linux when command line is available?
Note: Questions (and answers) can be edited here. You should really extend the question, not provide details in comments.
Sep
26
comment Why to have an application with GUI on linux when command line is available?
There are no general answers. For some uses CLI is better and for other GUI is. Without stating the use-cases, it can't be reasonably answered.
Sep
25
comment Is it bad practice to make an iterator that is aware of its own end
@aaronman: I've added (boost-based, it's quite a lot of typing without boost) example how to adapt the simple generator interface to iterators and boost.range.
Sep
25
revised Is it bad practice to make an iterator that is aware of its own end
added 1975 characters in body
Sep
25
comment Is it bad practice to make an iterator that is aware of its own end
@aaronman: There is a difference whether the iterator is the generator and when the iterator wraps the generator. Iterators are expected to be cheaply copyable and the generator does not have to be copyable at all (like istream is not). So it's better to create a generator with separate API and wrap it in iterator (similar to how istream_iter wraps istream) than to implement the generator with iterator API.
Sep
25
comment Is it bad practice to make an iterator that is aware of its own end
@aaronman: It's easy to wrap the "generator" in proper iterators and provide appropriate begin and end functions for range-based for.
Sep
24
comment Is it bad practice to make an iterator that is aware of its own end
Those are not iterators. They are "generators" or "ranges". C++ is trying to introduce those as well. See the links in other answers.
Sep
24
revised Is it bad practice to make an iterator that is aware of its own end
added 474 characters in body
Sep
24
answered Is it bad practice to make an iterator that is aware of its own end
Sep
23
comment When is it not appropriate to use the dependency injection pattern?
All the points are about using different form of injection rather than not using it altogether. +1 for the link though.
Sep
23
answered MPL 2.0. dynamically linking to GPL
Sep
21
awarded  Nice Answer
Sep
13
comment What is the benefit of 64 bit A7 in iPhone
But they are completely different architecture (x86-64 vs. armv8) anyway. Zero gain from that (sanely written program in C/C++/ObjC will work on any number of bits even if it's not a requirement).
Sep
13
comment How do you overcome your own coding biases when handed legacy code?
Things You Should Never Do and Big Ball Of Mud should be mandatory reading on this topic for all programmers.
Sep
13
comment I hate one of our coding standards and it drives me insane, how to process it?
@GilesRoberts: Linus goes nuts if you format git commit messages "incorrectly", because it does not work with the established review process. One that works well for the project for 20 years and involves hundreds of people. Some process rules are much more important than code formatting ones.
Sep
13
comment Distributing a proprietary application together with GPL software
@hyde: What GPLv3 changes from GPLv2 is that it clarifies the source must be sufficient to replace the GPL part with modified versions and grants patent rights. But it does not change the extent of things on which GPL applies.
Sep
13
comment Distributing a proprietary application together with GPL software
@hyde: No, they don't. They just complicate the matter between themselves, because you are not allowed to link GPLv2 (without the usual "or later") and GPLv3 code together!
Sep
12
answered Distributing a proprietary application together with GPL software
Sep
12
comment Graph to show decreasing desirability when taking shortcuts
Rewrite is not an option. Refactor, but don't think the existing code is totally worthless. It is the only think that remembers both past decisions and past mistakes.