Java Anti-Patterns This page collects some bad code that may not look so obviously bad to beginners. Beginners often struggle with the language syntax. They also have little knowledge about the standard JDK class library and how to make the best use of it.
The 3 things you should know about hashCode() In Java, every object has a method hashCode that is simple to understand but still it’s sometimes forgotten or misused.
IT Happens Here!: Understanding the Different ApplicationContexts in Spring Application As a beginner to spring, one might often not know the difference between the several applicationContexts that we use in a spring application. Spring documentation is the best place that can really guide you though the process of completely getting this clarified! But here is the abridged version for a quick understanding of the differences between the various configuration files that we use in a spring application.
Drools is an Object-Oriented Rule Engine for Java. Drools is an augmented implementation of Forgy's Rete algorithm tailored for the Java language. Adapting Rete to an object-oriented interface allows for more natural expression of business rules with regards to business objects. More importantly, Drools provides for declarative logic programming and is flexible enough to match the semantics of your problem domain. Open Source Rule Engines in Java
400+ Java Interview Questions and Answers blog
Java IAQ: Infrequently Answered Questions by Peter Norvig Q: What is an Infrequently Answered Question? A question is infrequently answered either because few people know the answer or because it is about an obscure, subtle point (but a point that may be crucial to you). I thought I had invented the term, but it also shows up at the very informative About.com Urban Legends site.
Wouter Coekaerts » Puzzles This is a series of Java puzzles that put your Java skills to the test, in a challenging and fun way! A puzzle consists of some given Java code with a line in it that seems to be impossible to reach. It’s up to you to find the hole in it, abuse a subtle behavior of Java to make execution reach that line anyways. Rules
[JavaSpecialists 199] - Hacking Java Surreptitiously The Java Specialists' Newsletter Issue 199 Category: Language Java version: Java 1 - Java 7 by Dr.
Overview Commons Functor: Function Objects for Java A functor is a function that can be manipulated as an object, or an object representing a single, generic function. Functors support and encourage a number of powerful programming techniques including: programming in a functional style higher order functions internal iterators reuse and specialization through composition rather than inheritance and overloading generic "callback" or "extension point" APIs generic "filters" or predicate APIs many "behavioral" design patterns, such as Visitor, Strategy, Chain of Responsibility, etc.
Thread interview questions Java Multi-threading and concurrency questions are essential part of any Java interview. If you are going for any Java interview on any Investment bank for equities front office position expect lots of muti-threading interview questions on your way. Multi-threading and concurrency is a favorite topics on Investment banking specially on electronic trading development and they grill candidate on many confusing java thread interview questions . Top 15 java threading interview questions asked in Investment banks
Clean Code: A Handbook of Agile Software Craftsmanship
Posted by Uncle Bob on 04/08/2008 I’ve been working on this book for several years now. After a flurry of effort (you might have noticed I’ve been quiet lately) I’m very pleased to say that I’m done with the writing and am preparing the manuscript for production. See The Prentice Hall Listing Table of Contents Clean Code 1 There Will Be Code 1 Bad Code 2 The Total Cost of Owning a Mess. 3 Schools of Thought. 11 We are Authors. 12 The Boy Scout Rule 13 Prequel and Principles 14 Conclusion 14 Bibliography 15 Meaningful Names by Tim Ottinger 17 Introduction 17 Use Intention-revealing Names 17 Avoid Disinformation 19 Make Meaningful Distinctions 20 Use Pronounceable Names 21 Use Searchable Names 22 Avoid Encodings 23 Avoid Mental Mapping 24 Class Names 25 Method Names 25 Don't Be Cute 25 Pick One Word Per Concept 26 Don't Pun 26 Use Solution Domain Names 27 Use Problem Domain Names 27 Add Meaningful Context 27 Don't add Gratuitous Context 29 Final Words ... 30 Functions 31 Small! Clean Code. Whew!
collections.png (PNG Image, 802x915 pixels)
An Introduction to Generics in Java > Generic Methods Like generic classes, methods and constructors can also have type parameters. These parameters are declared prior to the return type of the method and can be used as return types, argument types, and in the throws clause. For example, see Listing 4. Listing 4 Generic method—finds max T
Introduction T he recent Java 5 (a.k.a. Java 1.5) generics implementation opens both new problems and new opportunities in the implementation of the "Gang of Four" (GoF) Factory patterns [Gamma, et al 1995]. Factory Chain: A Design Pattern for Factories with Generics by Hugo Troche - developer.*, Developer Dot Star
All text and content found at URLs starting with http://www.AngelikaLanger.com/GenericsFAQ/ (collectively, "the Java Generics FAQ") are the sole property of Angelika Langer. Copyright @ 2004-2013 by Angelika Langer . All rights reserved. Except as specifically granted below, you may not modify, copy, publish, sell, display, transmit (in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise), adapt, distribute, store in a retrieval system, create derivative works, or in any other way use or exploit the contents of the Java Generics FAQ, without the prior consent of the author. All rights, titles and interest, including copyrights and other applicable intellectual property rights, in any of the material belongs to the provider of the material. You do not acquire proprietary interest in such materials by accessing them on my web site.
Domain-Driven Design Community
Roma Framework: The new way to conceive Web Applications
An Introduction to Domain Driven Design Click here to view the complete list of archived articles This article was originally published in the Winter 2009 issue of Methods & Tools An Introduction to Domain Driven Design Dan Haywood, Haywood Associates Ltd, http://danhaywood.com/ Today’s enterprise applications are undoubtedly sophisticated and rely on some specialized technologies (persistence, AJAX, web services and so on) to do what they do.
Desarrollo Aplicaciones Web
DDD Sample Application - Introduction
javashot - Project Hosting on Google Code
Subversion, Git & Mercurial Hosting, Project Tracking, Trac Hosting & Agile Tools - Source Control Repo0 - Calendall_Alfa
m2eclipse FAQ | Sonatype
Singleton in Java – the proper way « The guy who does not speak…
Efficient way to implement singleton pattern in Java
www.qi4j.org - www.qi4j.org