Sitemap

Amicuk Programming Answers

Naming Conventions - programmer refuses to stick to them... what to do?

-0001-11-30   Views:0

Advertisement

A fellow programmer on my team, though good, often refuses to abide by naming conventions, or seem even to be aware that many have existed and use that knowledge accordingly. Today, for example, he created a class (not an interface) called Createable

A fellow programmer on my team, though good, often refuses to abide by naming conventions, or seem even to be aware that many have existed and use that knowledge accordingly.
Today, for example, he created a class (not an interface) called Createable. I pointed out to him that convention over the years has been that classes ending in '-able' were usually interfaces, or might be suspected to BE interfaces by other programmers looking at his code.
He said he didn't care.
I then later noticed he had an interface defined in another package called 'Createable'. So he had made two classes of the same name in different packages, one an interface and one not.
Our boss doesn't seem to mind this kind of thing (he just wants us to get the work done and isn't interested in quibbling over things like naming convensions). Perhaps I'm a bit stern about these kinds of things, but it really gets my goat when this happens.
What's your opinion, Java Community?
- Tim
Edited by: user2052552 on Feb 3, 2011 12:41 PM

The replay answer
Advertisement
user2052552 wrote:
A fellow programmer on my team, though good, often refuses to abide by naming conventions, or seem even to be aware that many have existed and use that knowledge accordingly.
Many conventions? As in your team doesn't have a convention but you want them to follow one which is unspecified?
Today, for example, he created a class (not an interface) called Createable. I pointed out to him that convention over the years has been that classes ending in '-able' were usually interfaces, or might be suspected to BE interfaces by other programmers looking at his code.
English is a limited language.
Is 'Manager' suitable for the name of a class or an interface?
If only the latter then what do I call a class that represents something that "manages"?
He said he didn't care.
I then later noticed he had an interface defined in another package called 'Createable'. So he had made two classes of the same name in different packages, one an interface and one not.
Our boss doesn't seem to mind this kind of thing (he just wants us to get the work done and isn't interested in quibbling over things like naming convensions). Perhaps I'm a bit stern about these kinds of things, but it really gets my goat when this happens.
What's your opinion, Java Community?First it is a management problem.
Second there are proven techniques for producing better code. Coding conventions are not one of those.
Third if an organization is such that it is using other proven techniques, then coding conventions might have some measurable impact on quality, but lacking other techniques (or lacking all techniques) there can be no measurable impact as it would be less than the noise level caused by other correctable items.
Fourth as a point about what measurable techniques are the classes that the developer is creating actually Objects (Object Oriented Objects)? Versus random collections of functionality for example? The latter would be a far more serious problem than naming. And does that developer, and all of the other developers, use inheritence appropriately? Again misuse there would be a far more serious problem.

Go to See the other 15 answers

Naming Conventions - programmer refuses to stick to them... what to do?

Category:DefaultRelease time:-0001-11-30Views:130

A fellow programmer on my team, though good, often refuses to abide by naming conventions, or seem even to be aware that many have existed and use that knowledge accordingly. Today, for example, he created a class (not an interface) called Createable[More]

Automatic Start of a script / programm once USB Stick is mounted?

Category:DefaultRelease time:-0001-11-30Views:130

Is there a way to start a programm each time an USB Stick - in fact any volume - is mounted? In windows that is possible with autorun.inf . Is there something similar with mac? All help is appreciated. JohnThanks, that works very well. Although Ligno[More]

Font Colors and Formatting Refuse to Stick

Category:DefaultRelease time:-0001-11-30Views:130

I've been having a problem with iChat where, when I IM somebody with iChat, my fonts and colors show up as I see them, but when I IM somebody with AIM for Windows from my iChat account, it simply shows up as black on white. I've already gone through[More]

Quicktime pro registration refuses to stick

Category:DefaultRelease time:-0001-11-30Views:130

I originally bought my license 07/10/05 for quicktime 7 pro. I used the pro features for more than a year, at one point or another, after a few updates, I noticed that I no longer had the pro features enabled. The first thing I tried of course was to[More]

Print command makes the programm to close

Category:DefaultRelease time:-0001-11-30Views:130

I have recently bought a black macbook and when I use the print command (either from the menu or by pressing command and P) the programm (pages, preview, stickies, text, ms word) dissapears and a message that the programm quited unexpectedly appears.[More]

