interfaces define
Group items matching
in title, tags, annotations or url
1More
UML Class Diagrams Examples - Abstract Factory Design Pattern, Library Management, Onli... - 0 views
23More
Interface naming in Java - Stack Overflow - 0 views
-
capabilities
-
this is one sensible interface naming option, if the interface encapsulates a cohesive set of behaviors and yes, compared to blindly following the meaningless I+ convention, it requires some thought, but thinking of an appropriate name also forces you to (re)consider the interface's primary responsibility and how it fits into the overall design imho, a class diagram for a domain model should be almost fluently readable english
-
- ...16 more annotations...
-
Sometimes an Adjective doesn't make sense, but I'd still generally be using interfaces to model behavior, actions, capabilities, properties, etc,... not types.
-
Also, If you were really only going to make one User and call it User then what's the point of also having an IUser interface?
-
if you are going to have a few different types of users that need to implement a common interface, what does appending an "I" to the interface save you in choosing names of the implementations?
-
Implementing classes should be uglier to discourage their use.
4More
shared by kuni katsuya on 28 Apr 13
- No Cached
Exceptions Are Objects : Adam Bien's Weblog - 0 views
www.adam-bien.com/...exceptions_are_objects
AdamBien java package Exceptions BestPractices anti-patterns

34More
A proper way for JPA entities instantiation « Paul Szulc's Blog - 0 views
- ...31 more annotations...
-
And you shouldn’t really care, all that is important is that UserService depends on dao and webservice object.
-
calling new User(“someName”,”somePassowrd”, “someOtherName”, “someOtherPassword”) becomes hardly readable and maintainable
-
Instead of making the desired object directly, the client calls a constructor (or static factory) with all of the required parameters and gets a builder object. Then the client calls setter-like methods on the builder object to set each optional parameter of interest. Finally, the client calls a parameterless build method to generate the object, which is immutable. The builder is a static member class of the class it builds.
13More
Technical debt; is it only technical? | Xebia Blog - 0 views
-
distinguishes between reckless vs. rational behavior and deliberate vs. carelessly/naively choices
- ...10 more annotations...
-
Whether technical dept is categorized as deliberate, inadvertent, reckless or careful, it is good to be aware of this and see how you want to cope with it strategically.
Specification using JPA 2.0 Criteria API - Source Code « Adrian Hummel - 0 views
adrianhummel.wordpress.com/...a-2-0-criteria-api-source-code
java JPA patterns CriteriaAPI specification

15More
It's Not Just Standing Up: Patterns for Daily Standup Meetings - 0 views
- ...11 more annotations...
-
Other topics of discussion (e.g., design discussions, gossip, etc.) should be deferred until after the meeting.
Managing Software Debt: Building for Inevitable Change (Agile Software Development Seri... - 0 views
www.amazon.com/...53%26creativeASIN%3D0321554132
agile anti-patterns SoftwareDebt TechnicalDebt book

23More
Collaboration Best Practices - 3 Reasons Interruptions are Hurting Your Team's Producti... - 0 views
-
work is scattered through shared network drives, hard drives, and email
- ...17 more annotations...
-
When disorganization and uncertainty is the norm, clarification and re-clarification is needed to regularly keep a team focused and working together
-
it takes most people 16 minutes to refocus after sending an email while doing other work
-
To perform at your productive best, you need your best focus, something that’s unachievable when you’re constantly interrupted
-
Pro-Tip: Only turn on email and instant message when you need to use them
-
To combat such interruption, check these tools 3 times a day – when you first get into the office in the morning, around lunch, and before going home for the night – and turn them off otherwise.
7More
Composite pattern - Wikipedia, the free encyclopedia - 0 views
- ...3 more annotations...
-
a composite is an object designed as a composition of one-or-more similar objects, all exhibiting similar functionality
1More
Part 3 of dependency injection in Java EE 6 - 1 views
40More
Chapter 10. Integration with CDI - 0 views
- ...37 more annotations...
-
10.1. Configuration with Servlet 3 On Servlet 3 compliant containers, GraniteDS can use the new APIs to automatically register its own servlets and filters and thus does not need any particular configuration in web.xml. This automatic setup is triggered when GraniteDS finds a class annotated with @FlexFilter in one of the application archives:
-
@FlexFilter(configProvider=CDIConfigProvider.class) public class GraniteConfig { }
-
tide=true, type="cdi", factoryClass=CDIServiceFactory.class, tideInterfaces={Identity.class}
-
It is possible to benefit from even more type safety by using the annotation [Inject] instead of In. When using this annotation, the full class name is used to find the target bean in the CDI context instead of the bean name.
4More
How evil are Data Transfer Objects (DTOs)? : Adam Bien's Weblog - 0 views
7More
How To Deal With Interfaces In Java EE 6 (or no more Impl) : Adam Bien's Weblog - 0 views
-
In Java EE 6 interfaces became absolutely optional. Neither in EJB 3.1, nor CDI / JSR-330 you need interfaces. You can inject classes directly. They will be still proxied, so all aspects like persistence, transactions, interceptors, decorators are still available. So you are no more forced to implement interfaces by the container
-
used for: Strategy Pattern: there are already several implementations of an algorithm or concept Layering: there is a clear need to hide e.g. an ugly implementation of a legacy framework API (not very common): you have to expose a API, which gets implemented by SPI (e.g. JDBC)
- ...4 more annotations...
-
If you introduce interfaces intentionally - and not as a general rule, you will considerably reduce the number of files. Your code becomes easier to understand and so maintain
Conversational CRUD in Java EE 6 | Andy Gibson - 0 views
It's Not Just Standing Up: Patterns for Daily Standup Meetings - 0 views
6More
In Relation To... Bean Validation for Flex developers - 0 views
-
GraniteDS have added support for Bean Validation into their project and hence Bean Validation is usable by all Flex users
-
Because they do not run on the JVM, they basically have reimplemented the full specification in Flex: you can annotate your ActionScript3 objects with constraints: it supports all the standard constraints and you can write your own constraints you can execute the validation logic and retrieve the error report you can make use of most of the feature including advanced ones like groups, group sequence etc
- ...3 more annotations...
-
for GraniteDS users keeping their Java domain model and ActionScript3 domain model in sync via Gas3, the constraints are kept in sync
-
the constraint implementation is in the same class as the constraint declaration (not a problem in a dynamic language) @Pattern has a sightly different semantic because the regexp engine in Flex is a bit different. instead of the features provided by ConstraintValidatorContext, you can define a properties attribute in your constraints to make it belong to several sub-properties. not as flexible but good enough in many cases.