Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> > Another selling point which is "you don't need to know SQL"

> It has never ever been a selling point by anyone with an ounce of brain.

Every project I've been involved with that got saddled with an ORM was originally justified "so junior developers don't need to know SQL".

Which is a great way to paint yourself into a very painful corner, but that's what teams do.




> Every project I've been involved with that got saddled with an ORM was originally justified "so junior developers don't need to know SQL".

The people who made "not knowing SQL" the main reason to use an ORM should not be making the decision to use an ORM. They can only use it incorrectly.

If there are ORMs that document "not needing to know SQL" as a key selling point of their ORM, they should remove those sentences because it's not.

As someone with 15 years experience using ORMs, you absolutely do need to know how your database works to be effective at using an ORM well. Once you do, and you understand how your ORM works, I still think the benefits of a well-integrated ORM into your codebase make it worthwhile. Generally the code becomes easier to understand, modify and reuse if you're using an industry-standard ORM. Like with most good libraries or frameworks, the number of use cases the maintainers encounter usually means you'll find something pre-prepared when you come across a new problem.


To be fair, in our DAL we use Entity Framework (which is kind of just an ORM++) and a good 95% of the queries we do are just straight up linq. The last 5% which use raw SQL are critical paths we found either directly through testing or as our customers systems gradually got slower as the database grew and needed optimisation.

Eventually the Juniors are expected to learn SQL, but until such a time as they do they can still make useful contributions to the code base.


> Entity Framework (which is kind of just an ORM++)

Entity Framework is the best ORM I have ever used. There's no competition in my opinion.

I used to use Dapper a lot, but EF has easily replaced all of those needs for me.


Honestly, where are they even getting junior developers that don't know some basic amount of SQL or can't learn it in an afternoon? It's such a non-issue. What a great way to ensure juniors never gain proper SQL experience/expertise, and they'll be the later senior developers too, which just propogates the problem.


Sorry to hear that you encountered such teams. It tells a lot about their professionalism and experience. There are teams which do not use this kind of argumentation.


That sounds like Human Resources or non-technical management taking technical decisions.


Just wait until LLMs get to that point.

"We use CoPilotPro so that junior business analysts who can't code can still create applications".


We're already at that point.

Ask chatgpt to generate the schema for an online business that sells sports equipment and see what happens.

Now ask it to write code accesses each table.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: