Reputation
29,794
Next tag badge:
714/400 score
69/80 answers
Badges
6 67 123
Newest
 Nice Answer
Impact
~874k people reached

1d
comment floating-point number stored in float variable has other value
For a somewhat easier introduction: floating-point-gui.de
Jun
23
comment Why child record is not showing in Recycle Bin in In Master-detail Relationship
This is a technology-specific question and therefore should be asked on stackoverflow.com, not programmers.SE. But you're not even given the technological context, so it's just impossible to answer.
Jun
20
comment How can I avoid the use of strings?
@AlexFoxGill: yeah, but in any sane GUI framwork, you should get the result of the user's choice as an object directly without having to parse a string.
Jun
7
comment Security issue about making my code public in GitHub
@Pacerier: I'll take you up on that wager anytime. Note that the statement is that open source increases security, not that it results in perfect security. You can cite examples for bugs in OSS until the cows come home and it proves absolutely nothing to the contrary. There actually is proper research: archive.wired.com/software/coolapps/news/2004/12/66022 - yes, it's over 10 years old, but until you can find something concrete with contrary findings, it stands.
May
27
comment Should I build a multi-threaded system that handles events from a game and sorts them, independently, into different threads based on priority?
@supercat: if there are sufficiently many interactions, you could end up with the "clique" being the whole world. Also, establishing globally that "everything has been resolved" could be quite nontrivial.
May
27
comment Should I build a multi-threaded system that handles events from a game and sorts them, independently, into different threads based on priority?
@supercat: I'm pretty sure that won't work. You can't easily "go back and redo" when you detect a collision because you already have proceeded with other calculations based on the new state.
May
8
comment What was the date of the Java Alpha and Beta releases
@Philipp: quite possibly both.
May
6
comment Best strategy to find the root cause when exception is swallowed by 3rd party
@YazadKhambata: the s in strace does not stand for "stack". It will not give you any information about your exception directly, but it may reveal what it was trying to do that caused the exception, e.g. access a file that doesn't exist, or open a network connection that is blocked by a firewall.
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...