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

Jun
14
answered C# foreach improvements?
Jun
8
awarded  Caucus
May
25
answered Are we always supposed to create a setup to deploy or application?
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
16
answered Is the 14th line of The Zen of Python a reference to Dijkstra?
May
15
comment Why is 24 lines a common default terminal height?
@StevenBurnap Isn't 80X25 exactly 2000?
May
14
awarded  Fanatic
May
13
revised Any other guides out there like Why's Guide to Ruby and Learn You Haskell?
Correctly named source.
May
10
awarded  Good Question
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
5
awarded  Popular Question
May
4
comment Is it bad practice to name an unused variable with a single underscore?
@NickChammas Thank you, I didn't know that.
May
4
awarded  Nice Question
May
4
awarded  Student
May
4
asked Is it bad practice to name an unused variable with a single underscore?
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
26
answered Determining if an Algorithm is O (log n)
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.