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
Hi I have a requirement that I am not quite sure is even possible in the context of Site Column I am getting an error - maybe though lack of embedded quotes but also I am wondering if this should be possible since Created is an OOTB column even if it [More]
I have the PSE 10 in the Mac App store version. NEF files from my Nikon D700 opens fine. The NEF files from my Nikon 1V1 don't.Well, the thing with the app store version is that apple doesn't let developers set things up to update any way except thro [More]
We have calls to run SQL scripts in our docs, and the syntax for executing those scripts is @ScriptName.SQL. When generating the PDF from FrameMaker using Acrobat, it is embedding live Mailto: links in the script names because of the @ character. How [More]
I have a series of AVI files that play fine in Windows Media and VLC media player.  When I drop them on the timeline (Adobe Premiere Pro CS6, version 6.0.5), each clip shows up as black – with the correct length, but no video.  Can you assist?Hi, Wha [More]
SQL Dev 2.1.1.64 on WinXP. I can select entire line in data grid (or query result) by clicking on leftmost column with row number. I expect to select various lines by clicking and dragging, but it won't work. It worked in v1.5. Thanks, MVr.Still 3 ot [More]
Hello all, I am new to InDesign and would really appreciate some tips/advice on how best to transfer a large amount of text from Microsoft Word into an InDesign document. I have been tasked with creating a very simple pocket sized book, the content o [More]
In the right light, I can see dust and haze on the backside of my screen. Does the bezel just pop off somehow or do I need to bring it in and have the insides taken out to clean the glass?Thanks to whoever mentioned the suction cup idea. I don't thin [More]
I got a new computer and the geek squad transferred my old files to the new computer along with my Photoshop Elements 4.0, which I upgraded to Photoshop Elements 11.  The problems is that my proxy files are missing.  I should say that they are in the [More]
Hello, I'm new to Dreamweaver and a novice website builder. I have a website that I've designed in a table. The top two rows remain the same on every page as well as the navigation running down a column on the left side. Is there a way to setup a scr [More]
I am using the Find and Replace feature of Dreamweaver 8 and especially the "Use Regular Expressions" setting.  But I have never been able to make the Regular Expression anchors "^" and "$" work at all.  This are supposed to [More]