Search Postgresql Archives

Re: Thoughts on "Love Your Database"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/03/2016 09:11 PM, Guyren Howe wrote:
I think I'm going to write a book called Love Your Database, aimed at web developers

What might I cover that I haven't mentioned? What are the usual objections to server-side code and how can they be met? When *are* they justified and what should the criteria be to put code in Postgres? Any other thoughts? Any other websites or books on the topic I might consult?

I gave a talk here about doing "interesting" Postgres things in Rails:

https://github.com/pjungwir/rails-and-sql-talk

I don't think that will satisfy many people on this list advocating for stored procedures, but it is an example of trying to teach what SQL can do, and how you can do those things without losing your convenient and familiar ORM tools, e.g. running a query and getting back a bunch of Ruby objects.

I was not really happy with the talk to be honest. I felt it lacked unity, it didn't fit in the time I had, and it was too split between "for beginners" and advanced stuff. It was just snippets---in other words CTEs and window functions :-). I would like to see something that offers more strategic advice. Give me a plan.

I would be very interested in that book. I think the biggest challenge will be identifying with your audience: knowing their priorities and concerns and workflows. My take on the last 25 years of software architecture theory is "how to put a layer in front of my database." I think most people who want business logic in the database are dismissive of this work and too derogatory toward typical web developers, so I would be pleased to see a book that takes that history more seriously. You aren't going to convince the world to trade Rails for PLSQL. But are there ways I can use SQL (and PLSQL) without giving up Rails? How will I maintain that stuff? Does it play nice with Rails database migrations? How will I write tests for it? How do I debug it? What principles will help me draw the line between (PL)SQL and Ruby?

Good luck! I think a book like that would be great.

Paul







--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux