standards

What steps can be taken to produce semantic, accessible, standards-compliant client-side output with ASP.NET Webforms?

I understand that it may not be possible to decouple the client-side from the server-side code in ASP.NET Webforms. What steps can be taken to produce a website on this framework that complies to web standards? I am particularly concerned with making the site accessible with JavaScript disabled, and compliant to WCAG2 at conformance lev...

Is it possible to implement new standards such as HTML5 in ASP.NET Webforms?

Is it possible (using HTML5 Shiv, for example) to implement HTML5 on a Webforms-based platform? Will ASP.NET Webforms allow the developer to semantically mark up a page using the new HTML5 elements? ...

One for the NUnit gurus: Upgrading to 2.x and using new features with existing testing harnesses

I've recently upgraded to NUnit 2.5 (yeah I know) and I was wondering if I could pick someone's brain with this. I have lots of tests that look like this: [Test] public void TestTheSpecialDict() { int start = 0; int end = 44; Dictionary<int, string> = SomeFunction(start, end); Assert.That(dict1.Count > 0); // Alr...

C# IComparer<T> standard usage question

I have a question with whether or not this is a standard for using IComparer in C#. Say I have a situation in which there are three Person objects: P1, P2, and P3. Say I call the Compare method passing in P1 and P2 and the result is 0. This essentially means the two people should be categorized as equal. Now say I call the Compare method...

Should meta tags be Html Encoded

I generally HtmlEncode any user generated content that I render on my website, so ampersands etc. become & and so on, but was wondering, should this be done (from a standards point of view) to any dynamically generated meta descriptions, meta keywords etc throughout a site? ...

Marginal CSS Attributes

How do you guys handle marginal CSS? By marginal, I mean a single word or phrase that needs italics or bolding. It seems silly to declare a 'bold' class with just Bold { font-weight: bold; } Or italics, either! Italic { font-style: italics; } But I find myself hesitating to put class like that into my css reset. <p> <span cla...

Function/method argument validation standards.

I was just inquiring about standard practices of argument validation syntax. I'm working with PHP as of currently, but anything that's considered a platform/language agnostic solution would be great. As of currently, I'm aware of two pretty common syntax. For example (my preference): function foo($a, $b, $c){ if(!$a){ throw new Exc...

WAP for Android/iPhone/WebOS/Etc...

New to WAP, are there any good resources out there for WAP on Smart phones IE: Android/iPhone/WebOS/Etc... Looking to do some dev work but don't know where to get started ...

why wasn't the idea of nested functions, implemented in older c++ standard?

was the idea of nested functions considered to be useless during the time of developing older c++ standard, because its usage is basically covered by another concept like object-oriented programming; or it wasn't implemented just as a matter of simplification? ...

Is there a standard XML format for Healthcare bills/claims?

I'm looking to find out if there are already any standards out there for storing/transmitting healthcare claim data (HCFA/CMS 1500, UB92, UB02, etc) through an XML format. I know of the official standards for X12 and ANSI-837 4010 but I'm looking for something a little less complex and before rolling our own I'd like to see if there is s...

Do classes with uninitialized pointers have undefined behavior?

class someClass { public: int* ptr2Int; }; Is this a valid class (yes it compiles)? Provided one assigns a value to ptr2Int before dereferencing it, is the class guaranteed to work as one would expect? ...

Number of permissible active iterators into a vector

For example is the following valid? std::vector<int> vec(5, 0); std::vector<int>::const_iterator it1(vec.begin()); std::vector<int>::const_iterator it2(vec.begin()); //Use it1 and it2 like they don't know about each other. Is there a special name for a container that permits multiple active iterators? ...

C++ standard, overloaded function resolution/matching

hello Does C++ standard guarantee the following?: template<typename T> void function(T (&)[1]); template<typename T> void function(T*); int a[1]; function(a); // first function gets called, not second version ...

Are there any NoSQL standards emerging?

As with most new technologies after a while a standard emerges. Is there anything cooking for NoSQL? ...

Ideas for working with a teammate not following team defined standards?

Working in a team environment how would you handle a developer that refuses to follow team defined standards? 1) Developer is at a junior level 2) Developer is at a peer level 3) Developer is at a senior level I know this is suggestive but I feel that it would benefit developers by making them more professional. Thanks! ...

Anyone have experience with PHP and Fannie Mae File Formats (or MISMO)?

Title says it all. I'm working on a mortgage application and we're supposed to use the FNM 3.2 file format but I can't find much in the way of applicable resources. Hoping someone in the community has some experience. ...

Representing classes and interfaces in a language neutral way

I need to define simple classes and interfaces (Ex. IClassInterface) in a language neutral way and then use a variety of code generation tools to generate the code files in a variety of languages such as C#, Java, etc... Does anyone know of a standard; ratified or otherwise; that I can use for the neutral representation. I know UML is of...

Bitshift and integer promotion?

Normally, C requires that a binary operator's operands are promoted to the type of the higher-ranking operand. This can be exploited to avoid filling code with verbose casts, for example: if (x-48U<10) ... y = x+0ULL << 40; etc. However, I've found that, at least with gcc, this behavior does not work for bitshifts. I.e. int x = 1; u...

Is there any standard for panoramic photos?

I am looking for a standard that describes metadata, dimensions, format and so on. ...

Benefits of stripping trailing white spaces?

I got into the habit of removing trailing white spaces from my source file. In fact, I have my editor to do this automatically. I got in this habit by using git; it created a habit that I adhere to. My question relates to the fact that I cannot justify this behaviour. I can understand that in some fields, such as web designers, it may ...