I'm not sure what concrete steps rails can take, but maybe app/lib for application specific code and lib/ for more generic libraries. Or maybe something less confusing.
Ask HN: What do you want to see in Rails 4.1?
61–70 of 94 posts
Re: Ask HN: What do you want to see in Rails 4.1?
#62I'm not a Rails developer, I have only done some simple webapps with it, so I have a question. Does Rails support websockets natively? If not then why? I haven't seen any request for integrating them in this thread.
The simplest answer is 'because nobody has written a pull request,' I don't believe anyone on the team actually uses websockets for anything, though I could be wrong.
Re: Ask HN: What do you want to see in Rails 4.1?
#63Perhaps this HTML/JS/URI/XML/HREF escaping C extension speedup by GitHub: https://github.com/blog/1475-escape-velocity (Improved render time by 20% in their tests)
Re: Ask HN: What do you want to see in Rails 4.1?
#64Thanks for asking! Are queues ready for prime-time yet? Another vote for async mailers please - also sending more than one mail at once would be nice. Sorting out secret_token.rb would be good - not sure what would work, ENV variable, auto-generating a file in production if not there, but there must be a better solution which lets you work both on Heroku and let's people avoid having secrets stored in version control…
Queues are not ready yet, but it's something that's being worked on. Of course, async mailers are tied up in that as well. The secret_token issue is one I'm personally interested in, we've been talking about the best way to fix it. Yeah, we already have has_secure_password, which helps with authentication, but you still end up adding gems for authorization. I'll give this some thought, thanks.
Re: Ask HN: What do you want to see in Rails 4.1?
#65One of the things I've struggled with on large Rails projects is helping developers understand that they can and should write code is neither model, view, controller, helper or lib. Instead a model ends up with a ton of class methods that are only somewhat related to fetching and storing records. A controller ends up with some crazy query that joins three tables and generates statistics. I would like to see some guid…
Re: Ask HN: What do you want to see in Rails 4.1?
#66Thanks for asking! Are queues ready for prime-time yet? Another vote for async mailers please - also sending more than one mail at once would be nice. Sorting out secret_token.rb would be good - not sure what would work, ENV variable, auto-generating a file in production if not there, but there must be a better solution which lets you work both on Heroku and let's people avoid having secrets stored in version control…
Re: Ask HN: What do you want to see in Rails 4.1?
#67Re: Ask HN: What do you want to see in Rails 4.1?
#68https://github.com/ngauthier/tubesock is pretty close but it needs better support for channels. Basically, I want websocket-rails style auxiliary functions minus the custom controller part.
Re: Ask HN: What do you want to see in Rails 4.1?
#69One of the things I've struggled with on large Rails projects is helping developers understand that they can and should write code is neither model, view, controller, helper or lib. Instead a model ends up with a ton of class methods that are only somewhat related to fetching and storing records. A controller ends up with some crazy query that joins three tables and generates statistics. I would like to see some guid…
With 4.0 we included app/concerns, so that should help open up your conversations a bit.
[edit: rereading the parent, your reply was to where to put the code, and app/concerns is as good a place as any I guess, but I stand by the idea that concerns themselves are a bad idea.]
Re: Ask HN: What do you want to see in Rails 4.1?
#70Earlier quoted context omitted.
With 4.0 we included app/concerns, so that should help open up your conversations a bit.
Concerns are just geography, they do nothing to encourage single responsibility or domain design. [edit: rereading the parent, your reply was to where to put the code, and app/concerns is as good a place as any I guess, but I stand by the idea that concerns themselves are a bad idea.]