7,180 reputation
23254
bio website shog9.com
location Colorado
age 34
visits member for 3 years, 10 months
seen 14 hours ago

Community Coordinator for Stack Exchange, Inc.

If necessary, contact me via email to stackexchange.com: shog@...

For by thy words thou shalt be justified, and by thy words thou shalt be condemned.


Mar
5
comment Do you prefer conciseness or readability in your code?
The last example is intentionally bad, @user193130, to illustrate a case in which pure brevity leads to undesirable results. That said, avoiding multiple evaluations of a boolean expression for purely performance reasons is silly unless you've profiled your code and found that doing this has a significant effect in some area.
Jan
5
comment How to Name Different Branches with Identical Functionality in Semantic Versioning
I made a few small revisions to your comment, @skozz. Catch more flies with honey and all that...
Oct
29
comment Validating data to nest if or not within try and catch
@Skippy: have you had the time to check out Code Review? You might find it useful... But yes, try to always include some information on what you're hoping to accomplish - it makes identifying and evaluating the question much easier for others. Small amounts of irrelevant info can always be removed later.
Jul
31
comment Why must a constructor's call to the superconstructor be the first call?
@Val: your previous comment was deleted because, while you were trying to point out problems with the answer in a reasonable fashion, you got kinda personal. I've corrected your last comment - please try to stick to critiques of the answer itself, not its author.
Apr
11
comment Why aren't macros included in most modern programming languages?
They can be worth their weight in gold when you need a simple syntax for something specific. But yes, they can be - and have been - abused pretty badly. @Dunk
May
17
comment Is it wise for a high level developer to spend time studying assembly?
@Jim: When I wrote this, probably once a week.
Nov
10
comment Is there a good Cognitive Architecture for implementing intelligent software agents?
Hey, sorry for screwing up your bounty a bit... Was testing something.
Nov
9
comment Where did the notion of “one return only” come from?
@John, you seem to be trying to answer the question without actually answering it. It's a fine reading list, but you've neither quoted nor paraphrased anything to justify your claim that this essay and book have anything to say about the asker's concern. Indeed, outside of comments you've said nothing substantial about the question whatsoever. Consider expanding this answer.
Nov
9
comment Avoiding new operator in JavaScript — the better way
So wait - are you looking for a better way to accomplish this, or are you just looking for someone to give you code so you can have variable-argument object creation without new? Because if it's the latter, you're probably asking on the wrong site. If it's the former, you might want to not dismiss suggestions regarding using new and detecting errors so quickly... If your app is truly "heavy", the last thing you want is some overwrought construction mechanism to slow it down. new, for all the flack it gets, is pretty speedy.
Nov
3
comment Why are brackets required for try-catch?
@Billy: which is a pretty good argument for doing it this way - force the writer to explicitly disambiguate the construct. This is the same argument often made for bracketing nested if/else statements though, even though the compiler doesn't require it.
Nov
3
comment Why are brackets required for try-catch?
@Billy: I think you're glossing over the potential ambiguity present in if / if else... It's easy to say "it's easy to just say" - but that's because there's a hard rule for resolving the ambiguity that, incidentally, disallows certain constructs without the use of brackets. Jerry's answer implies this was a conscious choice made to avoid confusion, but surely it could have worked - just as it "works" for if / if else.
Nov
3
comment Why are brackets required for try-catch?
bah, just edited my comment to remove that ambiguity. What I'm getting at is that this could be a more effective answer than Tom's (above) if it went to greater lengths to illustrate how the bracket-less construct could have worked, but in a confusing manner (Billy's comment on Tom's answer seems to imply that it could not have worked, which I believe is incorrect).
Nov
3
comment Why are brackets required for try-catch?
The OP is asking about the brackets around both the try and the catch block, while this appears to be referencing those around the try (the first paragraph could be understood to reference both, but the code illustrates only the former)... Can you clarify?
Oct
14
comment What are good keyboards for programming?
@compman: it comes down to personal preference, really. I, personally, HATE the layout and feel of the MS Natural keyboard. The keys are too soft (yes, really), the "ergonomic" bend is the wrong angle for my hands, the re-grouping of the function and cursor keys ensures I make unnecessary errors when moving to/from it from other keyboards, and the big fat space bar gets in my way. YMMV...
Sep
21
comment Why should you prevent a search engine from indexing your development server?
Also see the FAQ: avoid subjective questions where your answer is provided along with the question, and you expect more answers
Sep
12
comment In plain English, what is recursion?
See also: stackoverflow.com/questions/3021/…
Sep
1
comment Is it common to lie in job ads regarding the technologies in use?
Edited to emphasize what appears to be the core question, while deemphasizing your bitterness over being done wrong.
Aug
25
comment Implementing technical paper algorithms in C++ or MATLAB
@nibot: since that site is still in private beta, and the author of this question isn't a member of that site, no. Feel free to ask something similar there though...
Aug
24
comment Implementing technical paper algorithms in C++ or MATLAB
I'm migrating this, based on the understanding that you're more interested in general practices and and suggestions than in the implementation of the specific example you've given. If this is not the case, please flag in one or both places, and we'll look at clarifying or perhaps bifurcating the question...
Aug
2
comment Can't I just use all static methods?
This isn't necessarily a problem. Some languages provide other mechanisms (non-virtual methods in C++ and C#) for accomplishing the same thing intentionally - C# even provides "sealed" methods to further extend this idea! Obviously, you wouldn't do this just for the heck of it, but it's a good technique to be aware of...