standards

State of C++ Standard

I haven't kept up lately with the C++ world. Exactly where do things stand these days regarding the standard? Is TR1 adopted? Is there a TR2? How do these relate to C++0x? Are the subsumed? Has a decision been reached on threading yet? ...

Pascal casing or Camel Casing for C# code?

I've been arguing with my coworkers about Pascal casing (upper camel case) vs. lower CamelCasing. They are used to lower camel casing for everything from table names in SQL databases to property naming in C# code but I like Pascal casing better, lower camel casing for variables and Pascal casing for properties: string firstName; public ...

What is RFC

I think there are a lot of people out there unaware of RFC. I know what they are at a logical level but can anybody give a good description for a new Developer? Also some resources on how to use and read them would be nice. ...

Ideal user feedback for HTML input

Let's face it: writing proper, standards compliant HTML is quite difficult to do. Writing semantic HTML is even more so, but I don't think it's possible for a computer to figure that out. So my question to you is what would the "ideal" feedback for a user who entered HTML be? Would it be a W3C validator style list of errors and correspo...

Non-Standard Attributes on HTML Tags. Good Thing? Bad Thing? Your Thoughts?

HTML (or maybe just XHTML?) is relatively strict when it comes to non-standard attributes on tags. If they aren't part of the spec, then your code is considered non-compliant. Non-standard attributes can be fairly useful for passing along meta-data to Javascript however. For instance, if a link is suppose to show a popup, you can set th...

How do I suggest a change to the HTTP standard?

I have a fairly simple addition to the HTTP standard. An ambitious goal I know, but I'd at least like to submit a proposal and get feedback on the idea. What is the proper forum/method of doing so? ...

What are the rules about using an underscore in a C++ identifier?

It's common in C++ to name member variables with some kind of prefix to denote the fact that they're member variables, rather than local variables or parameters. If you've come from an MFC background, you'll probably use "m_foo". I've also seen "myFoo" occasionally. C# (or possibly just .NET) seems to recommend using just an underscore,...

java: what are the best techniques for communicating with a batch server?

Hi all, I've a WEB application (with pure Java servlet) that have some heavy computational work, with database access, that can be done in asynchronous mode. I'm planning to use a dedicated server to execute such batch jobs and I'm wondering which tools/techniques/protocols to use for communication between servlets in the WEB server and ...

Changes to the C standard for a modern world

Having just answered a question on what the #pragma direction does in C, and had some fun with it, I was thinking of what other useful directives we could add to the language to keep pace with the stresses faced by todays developer. My first one was #dogma, basically there to counteract all the pragmatic stuff creeping into modern C an...

Is there a coding standard for VBA applications?

Is there any coding standard published by microsoft for vba applications? ...

UML standards guide / Best Practices

Does anyone know of a decent UML standards guide? My company currently relies on UML 2.0 (rightly or wrongly) to do the majority (read all) of their design work. I have been asked to come up with a draft 'best practice' guide to help other developers develop better models. The main problem I face is that Im slightly biased against UML.....

PHP Constants: Advantages/Disadvantages

Lately I've been in the habit of assigning integer values to constants and simply using the constant name as a means of identifying its purpose. However, in some cases this has resulted in the need to write a function like typeToString($const) when a string representation is needed. Obviously this is inefficient and unneccesary, but is o...

What's the best "file format" for saving complete web pages (images, etc.) in a single archive?

I'm working on a project which stores single images and text files in one place, like a time capsule. Now, most every project can be saved as one file, like DOC, PPT, and ODF. But complete web pages can't -- they're saved as a separate HTML file and data folder. I want to save a web page in a single archive, and while there are several ...

Which web service specifications (WS-*) actually make sense to implement?

Hi, I'm implementing an SOA at a large company, and I'm not sure which web service specifications (WS-*) actually make sense to implement. At a minimum, I'm looking at WS-Addressing, WS-Security, WS-Eventing, and WS-ReliableMessaging. However, there are several other standards that look interesting, but I don't know which ones are widel...

Guidelines for custom tools.

While developing products, we often need to create proprietary tools to test some of their unique features or diagnose problems. In fact the tools can be at lest as interesting as the products themselves, and some of our internal groups have asked for copies of them. So, aside from the obvious business-driven rules (e.g. don't retrieve...

C And C++ Coding Standards

What are best practices with regards to C and C++ coding standards? Should developers be allowed to willy-nilly mix them together. Are there any complications when linking C and C++ object files. Should things like socket libraries that traditionally is written in C remain in C and kept in seperate source files? That is keeping c code...

Best approach for fixing CSS issues to work with IE 7

Recently, I started maintaining a web application which unfortunately works only with IE 6. Most of the issues are related to CSS. Is there any tool which can help me standardize the CSS classes to work with both IE 6 and IE 7? I understand I have to go through standards but I need something to start with quickly. Firebug can help me t...

C++0x Attributes you'd like to see

Recently voted into the C++0x working paper was an attribute syntax. This syntax provides a way to specify other pieces of information to the compiler. The Committee Draft also includes several standard attributes. The syntax is to wrap the attribute list in double square brackets, e.g. [[noreturn]]. These attributes can be "namespaced"...

What is the algorithm identifier when using AES in CBC mode with ISO 10126 padding inside of PKCS#7?

I want to use PKCS#7 as a container format for some encrypted, signed content and we need to use AES in CBC mode with ISO 10126 based padding. I can't seem to find a concrete reference to an algorithm identifier to use for this combination. I can invent my own but would then lose interoperability with other tools. ...

Constant array types in C, flaw in standard?

Paragraph 6.7.3.8 of the C99 spec states If the specification of an array type includes any type qualifiers, the element type is so-qualified, not the array type. If the specification of a function type includes any type qualifiers, the behavior is undefined. In the rationale (logical page 87, physical page 94), an example of casting a flat...