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
File sharing service keeps popping up with the error message An error occurred on the server while processing a command.  This error occurred while processing a command of type 'getConnectedUsers' in plug-in 'servermgr_afp'. I have tried multiple sol [More]
Hello, My wife is getting an ipod soon and we want to have our entire library on both ipods. Do I need to do anything special or just will itunes just sync our library to both ipods automatically? I really don't want to screw around with multiple use [More]
I've had an Apple TV2 for over a year.  It has been working fine with no issues at all.  I use an old laptop running WinXP as my "media server" and it has worked fine up until the last few of months. Progressively, over the last 2-4 months it ha [More]
I have a 24" early-2009 iMac (2.66 Ghz, Intel based, 8 GB of RAM, 2 TB hard drive, Mountain Lion OSX).  Apple's website fails to list my particular iMac in the list of machines that can only run Windows 7 Pro 32-bit so I bought a 64-bit copy (there w [More]
So below is what I have so far. The menu is working perfectly, thanks to a few Youtube tutorials. And everything is linked correctly. But the only thing is that the "WORK" button doesn't respond to the state change that is set up for it. I tried [More]
Hi Abapers, I have one query regarding Address - EndAddress in SAPScript. I am putting the code : /: ADDRESS TYPE '1' PARAGRAPH ZI PRIORITY 'APL43' LINES 6 /:ADDRESSNUMBER &ZPOLGORT-ADRNR& /:ENDADDRESS and  I am getting the output in this form < [More]
I finally fixed the installer error for itunes 5.1 and now it wont even start up can anybody help me out!!!!Looks like I might have found the solution on a youtube comment: R.O: "Plug into you laptop first, whichever set up you use that has iTunes, i [More]
I have just downloaded imovie and I'm anxious to use it. I have used a lot of movie/slide show programs. How do you burn your created IMovie to a DVD that will play on a regular DVD player or computer? Thanks ahead of time. LeslieBuy iDVD. IDVD is a [More]
OK, yesterday's security patch has done something untoward to my machine. Everything was working fine until I applied yesterday's Security Update 2015-002 (http://support.apple.com/kb/HT1222).  Now the Server application is reporting "Unable to deter [More]
can you please explain what and where these are and how to access them, thanks. Solved! Go to Solution.Hi I think there's no "file explorer application and reader folder xperia"! There's only an app named "File transfer"- or  you can u [More]