29,306 reputation
667118
bio website brazzy.de
location Munich, Germany
age 38
visits member for 4 years, 3 months
seen 3 hours ago
Software developer by profession, smalltime hacker and gamer by interest. Look at my website to learn more about me

Feb
18
comment Abstraction in algorithms
@Ahmad "comparable objects" is exactly the kind of thing that should be part of an abstract description of an algorithm. There are in fact sorting algoritms (e.g. radix sort) where that is not sufficient. Abstracting things in terms of input and output is part of software engineering or (more specifically) requirements engineering.
Feb
5
comment What's the tradeoff for type inference?
Note that the new HashMap<>(); syntax was only added in Java 7, and the lambdas in Java 8 allow for quite a lot of "real" type inference.
Jan
18
comment Writing my own voice recognition code
I'm afraid that the 2.2, the part where you say is "not really for discussion here", is where nearly all the difficulty is contained. Extracting a numerical value(s) from an audio sample where simple numerical comparison corresponds to similarity as sound is either extremely hard, or even a fundamentally wrong approach.
Jan
7
comment Why would a program require a specific minimum number of CPU cores?
Funny, I've been playing Dragone Age Inquisition on a first-generation i3 for over 30 hours now, without "massive frame drops". Got a new graphics card for it, though.
Dec
28
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 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 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 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.