Reputation
4,133
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
9 22
Impact
~159k people reached

  • 0 posts edited
  • 5 helpful flags
  • 111 votes cast
Jan
30
comment Should we avoid language features that C++ has but Java doesn't to increase maintainability?
Jus' sayin', I was the last to vote this as "primarily opinion based". Some hot questions are hot because they are extremely good questions, but other hot questions are hot because they're just trolling. This is trolling.
Jan
30
comment Should we avoid language features that C++ has but Java doesn't to increase maintainability?
Many (almost all?) of the complaints in the C++ FQA are nonsense. Modern languages are huge. C++ is rather small in comparison to Python, Ruby, Perl, and yes, Java. Ask a basic question in those languages on stackoverflow and the first answer is almost inevitably along the lines of "Why didn't you import SomeVeryBasicPackage and just do this?" Ask an advanced question and the first answer is almost inevitably along the lines of "Why didn't you import SomeMagicalPackage and just do that?"
Jan
27
comment Should we avoid language features that C++ has but Java doesn't to increase maintainability?
@EdPlunkett -- Whenever someone tries to force that Yoda nonsense on any of the projects I work on, I ignore that mandate. If I have people working for me, I tell them to ignore it. Doesn't matter if it's C++, C, python, Java, whatever. Language regard to withstanding not, ugly and backwards it is.
Jan
24
revised Could ANSI C standardized linkage syntax from early C wrong?
added 1073 characters in body
Jan
24
comment Could ANSI C standardized linkage syntax from early C wrong?
K&R was written for humans. The standard is written primarily for language lawyers and compiler writers. I'm not sure if they qualify as "human".
Jan
24
comment Could ANSI C standardized linkage syntax from early C wrong?
@FISOCPP - You are apparently interpreting K&R's "externally static" to mean extern static. That is incorrect. extern static is illegal (also, extern auto, static auto, etc.) At most one of the storage class specifiers (auto, extern, register, static, and typedef) can be used to qualify any one variable.
Jan
24
comment Could ANSI C standardized linkage syntax from early C wrong?
Asking Did ANSI C make a mistake ... is a loaded question.
Jan
24
comment Could ANSI C standardized linkage syntax from early C wrong?
No, they did not make a mistake. It's best not to ask loaded questions.
Jan
24
comment Could ANSI C standardized linkage syntax from early C wrong?
@FISOCPP - extern at block scope does not necessarily mean something with external linkage. At block scope, extern refers to something declared at a higher scope. Qualifying something at extern at block scope only refers to something with external linkage in the special case that there is no visible declaration at a higher scope.
Jan
24
answered Could ANSI C standardized linkage syntax from early C wrong?
Jan
12
answered What does it mean to declare a volatile variable?
Nov
25
comment Is there anything that can be done with recursion that can't be done with loops?
@WizardOfMenlo - Regarding the Ackermann function, what you wrote is not true. Writing that in a recursive language of choice and in FORTRAN and in assembly (sans recursion) was an assignment in a comparative languages class I took ages and ages ago. The recursive implementation can be a one liner. For example, def a(x,y):return y+1 if x==0 else a(x-1,1) if y==0 else a(x-1,a(x,y-1)). The non-recursive implementations were a mess, but it can be done.
Oct
25
answered Why do negative numbers evaluate to true in PHP?
Oct
25
comment What to do with the code from my rejected pull request?
Fork it. If your code as good as you think, your forked project may well become more popular than the original. To avoid this in the future, try communicating with the BDFL of the project prior to undertaking the effort.
Oct
19
comment Where to put try-catch statements
This depends very much on the language. This question isn't tagged with a language, but the code appears to be Java. In python, using exceptions for flow control is standard operating procedure, EAFP (Easier to Ask for Forgiveness than Permission).
Oct
19
answered Is `isNaN`' a bad design or a has-to-be design with tradeoffs?
Aug
26
comment Delivering source code - refactor for clean up?
Your client has canceled the project. Don't do any more work. If you've been paid for the work you have already done, deliver what you have in whatever state it is in to your client. If you haven't been paid for that work, don't even do that. When projects are canceled and the work to date is collected and archived, it's inevitable that the result is an incomplete, not very pretty, and somewhat inconsistent piece of work.
Aug
26
comment Should the ternary operator be used outside of assignment statements?
Keep in mind that the Jason Voorhees may be assigned maintain that code of yours.
Aug
26
comment How do you troubleshoot an issue that you simply can't duplicate?
Have you tried following the scenario as described by the users instead of following what you think is the scenario? As the developer of the application, you have a certain way of using it in mind. Think like a user, not a developer. If you can't do that, find someone who can.
Aug
15
awarded  Autobiographer