Here is a new idea I discovered just a few days ago while working with Codexia, a Ruby web app. I had to fetch data rows from PostgreSQL and return objects to the client. It���s always been a problem for me, how to do that without turning objects into DTOs. Here is the solution I found and gave a name: Veil Objects.
[image error]Constantine (2005) by Francis Lawrence
Let���s say I fetch the list of projects from PostgreSQL:
class Projects def fetch @pgsql.exec('SELECT * FROM project') end end
The...
Published on May 18, 2020 17:00