3 ms·
> caching, transaction management, DB access etc Aren't these mostly features of your data layer e.g. Hibernate? > It abstracts all the layers so you can easi
by davedx 5y ago
> caching, transaction management, DB access etc
Aren't these mostly features of your data layer e.g. Hibernate?
> It abstracts all the layers so you can easily replace everything under the hood with full compatibility as your business grows.
Java is a perfectly capable language for implementing abstractions. What does Spring offer you there that you can't do with plain old Java?
- invalidname 5y agoYes it uses Hibernate. The integration through Spring Data is seamless. Also caching isn't just L2 Hibernate cache. It's external caching layer, integrations with Redis/memcached etc. It provides encapsulation for all of these elements that you don't have to do on your own.
- rad_gruchalski 5y ago> Java is a perfectly capable language for implementing abstractions. What does Spring offer you there that you can't do with plain old Java? A concise framework where all components talk the same language across the full stack.
- signal11 5y ago> A concise framework where all components talk the same language across the full stack. Spring is many things, but it's not a "concise" framework by any means.
- rad_gruchalski 5y agoStill better than writing everything by hand.
- signal11 5y agoSpring vs “writing everything by hand” is a false dichotomy.
- xboxnolifes 5y agoConsidering this conversation branched from "What does Spring offer you there that you can't do with plain old Java?", I'm not so sure that's the case.
- pritambarhate 5y ago>> What does Spring offer you there that you can't do with plain old Java? Well nothing. Since Spring it written in Java, anyone else using Java can do all of those things. The things is Spring already does all these things and it does them well. It's well tested and well supported. Most people don't want to do all of this from scratch. So they need a framework anyways. So they choose Spring because it's the leading framework in Java world. There are a lot of people who already know Spring and can become productive in a Spring codebase fairly quickly.