1,757 reputation
714
bio website
location Karlsruhe, Germany
age 30
visits member for 3 years, 9 months
seen Dec 14 at 22:40

Mar
14
awarded  Yearling
Jan
10
awarded  Nice Answer
Aug
17
revised Efficient way of evaluating an array of strings then add to an array in Ruby
Example
Aug
17
answered Efficient way of evaluating an array of strings then add to an array in Ruby
Mar
14
awarded  Yearling
Feb
26
comment Re-gaining confidence of senior programmer
I don't know the app, but a proper framework often seems to be a better decision than writing something yourself, especially if you are a novice. Don't let yourself be disheartened by such comments. That said, you should definitely try to write your code from ground up as an exercise on a pet project.
Dec
14
comment Returning status code where one of many errors could have occured
What's wrong with PHP exceptions? Not knowing PHP they seem to be fairly Java-like to me. In Java the answer to me would be clearly to throw an exception and let the controller handle it.
Oct
22
comment Generic rule parser for RPG board game rules - how to do it?
Do you want some sort of user interface to enter these rules or did you consider using some scripting language? WoW for example uses Lua: wowwiki.com/Lua
Jul
5
comment Best practice for marking a bug as resolved in Bugzilla ?
This seems to be a reasonable and scalable (for components that are used in multiple products) solution. If the second ticket seems to much work try and automate it as much as possible, streamline the process don't bend it.
Jul
2
comment Writing better timesheet
grammarist.com/spelling/math-maths
Jun
19
comment Are too many assertions code smell?
Assertions in code for me are complementary to the unit testing assertions. You won't have 100% test coverage and the assertions in code will help you to narrow down failing unit tests faster.
Jun
8
awarded  Constituent
Jun
8
awarded  Caucus
May
24
comment Convert list of 24-hour-precipitation values into total-by-hour
This surprisingly hard. Every value you record is made up of 24 unknown numbers summed up. You would need 24 equations to solve that, that is 24 equations that have the same exact unknowns in them but because you have a sliding window that's not the case. I can't imagine that this is "unsolvable", but it sure looks like it to me. Another way to think about it: You are gaining one unknown for every P(N-x) you add, so in the end the number of equations and unknowns even themselves out again.
May
23
comment Dependency injection: How to sell it
Using DI is (at least in Java, C#, ...) almost a natural consequence of using unit tests. Does your company use unit tests?
May
23
revised Web API design best practices - having many (similar) operations
Changed sinatra link to point to the documentation; Added syntax highlighting
May
23
revised Web API design best practices - having many (similar) operations
Added code for the api
May
22
answered Web API design best practices - having many (similar) operations
May
21
comment Firefighting allocation problem
It might not be a knapsack problem, but it's definitely a generic optimization problem. The minimum number of firefighters per priority translates into a constraint, same goes with the firefighters needing a truck. Your cost or target function might be tricky, but I would try something like for fire in fires { cost += fire.priority * fire.number_of_assigned_firefighters }.
May
13
comment What algorithm(s) can be used to achieve reasonably good next word prediction?
Well, a larger n yields a longer list which will give you a more precise prediction but is also more expensive to search in. So it's a tradeoff between precision and computation time.