257 reputation
18
bio website
location
age
visits member for 3 years, 5 months
seen Aug 22 '13 at 12:33

Apr
24
awarded  Popular Question
Aug
22
comment Java Heap Allocation Faster than C++
there are specialized libraries in the c++ area that address that problem. The probably most famous example for that is SmartHeap.
Apr
29
awarded  Commentator
Oct
19
awarded  Nice Question
Jul
11
awarded  Yearling
Apr
15
comment Is Debug.Assert obsolete if you write unit tests?
best thing is Design by Contract though - in my opinion.
Apr
11
comment Command-Query-Separation and multithreading safe interfaces
no - I think you miss the whole point here. With CQS it is not trivial to write a class that is safe to be used from different threads. Doing the locking from the outside is not a good idea, because someone will mess it up.
Apr
11
comment Command-Query-Separation and multithreading safe interfaces
now I understand your solution. Thank you.
Apr
11
accepted Command-Query-Separation and multithreading safe interfaces
Apr
5
comment Command-Query-Separation and multithreading safe interfaces
sorry - I overread this. But if you have one stack per thread, you don't need a threadsafe stack. The main reason of having thread safe data structures is that different theads can access them safely to exchange data.
Apr
4
comment Command-Query-Separation and multithreading safe interfaces
saving value inside doesn't work as well since between try_pop() and get_last() someone else could have called try_pop(). What might work is saving the value associated with a thread-id from the calling thread. This guarantees at least that you get the value from your try_pop() call. I'm not sure whether it's a great idea as well - but at least it's close. To be totally on the csq side, try_pop should throw an exception the error case instead of an error code (true / false) but that's hairsplitting.
Apr
3
comment Command-Query-Separation and multithreading safe interfaces
external locks are not threadsafe design and what I'm searching is the best design to handle 2 without getting hard to understand code or an interface that is hard to handle correctly.
Apr
3
awarded  Editor
Apr
3
revised Command-Query-Separation and multithreading safe interfaces
added stack example
Apr
3
asked Command-Query-Separation and multithreading safe interfaces
Aug
25
comment Can it be useful to build an application starting with the GUI?
that's why GUI prototyping tools like balsamiq.com showed up. You can show how the GUI will look like and get early feedback from the customer. On the other hand, the GUI created by the tool have a totally different art (a little bit like drawn by hand) so that the customer directly understands that this will not be the final look of the product. And it can't be used as starting code for the product - just as design.
Aug
24
awarded  Scholar
Aug
24
accepted Scrum: how to handle backlog-items that are longer than one sprint
Aug
24
comment Scrum: how to handle backlog-items that are longer than one sprint
at the moment, it is more a problem that I think I will encounter in the future - and I'd like to handle it correctly.
Aug
24
awarded  Student