Bobby

Vienna, Austria

bonsaimind.org

Age: 28

I'm a guy from Austria who just enjoys coding and finding solutions to problems. At the moment I'm primary coding in VB.NET/C# and PHP at the moment, but in my spare time I try to keep my skills up with Java, PHP, Clojure and some other languages..

You know, coding is a little bit like jumping from a rooftop while you think you can fly...it seems like a good idea at that time.

Apr
22
awarded Popular Question
Apr
18
comment Processing buy and sell orders
Have a List of Integer, convert the data you read directly into Integer and then look into Collections.sort and Collections.binarySearch. Your two nested loops are replaced with a for-each loop and the binary search (loop through all buys and check if they exist in the sells list with binary search).
Apr
17
answered Processing buy and sell orders
Mar
24
awarded Nice Answer
Mar
19
awarded Popular Question
Mar
15
awarded Yearling
Mar
15
awarded Yearling
Mar
4
awarded Nice Answer
Feb
25
awarded Notable Question
Feb
20
awarded Good Answer
Jan
24
awarded Supporter
Jan
24
awarded Autobiographer
Jan
24
comment Should I share my horrible software?
@mankoff: Please don't. That license is abysmal. Releasing it under 3-Clause BSD with a big sticker on it warning about the quality would be a much better option.
Jan
8
comment Basic 30 TPS server loop
@Croccy: I can't suggest an alternative, I never was in the position to have such an requirement. The only helpful thing I can tell you is, if you have the requirement to be exact, and I mean down to the millisecond, then .NET might not be the best way to go (heck, even Microsoft Windows might be a problem in that). If you need it even more exact, in the nanosecond range, there's a good chance conventional OS' won't fit your requirements, VxWorks or Linux with RT patches might be an alternative. Or you have to sacrifice the CPU (or a goat, depends on the OS).
Jan
3
answered Basic 30 TPS server loop
Jan
3
comment Basic 30 TPS server loop
"...accurate enough for a real-time server..." just for the sake of clarity. Real-Time Operating Systems are not about being fast for any operations, they're about being able to run the same code in the same amount of time. S if you have some calculation that takes 45ms to complete, the RTOS will guarantee that it will always run in the same amount of time. I'd be surprised if an internet facing server would have a RTOS on it.
Jan
3
comment Entity class for a Slick2D game
I'd suggest to read a good book about OOP design and patterns. But the short answer is that encapsulating fields behind getters allows to change the behavior of the getters/fields without the need to change the clients that use that object.
Jan
3
comment Entity class for a Slick2D game
This question appears to be off-topic because it is about an OOP design decision, not about review of specific code.
Dec
30
awarded Nice Answer
Dec
15
awarded Yearling
1 2 3 4 5