3 ms·
>And the abstractions will leak, and you will be pissed of sometimes, but It Is Worth It because you will save a lot of development time. Only on some language
by mixedCase 10y ago
>And the abstractions will leak, and you will be pissed of sometimes, but It Is Worth It because you will save a lot of development time.
Only on some languages. As I mentioned on another comment, on Go I'm very productive using simple database/sql + sqlx. On C# I could die writing mapping boilerplate before getting any business logic done.
- thomasahle 10y agoDoes database/sql check syntax at compile time? Or do you just try to unit-test you out of that?
- snuxoll 10y agoNo, but even though Entity Framework (as an example) does check types at compile time it doesn't prevent you from making mistakes that will cause runtime errors (oh the number of times I have run into issues trying to do simple things like ThingsToCheck(x => x.Created <= DateTime.Now.AddHours(-1)) which you would think works, after all it compiles, but it will just throw a runtime error because LINQ to Entities doesn't know how to parse the expression tree). Type-safe ORM's don't preclude integration testing, end of story.