4 ms·
Spark – A small web framework for Java
- hnriot 12y agothis is a really confusingly named project. I immediately thought that the scala for Apache Spark ("Lightning-fast cluster computing") had been rewritten in java!
- rxin 12y agoI had the same thought! Apache Spark 1.0 is actually going to support lambda functions in Java 8. A pretty big deal for making Java programmers' life easy.
- tiedemann 12y agoI was thinking someone ported the Spark View Engine (for .NET MVC) https://github.com/SparkViewEngine/spark https://github.com/SparkViewEngine/spark.
- kldavis4 12y agoI was thinking of the spark open source im client: http://www.igniterealtime.org/projects/spark/ http://www.igniterealtime.org/projects/spark/
- bilalq 12y agoThis is great! Now that the verbose syntax is out of the way, I can see myself using this as a gateway to web development for those that have never done any programming outside of java for school assignments.
- mbell 12y agoSpark still has the same problem (or feature depending on your tilt): It exists only to avoid annotations. In my opinion Spark: get("/hello",(request, response) -> { return "Hello World!"; }; is still uglier than jax-rs: @GET @Path("/hello") String hello() { return "Hello World!"; }
- benjiweber 12y agoThe main difference is Spark is just Java. No need for reflective annotation scanning or any other magic.
- brazzy 12y agoAnnotations are just Java. Welcome to 2004!
- Argorak 12y agoI think I know what you mean, but annotations and scanning for them is definitely Java and used very widely. Honestly, when JUnit was still "just Java" by that definition, it was a much worse framework.
- guelo 12y agoThis is tangential, but before annotations JUnit still used reflection and scanning looking for methods named testXXX(). And honestly, it wasn't that much worse.
- timclark 12y agoIf I compare the lines of code between JUnit without annotations and JUnit with annotations I usually have less lines of code without annotations and I don't find it bothersome to name my test method correctly. Annotations in Java have always bothered me! Why are they needed? I don't need them in Clojure, Go, Haskell, C - similar behaviour is supplied by alternative means.
- dang 12y agoA dupe of https://news.ycombinator.com/item?id=6372255 https://news.ycombinator.com/item?id=6372255.