News for hackers. Stuff that matters.
Re:Demand for Ruby on Rails is Still Huge by vajrabum on Wednesday June 20, 2018 @10:13AM (#17355527)
TFA might be right about Rails but completely wrong about Spring. Spring is absolutely a web framework--templates and all. With Spring Boot and modern Java, the productivity is probably in same ballpark too.
Re:Demand for Ruby on Rails is Still Huge by realusername on Wednesday June 20, 2018 @11:12AM (#17356143)
> the productivity is probably in same ballpark too.

You are still missing Turbolinks, the rails console, JPA is nowhere as good as Active Record, rails scaffolding, Rspec, Devise, then you need to setup migrations... I could add a lot of other items, but no it's nowhere near rails yet. I've never found anything approaching rails for the speed of coding (but not the speed of execution unfortunately :/).

Rails templates is a very very small part of what makes it so quick to write code.

Re:Demand for Ruby on Rails is Still Huge by vajrabum on Wednesday June 20, 2018 @01:20PM (#17357407)
My main point and the only reason I mentioned templates was that Spring Boot is in fact a web application framework and a productive one. If your previous experience was with older versions of Spring or Spring Boot or you weren't using IntelliJ (or STS Eclipse if you must) to build your scaffolding and do your debugging then you might want to take another look. Turbolinks is a cool hack!

I think I agree about migrations. Flyway is useful but not as clean or easy as ActiveRecord and I think that depends on Ruby's dynamic nature so it would be hard to replicate.

Re:Demand for Ruby on Rails is Still Huge by twic on Wednesday June 20, 2018 @03:01PM (#17358582)
> JPA is nowhere as good as Active Record

You surely meant to write that the other way round.

Re:Demand for Ruby on Rails is Still Huge by realusername on Wednesday June 20, 2018 @03:09PM (#17358660)
No I really mean it that way. I've never tried an ORM which is as good as Active Record. Also the ORM should be coupled to migrations to be anything as powerful as Active Record.

Edit: JPA is usable yes, most ORM nowadays are quite good anyway, it's just that Active Record is still always one step above, it's a pleasure to work with.

Re:Demand for Ruby on Rails is Still Huge by 1ba9115454 on Wednesday June 20, 2018 @10:49AM (#17355898)
There is a difference. Spring boot is not opinionated about how to do templates, persistance and DB migrations.

This means you have to go away and do some research to get your stack running.

This was enough to put me off.

Re:Demand for Ruby on Rails is Still Huge by Traubenfuchs on Wednesday June 20, 2018 @11:04AM (#17356070)
templates: spring-mvc offers first class support for Thymeleaf, Freemarker, Mustache and Groovy Templates. Is having 4 equal choices too much for you? Spring seems to endorse Thymeleaf.

persistance: spring-data, the JPA/Hibernate based library for SQL access appears to be very opinionated and is very simple to fully understand. I have never used MongoDB, but spring-data-mongodb is probably of equal quality.

DB migrations: What do you mean?

Re:Demand for Ruby on Rails is Still Huge by vorg on Wednesday June 20, 2018 @06:47PM (#17360570)
> having 4 equal choices

Support for Groovy Templates is legacy and not as equal as the other choices. Groovy is now Apache Groovy, and on the decline.

Re:Demand for Ruby on Rails is Still Huge by Traubenfuchs on Wednesday June 20, 2018 @10:59AM (#17356010)
Depends on what you mean when you say "Spring".

You can use the DI and config management container spring-core by itself. There are actually THREE web-frameworks: spring-webflux, spring-web and spring-web-mvc. Webflux is the new framework for "reactive HTTP", spring-web contains the conventional web/REST-server capabilities and spring-web-mvc offers mvc functionality with templates and depends on spring-web.

Correct me if I am wrong.

Re:Demand for Ruby on Rails is Still Huge by thanatos_dem on Wednesday June 20, 2018 @10:54AM (#17355952)
What is TFA? It’s always meant “Two Factor Auth” for me, but this is the second thread I’ve seen today that’s using it like it’s an acronym for a person.
Re:Demand for Ruby on Rails is Still Huge by merrywhether on Wednesday June 20, 2018 @11:06AM (#17356082)
“The fucking article”, from the retort RTFA (“Read ...”), itself derived from RTFM (“... manual”).

https://en.m.wiktionary.org/wiki/RTFA

Re:Demand for Ruby on Rails is Still Huge by twic on Wednesday June 20, 2018 @03:00PM (#17358569)
And, as with the manual, it can also be fine rather than fucking. I tend to read it as the former when there isn't an R in front, and as the latter when there is.
Re:Demand for Ruby on Rails is Still Huge by baconomatic on Wednesday June 20, 2018 @11:00AM (#17356024)
"The Fucking Article", sort of like RTFM (Read The Fucking Manual)