News for hackers. Stuff that matters.
Re:I Miss Rails by jonahx on Thursday March 28, 2019 @07:40PM (#19517753)
Here are two of the most popular books on Rails on Amazon, along with their page counts:

"The Rails 5 Way" (1088 pages)

"Ruby on Rails Tutorial: Learn Web Development with Rail" (816 pages)

Rails is enterprise.

Re:I Miss Rails by ericb on Thursday March 28, 2019 @07:45PM (#19517776)
What does this enterprise slur even mean? Is it like saying a band sold out when they had a hit record?

Do we only use undiscovered indie frameworks now?

Re:I Miss Rails by inapis on Thursday March 28, 2019 @10:44PM (#19518711)
When I started, Java and Spring were (still are..) enterprise (Ruby and Rails existed but were not popular in my area and network) and the major criticism in my mind was the difficulty faced as a beginner.

Spring was humongous and had so many modules that I just couldn't grasp the purpose of each (I still don't) plus there was a lot of overlapping functionality. Senior devs would come to college and ramble out stuff which made less and less sense as time passed by.

Writing a simple app became tedious without a reference by side. So that was enterprise in my mind - tedious, complicated and completely incoherent at times - what and why were completely skipped, at times, in favour of how.

At that time I discovered JS and the simplicity of assembling a decent sized app won me over. The startup ecosystem was also picking up pace in my country and speed of iteration mattered more than anything else. Granted JS can become a nightmare (which I learned later) but that speedy feedback compared to Java was enough to make node my "homestack."

There were other things which worked strongly against Java in my education - 1. Being forced to use eclipse without training (what are these buttons, what does everything do, how do i do this, I was fighting more against the IDE than anything else)

2. Being forced to use the Oracle database which was (for some xyz reason) given to us in a virtual machine and took ages to run a simple join in a small table of 100-500 records.

3. Programmers with experience can be completely oblivious to the mental model of a beginner.

All of this just soured me on "enterprise."

Re:I Miss Rails by jimbokun on Friday March 29, 2019 @10:45AM (#19522105)
"what and why were completely skipped, at times, in favour of how."

This is a great summary of much of the frustration of using Spring.

Re:I Miss Rails by namelosw on Thursday March 28, 2019 @09:32PM (#19518395)
My personal guess on this enterprise would be things like Spring or .Net where everything has an interface instead of just do things like Rails.
Re:I Miss Rails by nurettin on Thursday March 28, 2019 @10:08PM (#19518557)
Long time rails developer turned "enterprise". Spring-cloud now requires much less boilerplate and is easy to develop with using kotlin's syntactic sugar shortening code and making it more concise.

Orm is kind of a failure and requires us to write some queries by hand into string literals, but at least it has it's own sql syntax to avoid engine dependence.

Re:I Miss Rails by namelosw on Thursday March 28, 2019 @11:58PM (#19519060)
Much less? I haven't use spring cloud for quite a while but last time I did it there's quite some grunt work to make config server / eureka / ribbon / hystrix and friends to work. Let alone the the deployment process.

But I think the key difference is Rails is more opinionated so you don't have to worry about which circuit breaker to use. Or just don't use any.

Re:I Miss Rails by nurettin on Friday March 29, 2019 @03:33AM (#19519807)
You are typing about activating the service discovery modules of spring cloud (which rails doesn't have), I am typing about the autoconfiguration goodness. Sure, I could have said spring boot instead of cloud, but cloud is kind of a superset and comes with feign integration so I use that.
Re:I Miss Rails by vips7L on Thursday March 28, 2019 @11:58PM (#19519059)
Spring Boot is so amazing. I don't feel like any of it is boiler plate at all.
Re:I Miss Rails by james_s_tayler on Friday March 29, 2019 @01:42AM (#19519434)
I used to think SpringBoot was amazing until I tried Rails. Then I really felt another level of holy shit.

I have lots of love for both. They're different tools. Ultimately I dropped Rails because being without static typing just isn't for me, but certain parts of the experience were positively magical.

I sort of feel the same way about Boot. That auto configuration mechanism is next level. The breadth and depth of what's available in the Spring ecosystem is great too.

They're really kind of optimized for different things though. Like Rails has some gems you just drop in and it blows you away what you get for stunningly little effort. But then it's not that customizable and you find yourself fighting with it. Spring has all kinds of battle tested enterprise grade bits and bobs that take a lot longer to operationalize but they'll last you forever.

I'm currently trying out aspnetboilerplate as a middle ground between the two. Specifically the aspnetzero version. It's like that "holy shit I get all this out of the box?" with Rails but the "I can understand this, work with it, customize it if I need to and it's going to last the distance". Im finding there is a slight learning curve to it and I wouldn't necessarily make all the same choices the framework does, but so far I can see this becoming a happy medium once I've found my groove with it.

Re:I Miss Rails by sidlls on Friday March 29, 2019 @10:30AM (#19521978)
And yet I regularly see "fluent programming" levels of verbosity in the Spring-everything Java services and batch process code at my company. variableNamesThatLookLikeThis and tests.givenSome(data).thatLook(likeThis) seems to be something I only ever see in Java code bases. There's a love of unnecessary verbosity in that ecosystem.
Re:I Miss Rails by jonahx on Thursday March 28, 2019 @08:00PM (#19517880)
It means it's everything but the kitchen sink: heavyweight, difficult to learn and use, and full of features you don't need.

It has nothing to do with popularity being bad. In general that's good a thing, because support is better (and rails does have terrific support), but it does exert a feature-accretion force.

Re:I Miss Rails by digb on Thursday March 28, 2019 @08:10PM (#19517944)
I didn’t mean it as a slur! When I wrote .NET, the applications I was working in were massively large and complex, and so mostly what I was working on was optimizing small bits and pieces, and they allowed me to focus ON optimizing those small bits and pieces, because they were what mattered in that context. Rails let’s me focus on the big picture, because that’s what matters in my current context. Express had me working on stuff that I didn’t REALLY care about/want to know about in the context I was in.
Re:I Miss Rails by driverdan on Friday March 29, 2019 @10:06AM (#19521789)
Have you ever used rails? It's not heavy or difficult to learn. Many commonly used things are actually separate gems, not included in the core framework.
Re:I Miss Rails by loganfrederick on Thursday March 28, 2019 @07:45PM (#19517781)
Confirmed, Chicago has multiple billion and hundred-million-dollar businesses built on Ruby on Rails. A lot of it stems from Basecamp being based here, so Chicago had a lot of early adopters. But those early adopters have spawned new companies using the latest versions of Rails decades later.
Re:I Miss Rails by blacksmith_tb on Thursday March 28, 2019 @08:04PM (#19517908)
That may have been intended as hyperbole, but Rails is only 15 years old...

https://en.wikipedia.org/wiki/Ruby_on_Rails#History

Re:I Miss Rails by loganfrederick on Wednesday April 03, 2019 @09:41PM (#19568665)
Yes, slight hyperbole in that it was >10 years off the top of my head. Your statement is correct.