Blog Archives

Object Oriented Frameworks: Concepts, White Box and Black Box Examples

When teaching Object Oriented Frameworks (usually in Advanced Object Oriented Programming courses) there is a challenge for students to understand their nature, differences with libraries and the difference between white box frameworks vs black box frameworks. In this post I

Posted in Design & Architecture, Frameworks, Object Oriented Programming Tagged with: ,

Hibernate/JPA – Transparent Persistence II

I wanted to add another nice example about Transparent Persistence (explained in a previous post), to insist on the beauty of this. This time, adding JPA mappings in the classes that represent the domain model of my application. Additionally, I

Posted in Persistence Tagged with: , ,

Lambda Expressions in Java, a Concrete Example

Maybe you have read several posts on the web on how Lambda Expressions are used. Most of the ones I have read uses examples for filtering collections with the new Stream API of Java 8. Those examples are good but

Posted in Design & Architecture Tagged with: , ,

Hibernate/JPA – Inheritance and Polymorphic Asociations

This post is part of a series of post I will be written about Hibernate. In this one, I will be describing how Hibernate and JPA deals with inheritance and polymorphic associations. I’m going to implement a very simple bank

Posted in Persistence Tagged with: , , , ,

Hibernate/JPA – Transparent Persistence

This is the first of a series of posts to provide an insight about Object Oriented Persistence, using an Object Relational Mapping tool like Hibernate. We will start with few concepts. Object Relational Mapping JPA (Java Persistence API) is the

Posted in Persistence Tagged with: , , , ,

Eclipse and PHP

After installing LAMP, lets configure Eclipse for PHP development. 1. Install Eclipse Download Eclipse latest version, from here. You just need the Eclipse Standard version (if you only want to develop PHP Web Applications). At the time of writing this

Posted in Dev&Ops Tagged with: ,

LAMP stack in Ubuntu – Install & Configuration

This is the first post of two where you will end up configuring a PHP development environment in Ubuntu and using Eclipse. This first post is for installing and configuring Apache, MySQL and PHP in Ubuntu. From a fresh installation

Posted in Dev&Ops Tagged with: ,

Use Inheritance Properly

How many times did you ask yourself, in order to avoid duplicated code, if you should use inheritance or composition? Did you ask yourself about the differences between subtype and subclass? Do you always follows the Liskov Substitution Principle? This

Posted in Design & Architecture, Object Oriented Programming Tagged with: , ,

An Introduction to Gradle

Reading over the web about the Spring 3.2 new features, I discovered that Spring has been migrated their build scripts from Ant+Ivy to Gradle. All the build scripts that creates and manage the Spring modules were converted into Gradle. This

Posted in Dev&Ops Tagged with: ,

Please, use the debugger

Before getting into the point of this post, by debug I mean going through each line of source code one after one or step by step. Reviewing the state of the memory at each step (and if you are really

Posted in Notes Tagged with: