775 reputation
412
bio website
location Israel
age 28
visits member for 3 years, 10 months
seen Jul 4 at 7:50

Since I don't like the restrictive copyleft nature of the Stack Exchange contribution license:

I hereby release all my contribution on the Stack Exchange network into the public domain. This applies worldwide.

In case this is not legally possible:

I hereby grant any entity the right to use my contributions on the Stack Exchange network for any purpose, without any conditions, unless such conditions are required by law.


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
7
comment What functionality does dynamic typing allow?
@wvxvw: The article is completely irrelevant to the topic at hand. dynamic and DynamicObject provides dynamic binding, not dynamic typing! At no point has any type been created at runtime. And of course you talked about anonymous types - your example talked about querying the database with an arbitrary projection plus object mapping, which with .NET involves anonymous types. Example: from c in db.Customers select new { c.FirstName, c.City }.
Oct
7
comment What functionality does dynamic typing allow?
@wvxvw: Incorrect. Anonymous types are generated at compile time. See Anonymous Types (C# Programming Guide): "Anonymous types provide a convenient way to encapsulate a set of read-only properties into a single object without having to explicitly define a type first. The type name is generated by the compiler and is not available at the source code level." You can even use a decompiler to open the generated assembly and see the anonymous classes that were generated.
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.
Oct
4
comment What functionality does dynamic typing allow?
Your example is simply incorrect - you mentioned C# and that's a perfect counterexample. The compiler looks at what kinds of query projections you created that are not of a defined type (i.e. of an anonymous type) and generates corresponding anonymous types for your during compile-time. Nothing of the sort is done at runtime, because it is simply not needed - it is possible to know at compile time what the query projections (or "mappings") are actually used out of all the multitude of possibilities.
Sep
28
comment Code while standing
@mattnz: You could, if they were close enough together. Just switch your video card from clone mode to extend mode. You may want to switch which one is the primary display according to your position.
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.