11,926 reputation
22247
bio website
location
age
visits member for 3 years, 1 month
seen 1 hour ago

4h
comment How to prepare a non-programmer for product manager position?
a manager doesn't need to know how to do what he is managing, her job is to make sure tasks get distributed and follow up when they don't get finished non of that requires knowing how to program
5h
comment Implementing a priority queue with a circular array
honestly for small N implementation details trump the big O, only way to know is to profile
5h
answered Implementing a priority queue with a circular array
2d
reviewed Approve suggested edit on How meaningful is the Big-O time complexity of an algorithm?
Jul
8
comment A vector of pointers to different derived classes of the same base class
@Mathsnoob make the functions virtual in the IEnemy base class
Jul
8
answered A vector of pointers to different derived classes of the same base class
Jul
8
comment Why isn't there a next operation on enums?
for exactly the reason you stated, if the programmer wanted a next then he should have provided one
Jul
7
comment How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?
@Wescrock sorry I expect that all exception classes end in Exception so force of habit after writing throw new
Jul
7
revised How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?
deleted 5 characters in body
Jul
7
comment How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?
@Wescrock the error is from trying to convert a String to a double, but it happens before setHourlyPayRate is ever called. and most of the time that can be handled in the UI before even touching the ProductionWorker class
Jul
7
revised How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?
added 583 characters in body
Jul
7
answered How can I perform a logical test to ensure that MY CUSTOM ERROR gets thrown instead of the NumberFormatException?
Jul
7
comment game unpublished due to copyright issue
cross posted on gamedev: gamedev.stackexchange.com/questions/79871/…
Jul
7
comment Locking database records
you can use an update with an extra where lock<now() clause to ensure no update happened to the lock field. Then you test how many rows were affected and select another record when it fails.
Jul
7
answered An algorithm for reconstructing a graph from its shortest path information?
Jul
7
answered Locking database records
Jul
7
comment game unpublished due to copyright issue
replace with something else, just cause you found it on the internet doesn't mean it's free to use
Jul
7
comment game unpublished due to copyright issue
just remove the batman references, that is copyrighted material and the other apps are either licensed or no-one has reported them yet
Jul
4
answered Terminology: queue versus fifo
Jul
4
comment Why isn't testing a language a supported feature at the syntax level?
@goldilocks assert is not meant to be for testing but debugging, there's a difference