Touch vs. Nomad Jukebox (yes, the ORIGIN

Category:DefaultRelease time:2015-10-11Views:130

I am getting antsy and bored waiting for the Touch firmware to be released. I was looking for a game and saw my good ol' reliable blue nomad jukebox sitting on the shelf. I gave it good hug. For over fi've years that CD-player sized original HDD base[More]

Very close to replacing my MacBook after series of problems

Category:DefaultRelease time:-0001-11-30Views:130

Hey all, I've been a big Mac fan for the last 2 years or so, but I think I'm finally going to go back to the PC camp. I've had previous issues with a MacBook (which Apple 'forgot' about my Mac whilst I was on holiday for 3 weeks and didn't repair it)[More]

Ram related kernel panics on a MBP (ram used to work, hardware errors-)

Category:DefaultRelease time:2015-10-11Views:130

hello all i have a 2.2GHZ intel core duo 2007 MBP, which once ran Tiger and is now running 10.6.3 I had the NVDIA graphic card break down associated with such models, and it was replaced thanks to the extended care plan, here in Paris, so the logicbo[More]

Switching to eglibc

Category:DefaultRelease time:2015-10-11Views:130

Hi * I'm using Arch as base for my home media server (MythTV). I have server in my system which, when compiled & launched on Archlinux, deadlocks quickly while users compiling the same server under Mythbuntu 12.04 reports is runs OK. Developer of thi[More]

[SOLVED] Rapidly changing pixels in X (Intel 945GME)

Category:DefaultRelease time:2015-10-11Views:130

Hi, A few days ago I managed to install Arch Linux on my EEE Box B202 (thanks, devs), containing an Intel 945GME chipset. Everything looks fine, but when I start X, the screen goes black for a few moments (monitor complains 'no sync') and when it is[More]

How do I make Mail stop showing notes in my inbox?

Category:DefaultRelease time:2015-10-11Views:130

The obvious answer is to turn off the "show notes in Inbox" option in the Mailbox Behaviours tab of Account Info, but that option is not sticking. Mail in Lion keeps re-enabling the "show notes in Inbox" option across Mail restarts. Th[More]

Hot
i got a new computer and im unable to get the itunes app on there to conect my ipod to it and get my music and pictures off of it. does anyone know how im able to download itunes on a laptop?Click Itunes at the top of this page and download it. The i [More]
I have a G-4 version 10.4.7. This apple runs good -- but, yesterday I received a standard update files from apple and did an update -- afterwards, my "safari" stopped running. Safari will open up for about 3 seconds and disappear. The template i [More]
Hi - I've been having stability problems with my Gmail on Chrome and so have returned to FF. Enjoying it too! However, the spellchecker does not work with Gmail - the tool I use most where a spellchecker is vital! Actually I cant be sure it's working [More]
Can I open a video saved file with imovie?And how do you know that it is a PDF file if its extension is not .pdf? And there is a special subforum for the Android version of Reader: http://forums.adobe.com/community/adobe_reader_forums/android?view=di [More]
Hi, OS is windows server 2008 Database oracle 11g r2 i have created a schema with name SME having DBA privilege from SME i have created another user SME_USER using the same tablespace of SME with limited privileges. The sequence was created in SME us [More]
Hi, I would like to enable a field for user input query value, but once the data is returned to the form, I want to disable that field so that it cannot be editable. (i.e. it is the PK for that table). Anyone has any suggestions / Ideas. Thanks Srini [More]
I have a new Photosmart Premium C309(g-m) installed wirelessly on my home network.  All test pages print fine as do any other document s(Word, Excel, etc) but web pages or emails from my desktop computer do not print.  However, webpages from my lapto [More]
Photoshop CS2 - I am doing a Save for Web and have ICC Profiles checked off and also the User Document Color Profile is checked off. However, when the image gets into the browser (or is previewed in GoLive or Dreamweaver) it loses color and actually [More]
hi. I am about to buy the cheap, student edition of Dreamweaver CS3. I've read the other topics on the differences between student and commercial...but need to know more.... Is it ok to use the student Dreamweaver CS3 version to design and 'publish'. [More]
We update several thousand product prices in our MYSQL database daily using an XML feed. We can update the database using by looping over the XML and updating the database on an item by item basis but that seems awfully inefficient. Is there a better [More]