Modern ORMs at least more type-safe than SQL: there is no work with 
strings, only with autogenerated constants. Also ORMs abstract you not only 
from SQL coding, but also from specific for DBMS SQL: with ORM you can 
easily switch PostgreSQL to MySQL.

воскресенье, 10 сентября 2017 г., 3:43:42 UTC+3 пользователь Shawn Milochik 
написал:
>
> In my opinion, ORMs are worse than useless. You need to know SQL to use an 
> ORM. So if you use an ORM, you must bear in mind the underlying SQL *and* 
> know 
> the syntax of the ORM. Using an ORM "saves" you from writing some 
> boilerplate code, but then you have to write ORM-specific boilerplate code, 
> which is more verbose than the SQL it replaces. Regardless of which 
> boilerplate you write, you only have to write it once. Adding more layers 
> (leaky abstractions) and additional syntax adds complexity and saves 
> nothing. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to