5 ms·
Every time Spring is mentioned, I am reminded of things like these: http://docs.spring.io/spring-framework/docs/2.5.x/api/org/springframework/aop/framework/Abs
by userbinator 12y ago
Every time Spring is mentioned, I am reminded of things like these:
http://docs.spring.io/spring-framework/docs/2.5.x/api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html http://docs.spring.io/spring-framework/docs/2.5.x/api/org/sp...
http://docs.spring.io/spring-framework/docs/2.0.8/api/org/springframework/aop/aspectj/annotation/SingletonMetadataAwareAspectInstanceFactory.html http://docs.spring.io/spring-framework/docs/2.0.8/api/org/sp...
- octatoan 12y agoThese things actually exist?!
- userbinator 12y agoThey do, and I think more unsettling is the fact that they are completely serious about doing these things. The widespread use of IDEs that autocomplete probably leads to a feeling of indifference ("I don't have to type it all anyway.") Also related is the forced convention of requiring one directory nesting level per package name component, resulting in deeply-nested mostly-empty directories that have a tendency to easily exceed filesystem limits. Here's another ridiculous class name found in different project (AspectJ): http://aspectj.sourcearchive.com/documentation/1.6.5plus-pdfsg/HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor_8java-source.html http://aspectj.sourcearchive.com/documentation/1.6.5plus-pdf...
- tomjen3 12y agoReally accurate methods names are a Good Thing, because you are less likely to be surprised at what they do. AbstractProxyFactoryBeanInstanceSingletonCommand is not, because it is too abstract. Typing the name is not so bad though.
- joewalnes 12y agoWords cannot describe...
- JustSomeNobody 12y agoThis is what happens when you take something good (patterns) too far, and then keep going.
- foolinator 12y agoModern spring is amazing. Look into it. It's no longer the configuration hell it was 10 years ago. Everything is convention Over configuration. It's easy to run and configure.
- malkia 12y agoI've started using java just recently, spent years in C/C++/etc... So is spring the java equivalent of boost?
- twic 12y agoNot quite. Although i don't know C++ well enough to be sure. Spring started life as a dependency injection framework, and that still constitutes the central part of it. Dependency injection is the mechanism by which components of an application are created and assembled, and so there was a natural expansion of Spring into providing those components. Spring now provides a web framework, plumbing for database persistence, batch processing, and all sorts of other things: https://spring.io/platform https://spring.io/platform AIUI, Boost is a collection of libraries. Spring is much more frameworky than that. The general approach with Spring is to add a particular module to your project, sprinkle a few magic annotations on your code, then watch in wonder as lots of sophisticated stuff happens, exactly as Spring's designers foresaw. Usually. There are two main alternatives to Spring. Firstly, Java EE, which is similar in spirit, smaller in extent, and the product of a decades-long standards process involving some of the world's most ponderous companies, but really not as bad as that might suggest: http://www.oracle.com/technetwork/java/javaee/overview/index.html http://www.oracle.com/technetwork/java/javaee/overview/index... And in fact, i'd describe Spring as an alternative to Java EE, rather than vice versa. Secondly, not using a framework at all, and just putting everything together yourself. To a large extent, Dropwizard etc are the result of people doing this, then posting the reusable bits of their application to GitHub. Java's equivalent of Boost is probably some combination of Apache Commons: http://commons.apache.org/ http://commons.apache.org/ And Google Guava: https://code.google.com/p/guava-libraries/ https://code.google.com/p/guava-libraries/ The difference is that if you're using Spring, then you are writing a Spring application. Every part of your code will be pervaded by Spring, and you will have to do things in the way Spring prescribes. If you're using Commons or Guava, your application is your own, and those libraries will crop up here and there, where you choose to use them.
- mschulze 12y agoAnd as always when someone posts this - we are at Spring 4 now, update your funny bookmarks. Here you go: http://docs.spring.io/spring/docs/4.1.6.RELEASE/javadoc-api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html http://docs.spring.io/spring/docs/4.1.6.RELEASE/javadoc-api/... http://docs.spring.io/spring/docs/4.1.6.RELEASE/javadoc-api/org/springframework/aop/aspectj/annotation/SingletonMetadataAwareAspectInstanceFactory.html http://docs.spring.io/spring/docs/4.1.6.RELEASE/javadoc-api/... These are framework classes that you will never have to see or use when building a Spring application. Spring is surely not perfect, most people don't have the slightest clue what a modern Spring Application (read into Spring Boot) looks like.