Reputation
3,091
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 21
Newest
 Enlightened
Impact
~189k people reached

  • 0 posts edited
  • 0 helpful flags
  • 188 votes cast
Apr
9
comment What is “Soft Coding”, really?
Configuration should be reserved for things that need to be configured. If the business rules aren't configurable in general, putting bits of it in configuration anyway buys you nothing.
Apr
6
revised How can I promote the use of the Builder pattern in my team?
deleted 1 character in body
Apr
6
revised How can I promote the use of the Builder pattern in my team?
added 705 characters in body
Apr
6
answered How can I promote the use of the Builder pattern in my team?
Apr
6
comment How can I promote the use of the Builder pattern in my team?
@rath Are there no new codebases being developed?
Apr
5
comment ASP.NET storing encrypted & salted Password
When you're looking at password hashing and the safety it offers, the basic assumption should be that your entire database has been compromised. From that point of view it doesn't matter whether you store them in one column or many. You could store them in completely separate databases, which may or may not make a difference, but definitely introduces a further level of complexity.
Apr
5
comment Three classes and get methods
Very nice, clear example.
Apr
1
comment Is it possible to have private or protected objects in Java? Or are all objects considered public?
@Jules All Java objects are instantiated by the new operator. Except the ones that are instantiated via deserialization. Not that it changes the validity of your comment, but it's an often overlooked fact of life in Java.
Mar
29
comment Bound Variadic Arguments: Bitmask vs Array
That is my opinion, yes. And things like raycasting do have quite heavy optimization needs.
Mar
29
comment Bound Variadic Arguments: Bitmask vs Array
You've said the answer already: performance and memory. There is also the possibility that an API is wrapping a lower-level API, which expects a bitmask, but that's just pushing the argument down a level. And the performance difference between a single 32 bit number and 32 32 bit numbers can be massive, if you consider things like cache line lengths and locality of access.
Mar
2
comment How can I test code that verifies data sanity?
Not an answer, just general advice: first of all, starting to write tests for a big, untested system like this is a daunting task. What I found very useful in these situation is measuring coverage when running your test. It should tell you which cases you need to write tests for, allowing you to have an idea of how much work is left. And a particularly helpful thing it does is flagging up which branches you left out when testing a complex set of conditions.
Feb
29
revised Where do Interface descriptions belong in a spec?
added 60 characters in body
Feb
29
revised Where do Interface descriptions belong in a spec?
added 60 characters in body
Feb
29
comment Merging waitable objects
That would be a very inefficient way of dealing with it. What language/platform are we talking about? Most of them should provide a low-level facility to wait on multiple conditions without spawning extra threads (which comes with its own unique set of problems anyway).
Feb
29
revised Where do Interface descriptions belong in a spec?
added 385 characters in body
Feb
29
comment Does PyPy or Jython run untrusted Python 3 code more secure while still being fast?
I don't know the answer but I know that in general, when running untrusted code this way, controlling access to the underlying infrastructure is only half the job, another part is to limit the memory and CPU resources available to it. Java isn't great at those things.
Feb
29
answered Where do Interface descriptions belong in a spec?
Feb
9
comment How exactly is an Abstract Syntax Tree created?
@Simon If you want to support both, you're better off looking up the shunting yard algorithm in its full glory. As algorithms go, that's an absolute cracker.
Feb
9
comment Algorithm to get all possible forms of a word with varying suffixes
@HarshaReaper Do you need to handle tenses of verbs too? "spy" -> "spied" is fine but does "fly" -> "flew" count as a suffix? By the way, what you're trying to do is called morphological derivation and is the exact opposite of stemming, so it might be useful to look at approaches to both.
Feb
5
comment When are enums NOT a code smell?
I would say enums aren't a code smell at all. Comparisons to enum constants are though. (e.g. if (type == Types.FOO) {...})