Live data from Hacker News

Moving on from Rails and What’s Next

blog.seantheprogrammer.com

1–10 of 88 posts

Re: Moving on from Rails and What’s Next

#2
I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison.

I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they tackle after Rails when I don’t see them overlapping at all.

Re: Moving on from Rails and What’s Next

#3

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

I can't comment from experience, but I have seen a lot of people here say that Rust feels a lot like something between C++ and Python/Ruby. I think the idea is that besides the static typing (which a lot of people that use Dynamic languages, like me, would love to enforce at times), if you use it in a functional manner it's fairly expressive and not that different looking/feeling that the equivalent dynamic language of large chunks of the code you write. As someone who's gone through the Rust book but not really written anything useful in it, that's how it appears to me sometimes too (and other times it appears to be an arcane incantation).

Edit: The solution here[1] is a good example of what I'm talking about I think. A lot of what's there is pretty obvious to someone familiar with JS/Ruby/Python/Perl, and they might even use a very similar looking solution. The Rust specific stuff is really the only foreign stuff, so if you assume you would learn that when learning the language, it's a pretty straightforward solution that looks similar enough to be inviting.

1: https://stackoverflow.com/questions/31986628/collect-items-f...

Re: Moving on from Rails and What’s Next

#4

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

Astro turfing. Easy startup. Supported by big company. New fad

Re: Moving on from Rails and What’s Next

#5
I would have thought rails to golang so I too am surprised.

I wish I had millions and could be a patron saint of sorts for people like the author. Open source funding is so broken as the companies that build upon the vast open source and often free software don’t do much in the way of donating or otherwise supporting the companies or individuals behind the projects.

Re: Moving on from Rails and What’s Next

#6

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

Ruby has a very readable syntax and easy learning curve for new devs. What it lacks is the performance and type safety of a compiled language which I think is why many people eventually switch to Rust and Go.

Interestingly, Crystal might be an easier jump as it's syntax is very similar to Ruby, but with the performance gains that come with compiling to a single executable.

Crystal is still pre-1.0 though so it doesn't quite have the production-ready stability or robust community of Go or Rust.

https://crystal-lang.org

Re: Moving on from Rails and What’s Next

#7
post #3

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

I can't comment from experience, but I have seen a lot of people here say that Rust feels a lot like something between C++ and Python/Ruby. I think the idea is that besides the static typing (which a lot of people that use Dynamic languages, like me, would love to enforce at times), if you use it in a functional manner it's fairly expressive and not that different looking/feeling that the equivalent dynamic language…

Whether it can be used like an more FP-style Python/Ruby is one thing but whether it can replace Rails is a whole other question. This website is dedicated to answering that:

https://www.arewewebyet.org

(although looking at it again most of the content links are a bit old, but the library stuff seems current)

Re: Moving on from Rails and What’s Next

#8
post #6

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

Ruby has a very readable syntax and easy learning curve for new devs. What it lacks is the performance and type safety of a compiled language which I think is why many people eventually switch to Rust and Go. Interestingly, Crystal might be an easier jump as it's syntax is very similar to Ruby, but with the performance gains that come with compiling to a single executable. Crystal is still pre-1.0 though so it doesn'…

Perhaps critically, it lacks an official Windows distribution and support.

Re: Moving on from Rails and What’s Next

#9

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

I think it's less about the working style and more about the promise of working in the future(tm).

When Rails 0.9 dropped in 2004, I instantly rewrote my old PHP app in it and never looked back. It just felt so expressive and naturally declarative.

Rust has a similar amount of promise, though not quite as good of a demo. The idea that you can write high-performance code without typical high-performance code bugs is amazing! There's a whole new type of type system that ensures it!

Sometimes you want your language to also be a religion ;)

Re: Moving on from Rails and What’s Next

#10

I’ve seen a number of people move from Rails to Rust... is that really a common move? Seems like they’re very different and designed for very different things. Are people commonly building web applications in Rust? I know it’s possible but C++ has web frameworks too and that seems like a more apt comparison. I guess I’m just baffled by the number of people on here that I see pointing to Rust as the next project they…

Correct, they are for completely different purposes. I have the feeling that a lot of people (particularly the bloggers/more vocal types) jump into newer languages for no other reason than to position themselves as experts in said language/stack, right when it's getting more popular. I've seen this happen with Ruby/Rails, JavaScript/Node, and now Rust. In this case, it would have made a lot more sense to move to something like Elixir/Phoenix.
Post reply on HN