28,722 reputation
666116
bio website brazzy.de
location Munich, Germany
age 37
visits member for 4 years
seen 23 mins ago
Software developer by profession, smalltime hacker and gamer by interest. Look at my website to learn more about me

1h
comment Is it difficult to develop a programming language which is closely related to human language?
Heh, very interesting point about natural languages going the opposite way.
Oct
24
comment How to spawn multiple “monsters” from a single class
@Giampli: use instance methods and fields instead.
Oct
16
comment How to make Doxygen documentation that helps in understanding the code?
Good documentation gives brief, abstract, high-level explanation of the purpose of a function and its parameters, a class and its members, etc., and explains design decisions.Most Doxygen-generated documentation is bad because it was generated from source code with no documentation comments, so it add no information.
Oct
13
comment Is this what “Cloud-Scaling” is?
@raptortech97: that AWS can do it doesn't necessarily mean your application can do it.
Oct
6
comment Java - Is it possible/good idea to reduce chance of crashing by catching Error?
@SJuan76: of course it depends on the structure of the application, but many (especially servers) have no global shared state, or keep it in a database with transaction semantics.
Oct
6
comment Java - Is it possible/good idea to reduce chance of crashing by catching Error?
Usually you'd catch an OOME at a pretty high level, with many objects going out of scope and freeing up space. And if the error was caused by a single oversized allocation request, then there really is no problem at all.
Oct
6
comment Java - Is it possible/good idea to reduce chance of crashing by catching Error?
Catching an OOM can often be perfectly reasonable and not a problem at all, when it's due to specific unsatisfiable allocation requests in a subtask.
Aug
11
comment throwing runtime exception in Java application
@Vipin: It's my personal opinion, but one that many other people share, e.g. Bruce Eckel: mindview.net/Etc/Discussions/CheckedExceptions - and the fact that no other language has adopted checked exceptions in the 20 years since Java was introduced speaks for itself...
Jul
1
comment using this in a constructor, why does it work?
@Mark: It's safe to do inasmuch as there is no undefined behaviour; the worst you can encounter (if you make a mistake) is object states (mostly null references) that are not possible according to your class contract. It's not a good practice because in maintaining that code, it's easy to lose track of the fact that you're handling a partially initialized object and introduce weird bugs.
Jun
1
comment Is this simple XOR encrypted communication absolutely secure?
I think it's worth stressing that "theoretically secure" means that it's mathematically proven to be unbreakable, provided that the keys are truly random and not reused. That's pretty much the strongest guarantee you can get anywhere in cryptography.
May
24
comment What is software maintenance?
@Prog: that is different for every app, but for large applications adapting to a changing environment is usually the biggest factor (because it often requires big changes and large apps have a larger environment). Bugfixing is probably in the second place (first for smaller or self-contained apps).
May
22
comment For web apps (vs web pages) why not put scripts and css inline?
I think people are misunderstanding the point that you imagine a webapp where the "main page" is completely static. In that case yes, you can get away with inlining everything.
May
18
comment Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
@Blrftl: the fact that hardware is just another implementation of an algorithm and the best multiplication algorithm we know is slower than O(n), let alone constant time. Using hardware you can trade space for time by parallel execution, but that doesn't matter unless you postulate self-replicating hardware.
May
18
comment Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
This is not about machine vs. human. CPU instructions work with fixed length integers; they are irrelevant to this question, which is really about working with arbitrary length numbers. And there have been substantial advances in multiplication algorithms as late as 2007.
May
18
comment Japanese Multiplication simulation - is a program actually capable of improving calculation speed?
I will immediately and without thinking about the technical details offer you a 100:1 bet that you cannot improve computing speed that way. Algorithms for doing arithmetic are a thoroughly researched topic. There is no chance whatsoever that you're the first person to think of implementing a well-known "manual" algorithm in software.
May
7
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: Yes, I would consider it OK, for pragmatic reasons. I don't think it's useful to be dogmatic about this. The point of decoupling in MVC is to improve maintainability by separating concerns. As long as the view's "touch" of the business logic is restricted to choosing which aspect of it to call, this separation is achieved.
May
7
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: good question, but artificially decoupling it wouldn't really achieve anything. It would make sense if the controller did more than just pass through the command. If you want to technically decouple it, you could use a map (MessageEnum -> CommandObject) and replace the if cascades with a lookup.
May
6
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: yes, exactly. Ideally, you'd find that there are other places where you need style-related behaviour or data, and can collect all this in the Style classes.
May
6
comment Is often using int constants as parameters in communication between objects considered bad design?
@Prog: see update.
May
1
comment Pair programming. How?
@JoshuaCarmody: that tends to make me suspicious.