News for hackers. Stuff that matters.
Re:Enterprisify your Java Class Names by rpeden on Wednesday November 09, 2011 @11:05AM (#3216009)
If you want additional class naming inspiration, just browse the Spring codebase! Some of my favourites:

- SimpleBeanFactoryAwareAspectInstanceFactory

- AbstractInterceptorDrivenBeanDefinitionDecorator

- AbstractInterruptibleBatchPreparedStatementSetter

- SimpleRemoteStatelessSessionProxyFactoryBean

- TransactionAwarePersistenceManagerFactoryProxy

http://static.springsource.org/spring/docs/3.0.x/javadoc-api...

Re:Enterprisify your Java Class Names by huskyr on Wednesday November 09, 2011 @11:30AM (#3216128)
Wow, these names are pure gold! I've added about 30 new terms including classics such as 'Advisor', 'Filter and 'Generic'.
Re:Enterprisify your Java Class Names by stuff4ben on Wednesday November 09, 2011 @12:11PM (#3216329)
I cannot upvote you enough for that! As a Spring user for several years, I'm now beginning to have class-name-length-creep...impl ack!
Re:Enterprisify your Java Class Names by dblock on Wednesday November 09, 2011 @02:13PM (#3216925)
My productivity today tanked. I am ROFL. These are amazing.
Re:Enterprisify your Java Class Names by cpeterso on Wednesday November 09, 2011 @11:38AM (#3216167)
A related blast from the past: Steve Yegge's "Execution in the Kingdom of Nouns" blog post:

http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom...

Re:Enterprisify your Java Class Names by Roboprog on Wednesday November 09, 2011 @03:58PM (#3217365)
Yes. The site on this post seems to be "the word made flesh", though. :-)
Re:Enterprisify your Java Class Names by joblessjunkie on Wednesday November 09, 2011 @11:03AM (#3215994)
To be honest the "before" names look just as Enterprise-y as the "after" names.
Re:Enterprisify your Java Class Names by jefffoster on Wednesday November 09, 2011 @10:47AM (#3215915)
I did something similar at http://methodnamer.com/ and also some useless graphs and rants about the long names in Java (http://www.fatvat.co.uk/2011/05/method-names-in-java-develop...)
Re:Enterprisify your Java Class Names by huskyr on Wednesday November 09, 2011 @10:50AM (#3215937)
Pretty cool, but they're not long enough ;)
Re:Enterprisify your Java Class Names by jamesgeck0 on Wednesday November 09, 2011 @11:13AM (#3216042)
Change the dropdown to "Spring Framework style"

Gems such as setAspectListenerJobsToNativeIfStatements shall be yours!

Re:Enterprisify your Java Class Names by fs111 on Wednesday November 09, 2011 @03:28PM (#3217239)
That's perfect, just combine it with http://www.classnamer.com/ and later you can even autmate the commit: http://whatthecommit.com/
Re:Enterprisify your Java Class Names by breun on Wednesday November 09, 2011 @11:17AM (#3216062)
Want to find the longest class names in a Java codebase? Try this one-liner: https://gist.github.com/338197
Re:Enterprisify your Java Class Names by akavlie on Wednesday November 09, 2011 @01:19PM (#3216659)
I'm on a Spring project, and the devs seem to do all the variables in this superLongVerboseHardToReadStyle.

Most of my work is Python/JavaScript/PHP, and in all three cases, the dev culture is mostly about short, succinct variable names.

So what is it about Java that makes developers tend toward these incredibly verbose variables? It makes it impossible to produce templates with reasonable line lengths sometimes, especially after adding on JSTL directives.

Re:Enterprisify your Java Class Names by ernstje on Wednesday November 09, 2011 @03:36PM (#3217268)
I guess it's twoo things: first, It's a common thing in java to somehow work the role a class plays in a design pattern into the class name, and the second is that variable names often reflect the type (class name), so there you go. Love it, hate it or go out and have some fun...
Re:Enterprisify your Java Class Names by groovy2shoes on Wednesday November 09, 2011 @01:37PM (#3216750)
I think it's mostly a misreading of software best practices. Descriptive does not imply verbose (and vice versa), but many people don't see the distinction.
Re:Enterprisify your Java Class Names by Groxx on Wednesday November 09, 2011 @01:40PM (#3216769)
Java SE / EE, methinks. After a while, a variable that's only 30 characters long feels small and insignificant compared to its type (AbstractThreadsafeSimpleMailTransferProtocolProxyFactoryInterface).
Re:Enterprisify your Java Class Names by sehugg on Wednesday November 09, 2011 @02:03PM (#3216868)
Surely someone here has programmed in Cocoa, right? NSAccessibilityScreenPointForLayoutPointParameterizedAttribute, anyone?
Re:Enterprisify your Java Class Names by strickjb9 on Wednesday November 09, 2011 @10:40AM (#3215878)
Unfortunately, I work at a place where most of the programmers here use naming conventions like these. I'm pretty sure it's to cover up their lack of ability or maybe they are suffering from dunning-kruger.
Re:Enterprisify your Java Class Names by JonnieCache on Wednesday November 09, 2011 @11:51AM (#3216224)
>dunning-kruger

This does not mean exactly what you think it means.

Re:Enterprisify your Java Class Names by strickjb9 on Wednesday November 09, 2011 @03:10PM (#3217169)
your interpretation of my comment is not what you think it means
Re:Enterprisify your Java Class Names by JonnieCache on Wednesday November 09, 2011 @03:52PM (#3217341)
That's not my fault ;)
Re:Enterprisify your Java Class Names by juliano_q on Wednesday November 09, 2011 @10:44AM (#3215899)
Same here, and many times they complain if you give a properly simple name. Oh my.
Re:Enterprisify your Java Class Names by bocanaut on Wednesday November 09, 2011 @04:40PM (#3217553)
nice diagnosis, could be pretty likely
Re:Enterprisify your Java Class Names by numeromancer on Wednesday November 09, 2011 @11:55AM (#3216245)
Sure, you're laughing now. But somebody you work with is going to find this site and use it in earnest, and before you know it you'll be setting your Eclipse window to automatically open across four monitors in horizontal series just to be able to edit one file at a time.

No parody is so foolish that no fool will ever take it seriously. Take care who you show this to.

Re:Enterprisify your Java Class Names by vrotaru on Wednesday November 09, 2011 @12:53PM (#3216528)
My personal record:

    PropertyWithADifferentDefaultValueAlreadyExists
And I've missed to add `Exception` to its end, because that's what it is.
Re:Enterprisify your Java Class Names by chuinard on Wednesday November 09, 2011 @11:40AM (#3216177)
I've found that most of these complex class names are found in the very frameworks which exist to simplify Java development (Spring being the big one), therefore I find myself never having to create a class with a name like this.
Re:Enterprisify your Java Class Names by SystemOut on Wednesday November 09, 2011 @03:11PM (#3217174)
But to be fair, unless you are really digging in and extending Spring you don't normally interact with these classes that often. That doesn't make the class names great but for most people Spring provides a lot of functionality and does simplify a lot of tasks.
Re:Enterprisify your Java Class Names by FuzzyDunlop on Wednesday November 09, 2011 @03:39PM (#3217283)
All developers of these codebases need to do is place some ads on their documentation pages and they'll rake in a fortune from the amount of times people have to load it up to remember a class name.

Symfony2's namespacing is a good one for this too:

    \Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface
    \Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToLocalizedStringTransformer

http://api.symfony.com/2.0/classes.html
Re:Enterprisify your Java Class Names by hello_moto on Wednesday November 09, 2011 @12:24PM (#3216388)
Re:Enterprisify your Java Class Names by breun on Wednesday November 09, 2011 @01:49PM (#3216801)
Child's play!
Re:Enterprisify your Java Class Names by astrodust on Wednesday November 09, 2011 @09:41PM (#3218618)
Not enterprise enough!
Re:Enterprisify your Java Class Names by king_magic on Wednesday November 09, 2011 @10:35AM (#3215857)
lol
Re:Enterprisify your Java Class Names by king_magic on Wednesday November 09, 2011 @01:49PM (#3216802)
Well, I guess you guys are in a bad mood today.
Re:Enterprisify your Java Class Names by scott_s on Wednesday November 09, 2011 @03:14PM (#3217190)
The culture around here dislikes noise. A post which just says "lol" adds nothing to the discussion, and will likely get downvoted.
Re:Enterprisify your Java Class Names by king_magic on Wednesday November 09, 2011 @05:01PM (#3217659)
I'm quite aware what the culture is like. Frankly, I don't care, I thought the original post was funny, and I said so. It's not that big of a deal if I get downvoted, but honestly, don't you think this type of downvoting is a sign people just might be taking things a bit too seriously?

After all: the original post was a site that made progressively more ridiculous names for Java classes. I could argue that post adds nothing to the discussion in the first place (other than being amusing).

Re:Enterprisify your Java Class Names by kls on Wednesday November 09, 2011 @05:48PM (#3217884)
don't you think this type of downvoting is a sign people just might be taking things a bit too seriously?

Put simply no, there are a plethora of other sites that allow humor, many here find them to be too noisy or they keep their humor and one liners to the other sites. I personally like humor but have seen how it can destroy an otherwise great informational site. If it where allowed on HN the quality of HN would be destroyed in less than a years time. I have been around the net a long time, and have seen many come and many go, the common thread among all of the ones that went was the posts became utter garbage. One you loose the post, the high value contributors move on, then the quality of information suffers and provides further fuel for poor comments.

So it may seem that HN is a bunch of sticks in the mud, but remember we have a lot of high value people in this community many of us, helped create the net in the very early days, while others are Vally insiders, yet others are successful product people. HN is one of the most valuable resources in the tech world, to loose that would be a grave loss.

That being said, I agree with you on the quality of this article, I think it speaks volumes about the point I am trying to make.

Re:Enterprisify your Java Class Names by king_magic on Thursday November 10, 2011 @09:33AM (#3220143)
Fair enough. I can see your point.
Re:Enterprisify your Java Class Names by scott_s on Wednesday November 09, 2011 @05:02PM (#3217664)
We're trying to avoid having pages and pages of such comments, which can drown out real discussion. It's a signal-to-noise issue.
Re:Enterprisify your Java Class Names by king_magic on Wednesday November 09, 2011 @05:08PM (#3217686)
I don't necessarily disagree with you in the grand scheme of things. It's just somewhat hypocritical, in my opinion, to admonish someone for saying "lol" in response to, well, let's face it: a completely ridiculous post.

But fair enough. There are plenty of communities online that I am active in that have their own inconsistencies in how they police themselves (whether through moderation or downvoting). I'm not going to take it too personally.

Re:Enterprisify your Java Class Names by scott_s on Wednesday November 09, 2011 @05:10PM (#3217698)
It's not an admonishment. It doesn't mean people think you're a bad person. It just means that if that's all you have to say, they'd rather you said nothing.
Re:Enterprisify your Java Class Names by king_magic on Thursday November 10, 2011 @09:47AM (#3220192)
Well, if that's the case - why can't one delete a comment after a certain period of time?
Re:Enterprisify your Java Class Names by scott_s on Thursday November 10, 2011 @02:21PM (#3221393)
I don't know. I bet it's probably an artifact of the implementation - it may be tied to the fact that you can't edit a post after a certain period of time.