background preloader

SVILUPPO

Facebook Twitter

MOBILE

DIDATTICA. Java Anti-Patterns. This page collects some bad code that may not look so obviously bad to beginners.

Java Anti-Patterns

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. In fact I have collected all examples from everyday junior code. I have modified the original code to give it example character and such that it highlights the problems. Building a Domain Model – An Introduction to Persistence Agnosticism » phpmaster. With so much water flowing under the Domain Models bridge over the last few years, it’s rather hard to dig deep into the key concepts without rippling even more confusion in the already agitated creek.

Building a Domain Model – An Introduction to Persistence Agnosticism » phpmaster

Moreover, with tons of MVC implementations proliferating like hungry ants, the acronym’s “M” continues to suffer from the symptoms of an ad-hoc layer, usually known as a Database Model, which can pollute with total impunity the domain logic with code for database access (hence infrastructure), or with other type of underlying storage. What makes a Database Model so appealing in many cases is that it performs fairly well from the perspective of client code.

DESIGN