Reputation
13,551
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
6 43 72
Newest
 java
Impact
~497k people reached

Feb
4
comment Why is using an optional preferential to null-checking the variable?
@QmunkE, yes, you should only call Optional.get() if you already know that optional isn't empty (either because you called isPresent or because your algorithm guarantees it). However, I do worry about people blindly checking isPresent and then ignoring the absent values creating a host of silent failures which will be a pain to trace.
Feb
3
revised Why is using an optional preferential to null-checking the variable?
added 140 characters in body
Feb
3
answered Why is using an optional preferential to null-checking the variable?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
But don't let me stop you. I'm just offering my opinion.
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
@cat, your design is somewhat different, because you've got multiple stacks and are planning to do overloading in the runner rather then the stack. Those are the things which I think are going to contribute to complexity.
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
@cat, I'm going to predict that you'll find that doesn't work out as well as you think it will. I suspect your runner will end up more not less complicated as a result of what you've done.
Jan
30
answered Does exception handling belong at the lowest level of the runtime?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
what kinds of methods does your stack machine have?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
Ok, what's the distinction between the runner and the stack machine?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
That confuses me. The runner is running at run-time (I assume), so how can it be doing static-type checking?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
Is the type-checking done by the runner static or dynamic?
Jan
30
comment Does exception handling belong at the lowest level of the runtime?
What makes you think that your stack machine isn't a virtual machine in the normal sense? Are you saying that Python's control flow is implemented via exceptions, or your language is?
Jan
28
comment Handling exceptions I don't know about
What are you doing when you catch these errors?
Jan
28
answered Can “return this” pattern be optimized to no cost performance?
Jan
28
comment Can “return this” pattern be optimized to no cost performance?
Are you aware the wikipedia quote has nothing to do with fluent interfaces?
Jan
27
comment Concept to differentiate between html tags and angle brackets
why are your users entering html?
Jan
24
awarded  java
Jan
24
comment Trying to understand P vs NP vs NP Complete vs NP Hard
NP-hard is the hardest problem in NP, not NP-complete.
Jan
24
comment Trying to understand P vs NP vs NP Complete vs NP Hard
@Nakano, hmm... I wouldn't dare try to explain complexity classes to a five year old. :P
Jan
24
comment Trying to understand P vs NP vs NP Complete vs NP Hard
In practice, we typically assume that you've chosen a reasonably compact representation. In theory, checking for integer factorization of a unary number is a different problem than the integer factorization of a binary number.