standards

VB/VBA Variable Declaration Coding Standard - White Space

What is the significance of declaring variables in VB/VBA like so: Private m_sName As String Private m_lAge As Long As opposed to; Private m_sName As String Private m_lAge As Long I am working on a project which up to now uses the latter, and has done since long before I joined the project. Two new developers have...

[C++] Validity of int * array = new int [size]();

int * array = new int [size](); The operator () allow to set all values of array to 0 (all bits to 0). it's called value-initialization. Since which version of g++ is it valid ? What about other compilers ? Where can i find it in standard ? Thank you for your future anwsers. ...

How are you using C++0x today?

This is a question in two parts, the first is the most important and concerns now: Are you following the design and evolution of C++0x? What blogs, newsgroups, committee papers, and other resources do you follow? Even where you're not using any new features, how have they affected your current choices? What new features are you using ...

Why doesnt Regex.Match have a GetEnumerator function?

Regex.Match has a .Success and .NextMatch why doesnt it have a GetEnumerator function? With my logic it seems easy enough to implement. But it isnt in 3.5 so can anyone tell me why not? foreach (var m in Regex.Match("dummy text", "mm")) error CS1579: foreach statement cannot operate on variables of type 'System.Text.RegularExpressions...

Should I keep the package name when extending a class?

I plan to extend a JSF renderer. The package name is oracle.adfinternal.view.faces.renderkit.rich Should the extended class be in the same package structure: oracle.adfinternal.view.faces.renderkit.rich or even oracle.adfinternal.view.faces.renderkit.rich.[subpackage] or can/should I put it into my own package? com.company.renderkits. ...

How shall I format my logs?

I'm writing a piece of honeypot software that will have extensive logging of interactions with it, I plan to log in plaintext .log files. I have two questions, from someone who isn't too familiar with how servers log, firstly how shall I break up my log files, I'm assuming after running this for a month I don't want one big .log file, d...

Proper usage of Floats (For those who love CSS standards)?

I would like to know if I'm using floats in the right way (efficiently) in this code bellow. There are basically 3 columns (with float left, left and right assigned respectively). Am I using too many floats? Will this cause me problems if I add or delete columns? This is my index.html: <div id="content"> <div id="left-column"> <h2>...

Best Practice: Documentation Standards

Hello there, Here is the issue, I need to find/think of documentation standards for our team. We have several needs, we need documentation standards for Requirements Documentation, Technical Documentation - for projects and Code Style Documentation - for developers which would cover how developers should name, and organize the project'...

Is this a standard C++ code?

Hi, The following simple piece of code, compiles with VC2008 but g++ rejects the code: #include <iostream> class myclass { protected: void print() { std::cout << "myclass::print();"; } }; struct access : private myclass { static void access_print(myclass& object) { // g++ and Comeau reject this line but not VC++ ...

Linux Daemon written in Java location

I'm currently writing a Java daemon. I'm writing a script that will have the standard daemon commands (start, stop, restart, status) and I'm trying to decide on where things should go when installing the daemon. My current idea is: PID File: /var/run/myapp.pid Daemon Script: /etc/init.d/myapp Java App (.jar): /usr/bin/myapp Logs: /var/l...

Organizing logs with log4j

Hey all, I'm currently working on a Linux daemon written in Java. What is the common naming scheme for logs? Right now I'm thinking of doing something like: DEBUG = /var/log/myapp.debug INFO = /var/log/myapp.info WARN = /var/log/myapp.warn ERROR = /var/log/myapp.err FATAL = /var/log/myapp.err Does anyone have any opinions / suggestio...

Is there an XML standard for Ecommerce Products?

Is there a standard way of transferring product data between e-commerce web sites? I presume there are several cases where a company wishes to include another companies products inside its store. How then would this be accomplished? I presume an XML feed would the way to go, but is there a standard for something along the lines of pro...

What defines the availability of the DOM `document` property in the javascript global object?

I am a bit new to javascript and was trying to understand how the W3C DOM standard and javascript as defined by ECMAscript interoperate. Specifically, as I understand it: the ECMAscript standard defines the existence of a Global Object, which provides functions such as parseInt(string) and explicitly allows the presence of other built-...

Thoughts on Abandoning Proprietary Framework for A Larger Open Source Project

We have been going back and forth a lot around our office lately about abandoning a proprietary framework that was developed here a couple of years ago and move to something that is larger and community supported. Our current solution was built to include only the things we need and is very flexible, by flexible i mean that it is loose...

Why my MP3 recording-stream does not play in some programs?

Why my MP3 recording\steam does not play in one program and plays in another? So my question is - How to check my MP3 stream (file stream) for being standard, to see where it goes out of standard and so on. I need: Libs (Open source) Programs (Any free) Articles ...

Good articles on usability?

I'm looking to find any articles/books on usability. I'd like to get a handle on best practices when designing a UI, this can be anything from which user controls are more intuitive to a new user, to how to phrase text that is displayed to the user to avoid confusing dialogs. I mainly do Windows desktop applications, but most usability s...

Focussing on Style Sheets and Cross Browser Compatibility.

Hello everyone, Let me begin this topic by explaining my background experience with web design. I have always been more of a back end programmer, with PHP and SQL and things. However I do have a shallow background with HTML and CSS. The problem is, I don't know it all. What I do know is, when it comes to designing (not back end dirty wo...

Why is `i = ++i + 1` unspecified behavior?

Consider the following C++ Standard ISO/IEC 14882:2003(E) citation (section 5, paragraph 4): Except where noted, the order of evaluation of operands of individual operators and subexpressions of individual expressions, and the order in which side effects take place, is unspecified. 53) Between the previous and next seque...

Are there any proposals to amend JSON to officially allow unquoted property names?

The following is technically invalid JSON: { color: "blue", size: 14 } because the property names "color" and "size" are required by the spec to be quoted, i.e. { "color": "blue", "size": 14 } However, I've noticed that many web services that purport to return "JSON" do not quote their property names, and hardly anybody wri...

How to convert Javascript to C#

I have got some javascript code and I'd like to convert this to C#. I have no idea of the best way to structure this or if there is an easy way to convert the code. A sample of this code is shown below. // ellipse parameters var e = { WGS84: { a: 6378137, b: 6356752.3142, f: 1/298.257223563 }, Airy1830: { a: 6377563.39...