1,314 reputation
1918
bio website
location New York, NY
age 26
visits member for 3 years, 4 months
seen 20 hours ago

Jul
8
comment Why do some functional programming languages use a space for function application?
I would like to point out that shell scripts (e.g. bash) generally don't use parameters to call commands. PowerShell sort of has the worst of both worlds in that functions are declared with parentheses and called without them.
Nov
21
comment Visual Studio versions and Team Etiquette
Note that VS 2012 can't work with SQL projects or Reporting Services without upgrading them.
Jul
19
comment Indentation: is there any evidence to show whether 2 or 4 spaces is more readable?
@X-Zero Sounds like it would be really annoying for anyone to use another editor.
Jul
19
comment Indentation: is there any evidence to show whether 2 or 4 spaces is more readable?
Why don't you just ask all your developers what they find easier to read? It seems like you're looking for research to convince yourselves about something. Just form an opinion one way or the other and vote on it.
Jul
6
comment Unit testing multiple conditions in an IF statement
Wouldn't there only be eight tests if you tested all possible combinations? Three boolean parameters turned either on or off.
Jun
18
comment What operating systems are used in airplanes, and what programming languages are they developed in?
@haylem I'm sure your interpretation was correct, but looking at the title I wasn't sure. Nice answer, very enlightening.
Jun
18
comment What operating systems are used in airplanes, and what programming languages are they developed in?
When I first saw this question I thought it was asking about the systems that run the in-flight movies and such in the backs of seats. I was once on a Delta flight where they rebooted that system and you could tell that it was running Linux, a Debian variant I believe.
Jun
14
comment C# foreach improvements?
@Falcon I agree with Fabricio. Certainly in most situations a regular for loop would be clearer, but that requires indexing and a count. This can be achieved with ToList or ToArray, but that may be expensive an unnecessary. This provides a way to get around that.
May
23
comment Can I legally use the icon of a different software?
@Rotem That's not true. The icons for CS and CS2 were very different from CS3, 4, 5 and 6.
May
15
comment Why is 24 lines a common default terminal height?
@StevenBurnap Isn't 80X25 exactly 2000?
May
6
comment Trying to sort the coefficients of the polynomial (z-a)(z-b)(z-c)…(z-n) into a vector
@NollieTré You should change your notation if that's the case. It very much looks like the roots are the positive integers up to an including n (especially with the example you gave). That said, with the roots as arbitrary complex numbers, I doubt you're going to find a predictable pattern to find the coefficients. You'll likely just have to do the expansion. Matlab should be able to do this very quickly for you though.
May
5
comment Is it bad practice to name an unused variable with a single underscore?
@FrancescoDeVittori I meant in instances where var is unnecessary but used to shorten a declaration. E.g., why write Dictionary<string, int> dict = new Dictionary<string, int>() when you could write var dict = new Dictionary<string, int>()? Here var isn't required, but it's solely used to remove clutter from the code. And similar to using _, using var too often can produce difficult to read code.
May
4
comment Is it bad practice to name an unused variable with a single underscore?
@NickChammas Thank you, I didn't know that.
Apr
30
comment How can I keep my visualstudio database project in sync with my database?
The second solution is, in my opinion, the best solution. You can set up a deployment process that only takes one click. Editing your files in Visual Studio will automatically check them out of source control. I've worked with the first method, but it's difficult to always do schema compares. Plus, at least for me, the schema comparison tool crashes Visual Studio a lot.
Apr
25
comment The bracketless if statement is frowned upon, but is it still bad style if your IDE is equipped for it?
+1. It's definitely not universal preference, and it confuses me when people assume it is. I definitely don't buy that people would mistakenly add a second line to an if block without realizing it will always execute.
Apr
25
comment The bracketless if statement is frowned upon, but is it still bad style if your IDE is equipped for it?
@WernerCD Of course vim does. Use the autoindent option, which I believe is enabled by default. I'm not saying you can't find an editor that doesn't do it, just that "most IDEs/editors don't" is probably incorrect, and the opposite is probably true.
Apr
25
comment The bracketless if statement is frowned upon, but is it still bad style if your IDE is equipped for it?
Most IDEs don't do automatic indentation? I can't think of a single one that doesn't. Even text editors like gEdit and Notepad++ do this.
Apr
23
comment Magic square check for N×N matrix with minimum complexity
The title says an NxN matrix, so I would assume n refers to the side length. Just curious, can you prove that you can't do better than O(n^2)? It doesn't seem obvious to me.
Apr
19
comment Use of pdb file in release build executables
Your real question seems to be, "Will compiling with the /Zi option change the outputted executable?", which I don't think is on topic for this site.
Apr
11
comment Difference between “String” and “string” in .NET and which is best?
@Gabriel No, String (and hence string by alias) are reference types.