3 ms·
>In C# it can be overloaded. I know it only confirms your point, but Rider highlights the overloaded operators so you spot them right away. After working with
by 5e92cb50239222b 5y ago
>In C# it can be overloaded.
I know it only confirms your point, but Rider highlights the overloaded operators so you spot them right away.
After working with dotnet for pretty long time and coming to Java world (mostly Spring with Kotlin), I was extremely disappointed to find there's no real alternative to LINQ. What's your solution to this common problem: you have a table (HTML table) with 30 different filters, you need to apply all of them if they're set. Some filters require simple field comparisons, and some filters add very complex conditions.
With LINQ and EF, it's very easy to do, and the result is clean and easy to read. I don't think there's any alternative in Java that does not require adding yet another library and re-implementing data access layer, or writing a lot of boilerplate.
- porker 5y ago> With LINQ and EF, it's very easy to do I know of LINQ, but what's EF?
- tester34 5y agoEF is ORM, basically wrapper over communication with database It really, really speeds up the work, but there's a lot of to learn about how does it work, its limitations and conventions
- SideburnsOfDoom 5y agoEF = Entity Framework. (1) It's an ORM (Object-rational Mapper) for querying SQL databases into objects. Somewhat the same space as "Hibernate" in Java. (2) Some prefer e.g. Dapper (3) as it's much more light-weight. EF is very much a big thing, but some people need and want that. 1) https://docs.microsoft.com/en-us/ef/ https://docs.microsoft.com/en-us/ef/ 2) https://hibernate.org/ https://hibernate.org/ 3) https://dapper-tutorial.net/ https://dapper-tutorial.net/
- zvrba 5y agoDon't get me started on EF/EFCore. Using it in a large project is _the_ technical decision I regret the most. As for Java, I wrote a mini-ORM in a week. No big deal. And then I can use SQL as it was intended. EFCore dumbs down the database to being a stupid object store.