775 reputation
413
bio website
location Israel
age 28
visits member for 4 years, 1 month
seen Oct 17 at 8:45

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.


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.
Jun
8
awarded  Caucus
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
31
answered USB software protection dongle for Java with an SDK which is cross-platform “for real”. Does it exist?
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.
Jan
13
comment Software Engineer VS “Harder” Jobs
@Ryan: No, but by that logic, if they wrote it in Java you could say that they didn't build the JRE, and if they wrote it in C++ you could say that they didn't build Windows, etc. You always use some underlying platform that you didn't build yourself. My point is that your task isn't challenging because it doesn't require programming to complete. If your definition of completing the task is performing some kind of programming, then I'd save that word document and create a batch file that starts up Word with that document. In that way, I've 'built' an application using Word's API.
Jan
12
comment Software Engineer VS “Harder” Jobs
This challenge is too easy. They can just open up Word, write "To-do List" at 24 pt, and press the Bullets button. Challenge complete, and meets all requirement.
Jan
5
comment Why the Select is before the From in a SQL Query?
@JeffO: Okay. SELECT FROM Customers COLUMNS FirstName, LastName, PhoneNumber.
Dec
15
awarded  Citizen Patrol
Nov
17
revised Releasing an open source project without getting embarrassed
added 211 characters in body
Nov
17
revised Releasing an open source project without getting embarrassed
added 211 characters in body
Nov
17
answered Releasing an open source project without getting embarrassed
Nov
3
comment What is the best retort to “premature optimization is the root of all evil”
Another retort, which is from the same article appears just before the above quote: The conventional wisdom shared by many of today's software engineers calls for ignoring efficiency in the small; but I believe this is simply an overreaction to the abuses they see being practiced by pennywise-and-pound-foolish programmers, who can't debug or maintain their "optimized" program.
Oct
21
comment Which comments instantly ring alarm bells when a programmer says them?
@BinaryWorrier: The more commonly used term is Cargo cult programming.
Oct
13
comment Do you have your own 'misc utils' library? What part are you most proud of?
ForEach() is useful, but be careful with it: items.Where(i => i < 0).ForEach(items.Remove).
Oct
13
comment Why do game developers prefer Windows?
People who write code are programmers. You don't have to be an expert - if you've written a program that someone else finds useful, you're a programmer as far as I'm concerned. Also, DotA (for Warcraft III), is neither a mod nor game-changing. It's simply a map, with the same graphics, gameplay mechanics, controls and rules as the original game. It simply introduced certain constraints, narrowed the scope by removing some mechanics, changed the configuration of some elements and repurposed others, which happened to be appealing to many and became a popular sub-sub-genre (like Tower Defense).