Reputation
775
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 13
Impact
~27k people reached

  • 0 posts edited
  • 1 helpful flag
  • 146 votes cast
Jul
25
comment Why is polling accepted in web programming?
I disagree that every solution ends up being low-level polling. You're confusing polling required to send data with polling required to know when a client is lost. Yes, the latter will always end up polling somewhere down the protocol stack, but that can be at a very low frequency (such as once every five minutes) whereas polling for actual data every second is a waste that CAN be avoided with true push notifications that is NOT polling at any level of the stack.
Jan
30
comment Why are the Java 8 java.time classes missing a getMillis() method?
I think that giving people several choices makes it more likely that they pick one of those choices, even if their ideal choice is under "other". I could be wrong, though.
Aug
23
comment Is the Java package name convention flawed?
@gbjbaanb: Because it provides very good uniqueness, but not universal uniqueness, which is a big advantage. You still want to prevent possible conflicts, but aiming for universal uniqueness provides diminishing returns. It's better to aim slightly lower and reap additional advantages.
Aug
8
comment How do I manage the technical debate over WCF vs. Web API?
"3. WCF models are not POCO" that is simply incorrect. You do not have to use any attributes since .NET 3.5 SP1.
May
10
comment Are there any statistics on how often code is read?
@Sarien: And why not make it Tobii-enabled? Not only would you have line-by-line statistics, but even character by character statistics!
May
10
comment How does Go improve productivity with “implicit” interfaces, and how does that compare with C#'s notion of Extension Methods?
Isn't 'implicit interfaces' just a form of duck typing?
Feb
14
comment Should the variable be named Id or ID?
You're right about using Id in C# (and .NET in general), but for a different reason. The rule is capitalizing all letters of a 2-letter acronym (e.g. IPAddress) and only capitalizing the first letter of longer acronyms (like the example of XmlDocument you gave). But Id and Ok are the exceptions to this rule, specifically mentioned. For the full brief, see the Capitalization Rules for Acronyms section of the Capitalization Conventions article. But even Microsoft breaks that rule (e.g. DbConnection vs. DBNull)
Oct
18
comment How to prevent code from leaking outside work?
I'm baffled by "clever" asymmetric encryption algorithms used on the web, and I am unable to bypass them despite being just a developer tool written by "us" developers. Care to enlighten me?
Oct
4
comment Downgrading from GPL v3 to GPL v2
Wow, I didn't realize copyleft licenses inhibit freedoms even amongst themselves, to the point of creating a bureaucratic hell over simple versioning.
Sep
21
comment Is the Java package name convention flawed?
@user359996: Like I said, I don't see why universal uniqueness is a problem that needs solving. Why would you need names to be unique across mutually exclusive code bases? And Java's style doesn't guarantee it, since domain names ownership can switch hands. A developer who owns jUtils.com can develop a com.jutils.* library that many use, and then sell his domain to a completely different developer who develops a different com.jutils.* library which is also popular, but has collisions with the existing library.
Sep
20
comment Is the Java package name convention flawed?
@user359996: Uniqueness is only required within your own codebase (i.e. classes you need to refer to by name, either your own or 3rd party), not universally. Striving for that is simply wasteful and overly verbose. Given that, I think these guidelines provide the required uniqueness, and also reasonable constancy. Why exactly do you think they don't?
Aug
23
comment How to explain that sample size does not influence project length
Maybe switching the analogy to train tracks would work better? It takes the same amount of effort to lay down train tracks regardless of how many trains travel over it or how much cargo they're carrying.
Jul
12
comment Why does F# have an interactive mode but not C#?
Interesting. I would add that the experience gained building so many compilers for the .NET framework prior to the release of VS2010 (I count four C#, four VB.NET, two J# and two C++/CLI) must have affected how a brand new compiler for a brand new .NET language was built. I'm sure it was built in a Roslyn-esque style with lots of thought around how to enable the Compiler-as-a-Service scenario, which seems like the direction you'll be developing all future .NET compilers and compiler revisions. To me it seems the era in which F# was born inevitably played a role in how its compiler was written.
Jul
12
comment Why does F# have an interactive mode but not C#?
C# does have a REPL. It's called the Immediate Window and has been available for quite a while. It has certain limitations, some of which have become increasingly noticeable since C# 3.0, as new language features were not supported by it, but it nevertheless is a full-fledged REPL.
Mar
22
comment Sample code under MS-PL: must leave original comments?
But if you only distribute the compiled binaries, which don't contain comments anyway, then why would you need to leave the copyright notices at the top of the file?
Mar
22
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@BlueRaja: That's not a valid argument. Unless you use the Express edition, Visual Studio is 'far from free'. So is ReSharper, Beyond Compare, a profiler, code coverage tool, build server, etc. And exactly why is something that costs money not an option for most people (developers)? Are they doing charity work? Don't they have a company paying them orders of magnitude more money for their salaries, and would be delighted to make them more productive by saving them the masochistic rituals that are the first five bullets of your post?
Mar
22
comment If you had two projects with the same specification and only one was developed using TDD how could you tell?
@BlueRaja: I'm guessing you've never hear of TypeMock Isolator.NET? It can mock concrete classes that don't have an interface (even sealed classes), it can mock new, it can mock static methods and properties (and static constructors). Hell, it can even mock stuff like DateTime.Now.
Mar
5
comment Coding Guideline : Methods shouldn't contain more than 7 statements?
+1: Arbitrary limits are only arbitrarily useful. A method should contain a single coherent operation at a single abstraction level. Breaking such an atomic unit makes the code more complex, making it harder to comprehend the code.
Jan
19
comment Are there good techniques or tests for naming types?
I also dislike the elaborate Hungarian notation you've added to variable names. I shouldn't need to care if a collection of person IDs is a List, array, IEnumerable or ConcurrentQueue. It's a bunch of IDs I need to enumerate over, and the implementation detail of how they're stored is unnecessary mental baggage. Though I do generally agree that if a longer name is considerably more descriptive, it should be favored over a shorter, less clear name.
Jan
14
comment Software Engineer VS “Harder” Jobs
@Ryan: All I'm saying is that if you're going to give a non-programmer a programming task, have it be a task for which programming is actually an essential part. Otherwise they won't be very impressed by a task to solve a problem that can be easily accomplished by opening OneNote rather than spending hours developing an application.