[The Java Posse] Re: Package by feature or layer?

2014-09-15 Thread Jonatan Jönsson
like a user DAO or DTO that might be used in almost all the features? I think a core/common feature would be a great place to put it. To not expose dependencies of core to other features I'd also introduce a common feature that all features can depend on, then common can be implemented

[The Java Posse] Re: Package by feature or layer?

2009-08-12 Thread John Nilsson
Maybe User is just overloaded with meaning and should really be split up into multiple classes (or traits if you have them) each focused on their role in their respective package? Or maybe User shouldn't be in any of them, maybe User is just the mechanics to implement a specific feature which

[The Java Posse] Re: Package by feature or layer?

2009-08-10 Thread Rob Wilson - BabyDuke JUG
I like the idea of organizing the packages by feature, but I wonder where you put the common code, or code that is used in a couple of places? For example, the domain objects might not fit exclsuvely in one feature - like a user DAO or DTO that might be used in almost all the features? I guess I

[The Java Posse] Re: Package by feature or layer?

2009-08-10 Thread Casper Bang
This sort of thing is terribly difficult to discuss without concrete examples. For shared domain stuff, you can usually still identify an intersecting level higher up in the hierarchy no and aim to have these as abstract as possible no? In some ways it reminds me of the hard part of doing REST,

[The Java Posse] Re: Package by feature or layer?

2009-08-08 Thread Christian Beil
Here is an interesting real-life experience regarding this topic, although C# was used :) http://richarddingwall.name/2009/08/08/real-life-ddd-organise-code-by-responsibility-layers-not-repositories-and-services/ --~--~-~--~~~---~--~~ You received this message

[The Java Posse] Re: Package by feature or layer?

