13,384 reputation
1739
bio website
location Brno, Czech Republic
age
visits member for 2 years, 9 months
seen 4 mins ago

15h
comment Efficient ordering of objects online
How come you can't store it locally? Even simple JS should be able to do it.
Mar
27
comment When to make a method part of an interface or a concrete implementation?
Interfaces should represent methods the client of the interface needs. Not methods the implementer of it provides.
Mar
20
comment Filling the gap between Conception and Unit Test
@toddmo I think you are getting into area of "opinion" and "which tool to use" which are both off-topic here. In this case, it is heavily on what fits you and your project. I believe this is not possible without some level of experimentation. Some people are simply able to model the whole thing in their head while others need some kind of tool to help visualize the whole design flow.
Mar
20
answered Filling the gap between Conception and Unit Test
Mar
19
comment How to model state of leaving/entering home
@DocBrown Of course. But OP was asking only about one person. I believe even himself realizes there is no way to detect multiple people with just sensors he has.
Mar
19
comment How to model state of leaving/entering home
@DocBrown Thats what the purpose of the diagram is. To combine closing, opening, movement and timing events to determine if someone entered and left. You can see there are two events with "/ person entered" and "/person left" in them. If those are executed, then the counts change.
Mar
19
comment How to model state of leaving/entering home
@DocBrown Is someone home = (Initial number of people - people that left + people that entered) == 0
Mar
19
answered How to model state of leaving/entering home
Mar
17
answered Strategies for handling or avoiding race conditions
Mar
14
comment More efficient alternative that checks if a list can be made a palindrome
@Rinzler With your definition, even using Python, which uses a GC and can do anything while interpreting your code. You should be using C if you really want to be sure operations you are making have defined complexities. Also, "accessing elements of a list" has much less defined complexity than "accessing elements of an array". Hell, in C, you would have to use array, because list is a library structure with not clearly defined complexity.
Mar
14
comment More efficient alternative that checks if a list can be made a palindrome
@Rinzler My algorithm is not using any such function. Arrays are core construct in any language.
Mar
14
revised More efficient alternative that checks if a list can be made a palindrome
added 13 characters in body
Mar
14
answered What's the algorithm should I use for seeing how well 2 strings match?
Mar
14
answered More efficient alternative that checks if a list can be made a palindrome
Mar
14
comment How is the UnitOfWork pattern related to Monadic programming?
UoW : "Maintains a list of objects affected by a business transaction and coordinates the writing out of changes and the resolution of concurrency problems." Monad: "In functional programming, a monad is a structure that represents computations defined as sequences of steps: a type with a monad structure defines what it means to chain operations, or nest functions of that type together." I don't see how they are even similar.
Mar
9
awarded  Good Answer
Mar
9
comment The dream of declarative programming
@BAR Golem != Golum Golem is from Jewish folklore
Mar
9
comment Interview question - Robot in a grid
@MikePartridge Yes, thanks.
Mar
9
revised Interview question - Robot in a grid
added 1 character in body
Mar
9
awarded  Nice Answer