39,907 reputation
12129151
bio website OdedCoster.com/blog
location London, United Kingdom
age 42
visits member for 4 years, 6 months
seen yesterday

Stack Exchange employee - developer on the Q&A team. Email me on ocoster (at) stackoverflow.com.

I am a C# ASP.NET developer, with a long professional history of work with web and Microsoft technologies.

I am passionate about writing usable and secure software and am constantly learning.

Blog at http://OdedCoster.com/blog.

I have written a blog series about getting good answers on StackOverflow.


Dec
30
awarded  Enlightened
Dec
30
awarded  Nice Answer
Dec
30
answered Confusion between F# and C#
Dec
30
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@Ian - where did I say all clients have JavaScript? I said the client is best positioned to know how to format culturally sensitive things like dates, times, currency and numbers. I didn't say it has to do so via JavaScript. And the doesn't imply different code. As for emails and reports - that entirely depends on requirements.
Dec
29
awarded  Good Answer
Dec
29
awarded  Enlightened
Dec
29
awarded  Nice Answer
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@FreeAsInBeer - this is the kind of logic that belongs on the client side - someone in France would want to see dates (and currency/numbers) formatted differently to someone in the US. The client would "know" best how these should be displayed. This is presentation logic, and as such belongs in the view.
Dec
29
comment Why is C still in the category of High Level Language?
@manutd - that's a question to book authors ;) - but that's the thing. From their point of view, C is a high level language. That's what they deal with. The concept of "high level language" is fuzzy - there is no single definition agreed by all.
Dec
29
answered Why is C still in the category of High Level Language?
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@NPSF3000 - a language isn't "server side" or "client side". That's an architectural separation - and possibly one of language implementations (is JavaScript a server side or client side language - remember node.js).
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@John - so, your date is stored in the DB, you pass it through the model/controller to your view. You need in there in the HTML, so you would output it somehow to JS to format, instead of directly formatting with C#? Why? Why is that better? Or rather, how is that approach more of a separation of concerns?
Dec
29
revised If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
How new you are to the site is not relevant to the question. I also added some spacing to make this less of a wall of text.
Dec
29
comment If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
@John - so? If you need to format dates for display (and display means client side, always), where would you format them? The model? The controller? Neither. You would do so in the view.
Dec
29
answered If MVC is “Separation of Concerns” then why was Razor Syntax introduced?
Dec
15
comment More than 20 Records Inserted in a Span of 1 Sec
Batching changes, in particular if they are small changes could look like a good strategy.
Dec
11
awarded  Nice Answer
Dec
10
comment Is there ever a reason to use an array when lists are available?
is also just as efficient in memory and performance as an array - um. Where did you get that notion from?
Nov
30
revised Database design for polymorphic data
edited body
Nov
26
comment Advice needed on rethrowing an exception
No one is saying it is better to lose the stack trace - just that it is better to also preserve the original exception.