News for hackers. Stuff that matters.
Re:What ORMs have taught me: just learn SQL (2014) by eru on Sunday June 26, 2016 @11:38PM (#11984085)
> ORMs are a tool, that's it. The relational operations of SQL and the object-oriented (or functional) logic of your application code are usually very different and it's nice to have a mapper that lets you interact with your app's language while it takes cares of automatically mapping it to SQL.

Functional and relational models work really well together.

At Standard Chartered we even went so far as to add relations as a datatype to our Haskell-like language. It's a charm; and comparable for me to my experience first going from C-style arrays only to eg Python's dicts.

Only that this time the dict-style data organization was the `before'. Dicts are essentially equivalent to hierarchical databases, a model whose flaws relational databases were invented to address.

Re:What ORMs have taught me: just learn SQL (2014) by pbowyer on Monday June 27, 2016 @03:15AM (#11984608)
> At Standard Chartered we even went so far as to add relations as a datatype to our Haskell-like language. It's a charm; and comparable for me to my experience first going from C-style arrays only to eg Python's dicts.

Have you written about this? It sounds really interesting.

Re:What ORMs have taught me: just learn SQL (2014) by eru on Monday June 27, 2016 @07:36AM (#11985510)
I haven't written about this yet, alas. There's a bit of information at https://www.reddit.com/r/haskell/comments/2u0380/slides_from...
Re:What ORMs have taught me: just learn SQL (2014) by insulanian on Monday June 27, 2016 @09:00AM (#11985844)
Could you provide some examples?
Re:What ORMs have taught me: just learn SQL (2014) by eru on Wednesday June 29, 2016 @06:58AM (#12000766)
Sorry, lacking the time for that. But basically all the advantages of relational over hierarchical databases apply for relations vs dicts as datastructures.