Tag Info

Hot answers tagged

6

HTML is a design and layout language, not a programming language. Is't almost always paired with JavaScript, which is a programming language. .NET is a catchall name for a number of Microsoft technologies, among them C#, Visual Basic, CLR, and a number of frameworks. It is a development mindset and languages that you have to know in order to be "a .NET ...


5

You don't technically need initializers at all. You can always have a backing property, and you can always do your initialization in (all of) your constructors. They are a convenience to reduce the ceremony that programmers need to go through to do the "right thing" (use properties for public members, have sane, consistent defaults, make code readable). ...


2

The problem with "a database" is that it is generally a single-point of failure/scalability. You can scale databases, but it's difficult and costly depending on what scale you're talking about. Typically, what you describe are implemented as messages. Message queues would then store and forward the messages to multiple readers or clients. You can scale ...


2

Well... you can't. Not directly at least - if you could it would have been a major security breach. You can, however, use an embedded-in-page program - like a Flash application or a Java Applet - to run these commands. Take a note there is still some security hurdles you need to jump - Java Applets, for example, need to be signed and granted special ...


2

First, an alternative to consider... After many years of designing and implementing web services (and inheriting some rather sub-par implementations as well), I've reached a conclusion that some others have as well: Avoid nested resource paths. Matthew Beale's Suggested REST API Practices article explains the reasoning behind this. (Look in the First-class ...


2

There isn't a native exception in the .NET Framework for "Invalid Type Parameter Argument." Jon Skeet asked about this on Stack Overflow, and ultimately decided to write his own: #region License and Terms // Unconstrained Melody // Copyright (c) 2009-2011 Jonathan Skeet. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the ...


1

Welcome to the web hosting shell game. First, you can drop your dns TTL to something absurdly low -- we use 60 seconds when we are about to move things. That said, not everything honors your TTL value. A lot depends on specifics but there are a few ways to do this. Probably the most effective would be to push the front end out to a proxy, have that proxy ...


1

Is it acceptable to throw an ArgumentNullException when the string parameter is not only null, but also empty? Perhaps a ArgumentException is better as this is more general issue than just null checking. Yes, I think that ArgumentException fits best here. I guess the "proper" solution would be to throw ArgumentNullException for null and ...



Only top voted, non community-wiki answers of a minimum length are eligible