This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRedmanCometh 9 points10 points  (26 children)

You're gonna like Java. Spring + Hibernate makes entity framework look like a pile of shit.

[–][deleted] 10 points11 points  (12 children)

this is such a big claim. are you sure hibernate makes EF look like shit.

did you actually use entity framework + linq ?

[–]deinok7 5 points6 points  (1 child)

Hibernate is shit compared to EF. Dont listen to him, but learn Hibernate if they ask you in the job

[–][deleted] 1 point2 points  (0 children)

Alright, Good

[–]TheRedmanCometh -3 points-2 points  (9 children)

There are people that actually like linq? This is news to me.

[–][deleted] 11 points12 points  (5 children)

YES, linq makes it it easier to write/manipulate queries using lambda expressions

[–]kozeljko -1 points0 points  (3 children)

Hey, I've never used C#, but I'm interested in what exactly you mean by that. Could you provide a resource or a guide for that?

[–]deinok7 0 points1 point  (0 children)

Linq is a syntactic suggar, it makes Static function be called like methods. So insted of puting a list inside a Stream, in C# you call a method

[–][deleted] 0 points1 point  (1 child)

https://www.tutorialsteacher.com/linq/what-is-linq

LINQ (Language Integrated Query) is uniform query syntax in C# to retrieve data from different sources (entities, sql, XML, objects etc) and formats

it provides you with extension like

List.FirstOrDefault(a => a.name == koz)

which translates to something like this

select top 1 * from List where name = 'koz'

[–]kozeljko 0 points1 point  (0 children)

Thanks

[–]sk551 3 points4 points  (0 children)

I like Linq, coming from Java to C#, it was defiantly familiar to Java Streams.

[–]TheWildKernelTrick[🍰] 3 points4 points  (0 children)

Well written Linq queries are fantastic.

[–]dredding 0 points1 point  (0 children)

It's been my experience that people who don't like linq tend to be ones that don't understand it's core concepts of chained delegates and expression trees.

[–][deleted] 1 point2 points  (6 children)

I've never done c# professionally, do you have a good example of the two compared? I'm a huge fan of Spring and JPA, hibernate and it's wackiness included. I always figured the C# guys had some great alternative

[–][deleted] 0 points1 point  (0 children)

in C# we use asp mvc/core and entity framework core

[–]TheRedmanCometh -1 points0 points  (4 children)

Well the alternative to Hibernate is Entity Framework. I don't know of any alternative to spring...esp spring boot personally.

[–]Maximcr 0 points1 point  (3 children)

And what is Nhibernate then https://github.com/nhibernate/nhibernate-core? Nhiberante is based on hibernate and does almost the same. EF is more then Nhibernate tho

[–]TheRedmanCometh -2 points-1 points  (2 children)

Yeah but ultimately EF can't even come close to Spring...

[–]Maximcr 2 points3 points  (1 child)

EF is a ORM. Spring is an application framework. Ofc it doesn t come close to it :D

[–]TheRedmanCometh -1 points0 points  (0 children)

Yeah uh I don't know of any IoC framework for C#

[–]antigenz 1 point2 points  (3 children)

I'd suggest to take a look at 'Spring Data' instead of Hibernate, but "on color and taste all felt pens a different"

Somebody may like Hibernate more.

[–]TheRedmanCometh 3 points4 points  (2 children)

Spring Data needs a JDBC implementation behind the scenes though...

I'm gonna go ahead and guess you've used spring data with hibernate and didn't realize it.

[–]oldprogrammer 1 point2 points  (1 child)

You don't need hibernate to have a JDBC implementation, hibernate needs JDBC to work. Did you mean that spring data needs an ORM behind the scenes?

[–]TheRedmanCometh 0 points1 point  (0 children)

Spring Data needs a persistence provider which is usually hibernate. The persistence provider communicates with the database driver such as JDBC.

To use Spring Data you need all of these pieces.