Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save settermjd/b0e7115aca10e6a6805ba57ae63191d9 to your computer and use it in GitHub Desktop.
Save settermjd/b0e7115aca10e6a6805ba57ae63191d9 to your computer and use it in GitHub Desktop.
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
Copy link

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
Copy link

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
Copy link
Author

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