naming-conventions

What is an appropriate name for a class which can store some object in an xml-file and read it back?

I have a class which is called TestPlan (to put it simple, let's assume that it's a usual java bean). I need to store TestPlan instances in xml-files (1 instance per file). The most appropriate way to do it which I can see is using another class which should do only xml-related work. It'll have methods like: public TestPlan parseTestP...

Why is Java "String" type written in capital letter while "int" is not?

Hi, I am curious. Why do I have to type String myStr with a capital letter whereas I type int aNumba with a lower-case letter? ...

PHP Propel-gen to zend framework naming convention

I am playing with the build settings in my build.properties file for propel (version 1.5.4) but don't get it right. Example: Table News should have class Model_News in ./Model/News.php class Model_Base_News in ./Model/Base/News.php My main problems: propel adds the project name as a folder between Model and News.php like: /Model/p...

Do you use Hungarian notation for control names?

I totally agree that we should not use Hungarian Notation to name variables. But it seems that Hungarian Notation is still useful to name controls (especially Winform controls). Consider these: GridView grvUsers TextBox txtPassword etc... I really doubt that should we avoid Hungarian notation in this case? If should, which is alterna...

What's the meaning and use of "res" in function arguments?

Hi, here's a short question that my googling failed to deliver any clues on. It seems to be pretty commonplace to use the word "res" for one of the indexes in function arguments. Its existence appears to be agnostic to whatever programming language you look at. What does it stand for? A simple guess would be, "resource", perhaps? If th...

TSQL Naming conventions ~ What's this naming convention called?

Given that I'm using TSQL, what's the name of this style of naming? \\servername\instance.database.schema.table and what other items can be inserted in place of .dbo. in the previous naming instance? how does one go about creating those alternatives? links to answers welcome Also, how would one refer to a job on the server instead ...

Transforming string data in a SQL Server database

I need to convert some data stored as varchar in a SQL Server database that I want to change from CamelCase to delimiter-separated. I know how to do this trivially in C# but not T-SQL. Any ideas? ...

The abbreviation impl is used in a lot of libraries; What does it mean?

I've seen impl used as namespaces and as a class suffix in a number of different .net and Java libraries. I just want to know what it means and why it is used. ...

How to name a constant in Objective-C?

What's the naming convention for constants in Objective-C (or most widely used way to name them)? Is there a different criteria for extern constants? Some styles I have seen: NSString* const kPreferenceFirstRun = @"FirstRun"; // Replace "XY" by a prefix representing your company, project or module NSString* const XYPreferenceFirstRu...

the point of c style naming conventions

One of the classes I'm taking in college is where we are doing a ton of programming in C. We are supposed to use 'C' style naming conventions in the assignments or get docked marks (eg a variable is named like int line_counter, a function clear_array() ) I find this convention really really annoying esp coming after a year of Java where ...