2009-06-29 Thread Mwanji Ezana
On Jun 13, 1:15 pm, Christian Beil christian.a.b...@gmail.com wrote: What is your opinion on that? I'm especially interested in what you think about structuring packages? Do youpackageby layer (ie dao,service,controller,...) or do youpackagebyfeature? I think the IDE should let you tag stuff,

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Casper Bang
The thing is, NetBeans (and even Java itself) is no longer just used for imperative programming where you can simply agree to conform to a 120 character line. Just staying with JEE technologies, we require editing files full of Facelet/XML, JavaScript, SQL/JPQL annotation etc. It's particular

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread E Winter
I suppose it is too much of a religious war but I would love more discussion of code style. You will have to gauge other fans but I like to hear it hashed out. Pick a coding practice of the week (good or bad) and riff on it for 5 minutes. I now am an anti-tab evangelist! Coding standards are

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Viktor Klang
I recently view the Google Tech Talks on Clean Code, and I hae to say htat I'm becoming more and more adverse to dereferencing things that are not either passed into the constructor of the object at hand, or into the mthod being invoked. (I.e. No calls to singletons) When combined with Scala's

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Viktor Klang
Just as a side-note, I'm not drunk, my wireless keyboard is just low on battery... On Fri, Jun 19, 2009 at 2:50 PM, Viktor Klang viktor.kl...@gmail.comwrote: I recently view the Google Tech Talks on Clean Code, and I hae to say htat I'm becoming more and more adverse to dereferencing things

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Dan Godfrey
One of thing missing is an Inline Variable refactoring. I use that, along extract local variable, almost constantly while hacking code with eclipse. Also, the code formatter won't format to our exact code style at the moment either, although can't remember which bit exactly it doesn't handle.

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Christian Beil
To get back to the initial topic, Tor, would you discuss 'package by layer' vs. 'package by feature' on the podcast? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups The Java Posse group. To post to this group, send

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Bill Robertson
On Jun 18, 7:23 pm, Peter Becker peter.becker...@gmail.com wrote: I feel similar. NetBeans is quite nice in many regards, but generally lacking in terms of code hygiene. Between NetBeans not even auto-formatting generated code and Eclipse fixing dozens of things as Save Actions a lot is still

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread TorNorbye
Save Actions. Yeah, I can see that that would be useful. I know the hard part has already been done (there's a new action for removing trailing whitespace for modified lines only, and they added some infrastructure for save-time actions for that) so what's left is an options panel for letting you

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Peter Becker
Bill Robertson wrote: On Jun 18, 7:23 pm, Peter Becker peter.becker...@gmail.com wrote: I feel similar. NetBeans is quite nice in many regards, but generally lacking in terms of code hygiene. Between NetBeans not even auto-formatting generated code and Eclipse fixing dozens of things as

[The Java Posse] Re: Package by feature or layer?

2009-06-19 Thread Peter Becker
I had the same feeling when reading that article -- but I stopped arguing about any flavor of hungarian notation a while ago. Unless someone uses it on projects I work on, that is :-) But it is good to see I was not the only one offended. The other things I noticed is that (a) most of the

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Erlend Hamnaberg
Don't get me started on the deficiency of Netbeans. This feature is a must and has been in all others IDEs forever. Why the hell isn't JAVA a language that needs attention in Netbeans? Since this is written in Java, why isn't this the main language supported Java is the LEAST developed language

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Bill Robertson
On Jun 18, 2:18 pm, Erlend Hamnaberg ngar...@gmail.com wrote: I really like Netbeans. But until you get REAL editor support for JAVA, I can't use it. Can't read your mind, so what do you feel is missing? --~--~-~--~~~---~--~~ You received this message because

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Casper Bang
Yes NetBeans HAS come a very long way but it's true its not there yet. For me, one of the few really big things missing now is line wrapping. I see people requesting this on the bug tracker almost every single day. /Casper On 18 Jun., 20:48, Ryan Waterer aguitadel...@gmail.com wrote: Erlend,

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Fabrizio Giudici
Casper Bang wrote: Yes NetBeans HAS come a very long way but it's true its not there yet. For me, one of the few really big things missing now is line wrapping. Can you elaborate? -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere.

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Fabrizio Giudici
Casper Bang wrote: Sure, but it really would be faster to just guide you to the top 4'th voted item on the issue tracker: http://www.netbeans.org/issues/show_bug.cgi?id=89894 Thanks. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere.

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread TorNorbye
On Jun 18, 11:18 am, Erlend Hamnaberg ngar...@gmail.com wrote: Don't get me started on the deficiency of Netbeans. This feature is a must and has been in all others IDEs forever. Maybe it's been in all other IDEs forever, but I just fired up Eclipse 3.4 and I can't find it. I'm sure it's

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread TorNorbye
Yeah, NetBeans should add soft word wrapping. Eclipse doesn't have it either (except for a third party plugin, currently at version 0.0.2, which doesn't work with some languages and apparently breaks line numbering) - but people coming to NetBeans from for example TextMate certainly miss this

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread TorNorbye
On Jun 18, 4:26 pm, TorNorbye tor.nor...@gmail.com wrote: On Jun 18, 11:18 am, Erlend Hamnaberg ngar...@gmail.com wrote: Don't get me started on the deficiency of Netbeans. This feature is a must and has been in all others IDEs forever. Maybe it's been in all other IDEs forever, but I

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Augusto
I like this comment from the bug report; This feature is necessary, for simple usability because is impossible read a line code with thousands columns. A line of code should never have thousands of columns. On Jun 18, 7:49 pm, TorNorbye tor.nor...@gmail.com wrote: On Jun 18, 4:26 pm,

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Peter Becker
I feel similar. NetBeans is quite nice in many regards, but generally lacking in terms of code hygiene. Between NetBeans not even auto-formatting generated code and Eclipse fixing dozens of things as Save Actions a lot is still to be done. Let me elaborate. The premise is that I'm a bloody

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Joshua Marinacci
maybe the were entering a one-line-coding-contest? i used to type those as a kid in the back of Nibble and Byte magazine (in apple soft basic with a ton of semicolons :) On Jun 18, 2009, at 5:49 PM, Augusto wrote: I like this comment from the bug report; This feature is necessary, for

[The Java Posse] Re: Package by feature or layer?

2009-06-18 Thread Christian Beil
Thanks Tor for pointing out Ctrl-Shift-Cmd-O, didn't know of that one. I didn't even think of this feature. I use Eclipse most of the time, and I don't think Eclipse has this feature. I only know of Open Type (Ctrl-Shift-T) and Open Resource (Ctrl-Shift-R).

[The Java Posse] Re: Package by feature or layer?

2009-06-15 Thread John O'Hanley
Hi Christian, In addition, there is an article on javapractices.com on the same issue: http://www.javapractices.com/topic/TopicAction.do?Id=205 My overall feeling is that package-by-layer is a wide habit, but one that is often worth breaking. In addition, a problem seems to be example code.

[The Java Posse] Re: Package by feature or layer?

2009-06-15 Thread Alexey
I think at a point, where packaging by layer starts to become a serious handicap is where real modularity needs to come in. In most cases, even now in Java, it doesn't have to take much effort to make an application extensible via some sort of simple plug-in/module architecture. If you have

[The Java Posse] Re: Package by feature or layer?

2009-06-14 Thread Daniel Wellman
I agree with the semantics of package-by-feature. In Robert Martin's Agile Software Development: Principles, Patterns, and Practices book, he has a very big section on packaging and how it affects coupling and reuse. I do see that many projects tend to ignore this and package by layer (and I've