News for hackers. Stuff that matters.
Re:After reading “Rails is yesterday’s software”, I need to ... by dcrall on Wednesday May 11, 2016 @10:40AM (#11675708)
I agree that Rails' strong opinions are still a strength. I like Clojure a lot, but for someone new to the language trying to get a Clojure web app started is like pulling teeth. Elixir and Phoenix, with their connections to the Ruby community, really get this, and I think they provide a much better introductory experience.
Re:After reading “Rails is yesterday’s software”, I need to ... by akmiller on Wednesday May 11, 2016 @12:28PM (#11676746)
I've been doing Clojure for the better part of 3 years now and I'm not sure I get why people feel doing web development in Clojure is hard. Our first foray in Clojure was/is an API to manage our users that was built by 2 developers who were new to the language and has been running largely unmodified since being released.

I actually believe the opposite. Jumping into and doing Clojure web development is extremely simple at the core. The issue with frameworks like Rails (and I'm not against Rails as I have used it on multiple successful projects and still think it's great) is that you get so much for free and don't have to understand how all the pieces fit and work together (at least initially). Soon enough you have to have more knowledge of that and that's were the complexity comes in.

Re:After reading “Rails is yesterday’s software”, I need to ... by s_kilk on Wednesday May 11, 2016 @01:08PM (#11677100)
> The issue with frameworks like Rails <... snip ...> is that you get so much for free and don't have to understand how all the pieces fit and work together

Having used both Ruby/Rails and Clojure, I think Clojure swings too far in the opposite direction, where absolutely everything is foisted on the developer and they must hold the entire codebase in their head at once or drown.

We even see this in luminus, the closest thing Clojure has to a web framework. It's just a leiningen template which spits files out on disk and says "there you go, it's your problem now". Of course there are upsides to this approach, but personally I've come to find developing web servers in Clojure a withering, joyless experience. Elixir and Phoenix show much more promise and seem to strike the right balance between featureful-ness and cleanliness.

Re:After reading “Rails is yesterday’s software”, I need to ... by akmiller on Wednesday May 11, 2016 @02:24PM (#11677857)
> where absolutely everything is foisted on the developer and they must hold the entire codebase in their head at once or drown.

I don't get that, and if that's how you feel I'd say you are doing functional programming wrong!

That being said, I do agree about Luminous and I think it's a terrible way for a new web developer to Clojure to get started. Instead build your way up for what your app needs pulling in the libs as you need them and understanding how they fit and work together. Chances are you don't need that many at all.

Re:After reading “Rails is yesterday’s software”, I need to ... by Bluestrike2 on Wednesday May 11, 2016 @01:06PM (#11677083)
Is it fair to ding Rails for that, though? Regardless of what framework you're working with, eventually you're going to be peeking under the hood. Of either the framework, the language, or both. Whether that's front-loaded or not, it's still there. So the question becomes which framework eases you into the deep end of the pool, rather than which is the least complex.

I've seen plenty of Rails apps that could have written better initially. But I haven't really seen any where it was impossible to refactor and improve them as a developer learns more.

Re:After reading “Rails is yesterday’s software”, I need to ... by akmiller on Wednesday May 11, 2016 @02:17PM (#11677805)
I'm not dinging Rails for that. Like I said I've done some successful applications with Rails.

The difference I'd say between Clojure is you learn those from the bottom up, whereas with Rails you learn from the top down. Either way, you are going to have to learn them!

Re:After reading “Rails is yesterday’s software”, I need to ... by wyaeld on Thursday May 12, 2016 @12:00AM (#11681235)
Where exactly does it say that you can't start by actually learning how Rails works, before you build things with it?

I think the biases of people who were experienced big system developers before they moved to Rails, are very different from those who started with it, potentially not understanding web app development very well, and then produced something challenging to maintain

Re:After reading “Rails is yesterday’s software”, I need to ... by Bluestrike2 on Thursday May 12, 2016 @12:22AM (#11681306)
No, I realize that. I was thinking more about complaints along those lines in general rather than anything you said specifically. Maybe it's just a case of setting unreasonable expectations as a consequence of how Rails in particular is recommended to newbies.
Re:After reading “Rails is yesterday’s software”, I need to ... by erik14th on Wednesday May 11, 2016 @01:09PM (#11677114)
Have you tried luminus[0]? I found it to be quite straightforward to get started. What I didn't like about clojure is that it smells like java a tiny bit too much and there's too much to choose from be it language abstractions or libraries I guess that's what you refer to as "pulling teeth".

I'm gonna try Phoenix for my next project, even though I really like Django and I have never been too much into rails or ruby. My other option would be Django + socket.io, and I think that would be the more mature stack, but as much as I like javascript and python I think that would lead to more complexity and thus make the project harder to maintain. I may be stabbing myself in the foot, but let's hope not :D

[0]http://www.luminusweb.net/

Re:After reading “Rails is yesterday’s software”, I need to ... by jkarneges on Wednesday May 11, 2016 @03:10PM (#11678283)
I suggest checking out Pushpin (https://github.com/fanout/pushpin). It works great with Django, and no need for multiple languages.
Re:After reading “Rails is yesterday’s software”, I need to ... by antb123 on Saturday May 14, 2016 @08:35PM (#11698732)
Django 1.10 with Channels (which you can start using right now)... is very exciting...