Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This is an abstract for a talk about using the Zend Hydrator package to hydrate and extract simple to sophisticated objects.

Data, Data Everywhere And Not a Drop to Drink!

Populating objects with data (commonly referred to hydration), and extraction of said data from objects, are two key aspects of building object-oriented applications. It doesn’t matter whether the data source is a Relational, NoSQL, or Graph database, a flat text file, or a form. We need to hydrate and extract data - a lot. But how do we do it effectively - especially when objects can be quite complex?

In this tutorial, I will teach you how to use the Zend Hydrator package to perform both hydration and extraction. We’ll start off working with simple objects, and hydrate them from a relational database. We’ll then, gradually, increase in complexity, showing how to hydrate increasingly complex objects. We’ll also see how to create flexible and sophisticated hydrators which can use a multitude of data sources, such as forms, along with how to extract data from hydrated objects.

By the end, you'll be able to build hydration and extraction strategies to suit any use case you can encounter.

@chrisseaton

This comment has been minimized.

Copy link

chrisseaton commented Jun 19, 2016

I'd never heard the term 'hydration' applied to objects before. I do see search results for it now I look though. If it's common in your field, then it's probably fine. If you are targeting more general programmers then maybe think about less jargon? Such as 'instantiate' instead? I wouldn't know what hydration was, so I wouldn't know to come to this talk.

@colinodell

This comment has been minimized.

Copy link

colinodell commented Jun 19, 2016

I agree with @chrisseaton. While I'm personally familiar with hydration you may want to provide a definition for that term. Perhaps you could revise the first sentence from this:

Hydration of objects with data...

To something along these lines:

Instantiating objects with data (also known as "hydration")...

or:

Populating objects with data (commonly referred to "hydration")...

Essentially providing a definition of what hydration means for someone unfamiliar with the term.

@settermjd

This comment has been minimized.

Copy link
Owner Author

settermjd commented Jun 21, 2016

Thanks @chrisseaton and @colinodell. Points well understood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.