TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Automated Rails development with Prelang

229 pointsby egnalmost 11 years ago

18 comments

DanielKehoealmost 11 years ago
Here&#x27;s my feedback, as the developer of the Rails Composer tool [<a href="https://github.com/RailsApps/rails-composer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;RailsApps&#x2F;rails-composer</a>].<p>I got started with &quot;automated Rails development&quot; (as you call it) using Michael Bleigh&#x27;s RailsWizard. He built it at RailsRumble 2010 as a website that generates Rails apps. I forked it as Rails Composer when the project was abandoned, and developed it further, purely as a command-line tool. It&#x27;s been the most popular project I&#x27;ve worked on in the Rails community, and also more work than I ever expected.<p>I&#x27;ve had a huge community supporting Rails Composer as an open source project so I get a reliable stream of issue reports and pull requests. And I&#x27;ve built a business model to fund the project, by asking supporters to pay $19&#x2F;mo, and offering my in-depth Rails tutorials as a reward for subscribers. That&#x27;s the RailsApps project [<a href="http://railsapps.github.io/" rel="nofollow">http:&#x2F;&#x2F;railsapps.github.io&#x2F;</a>].<p>Rails Composer is popular because developers really like a tool to build starter apps, and it&#x27;s a lot of work because changes to Rails and gems constantly introduce entropy. I think you&#x27;ll face a similar challenge with Prelang, maintaining the product as gems change. Developers want an automated Rails development tool because a good starter app will give them a reference implementation, code that is properly configured and guaranteed to work with the latest versions of all the popular gems. You&#x27;ll have to keep checking and tweaking as gems and Rails versions change. That job will be easier if you limit the starter app to use only the most popular stack and a small set of popular gems, as you&#x27;ve done so far. You&#x27;ll also need to monetize the project to be able to maintain it (I doubt it can succeed as a spare-time project). As a gauge of time required, I work fulltime on RailsApps, splitting my time between developing Rails Composer and writing the tutorials for the project&#x27;s supporters.<p>Erik, I hope you do well with Prelang. You&#x27;ve created a beautiful interface, the project is ambitious, and judging by Rails Composer, developers will want it.
评论 #7986118 未加载
xiononalmost 11 years ago
This looks pretty neat. Looking forward to you getting the disabled features ironed out.<p>Some notes:<p>* Project generation with most of the features and a couple models is taking a really long time. I&#x27;m sure it&#x27;s a background job, and I could walk away if I wanted to, but it&#x27;d be nice to know that the system would email me to let me know when it was done<p>* Sometimes UI widgets flicker when switching between sections. I&#x27;m guessing a lot of those styles are being added with Javascript, not CSS? You might consider switching to a CSS framework that gives you a good look and feel, but doesn&#x27;t have to call some JS function to apply styles.<p>* The auto-capitalization on model names, and auto-lowercasization (?) on field names, was a nice touch, and made me feel happy about the product.<p>* It would be really cool if users could write and submit plugins &#x2F; hooks. I&#x27;d be interested in background jobs that weren&#x27;t DelayedJob, and deployments that weren&#x27;t Heroku, for instance.<p>* I&#x27;m guessing that &quot;public repos only&quot; is a temporary feature, because GitHub doesn&#x27;t have a way to authorize an app to write only to certain private repos, correct? Because most of my work is on private repos, and I can&#x27;t see my organization using something like this without the ability to create projects (even scaffolds) privately<p>* A feature for Vagrant would be nice :-)<p>I&#x27;ll be watching this! We&#x27;ve currently got several people switching from ColdFusion to Rails; they&#x27;re good programmers, but they don&#x27;t know the ecosystem or the conventions. This gives them a really good starting place. Thanks for sharing.<p>Edit: Also, this is the first time I&#x27;ve seen app&#x2F;views&#x2F;elements&#x2F;, and I&#x27;m kinda pissed I haven&#x27;t thought of using a different directory for partial layouts before. Now I&#x27;ve got some app&#x2F;views&#x2F;layouts&#x2F; directories to clean up...
评论 #7986007 未加载
kitwalker12almost 11 years ago
I love it. Adds an awesome GUI to features that I love in RailsComposer. Would love the ability to add sidekiq, postgres, rails_12factor &amp; sass
bebbsalmost 11 years ago
This is a fantastic tool, really well implemented. Will definitely be following along how this develops in the future.
nthjalmost 11 years ago
This is really cool. Have you guys considered Heroku integration? One-click generation + deployment could be a really slick MVP tool (although I worry about how it would affect client expectations were they to ever find out about it. :)
评论 #7985953 未加载
stravariusalmost 11 years ago
This is truly an innovative addition to the Rails ecosystem. I&#x27;m learning Rails and Prelang offers a great way to read code that&#x27;s written with best practices in mind. All the best!
aantixalmost 11 years ago
The demo video looks fantastic. Great work you guys.
sergiotapiaalmost 11 years ago
This is really interesting! I created a simple app to CRUD Cities and Countries and it works as you expect it to. Code is also what I would have written given the simple spec.<p>Uses the latest Rails and clean code generation. Well done!<p>If you&#x27;re curious see here: <a href="https://github.com/sergiotapia/prelangtest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sergiotapia&#x2F;prelangtest</a><p>I&#x27;ll use to launch my next project because Facebook+Email authentication is a pain in the ass to implement.
jpetersonmnalmost 11 years ago
Is this something I can download onto my own machine and run, or I need to do it through the website?
评论 #7985502 未加载
flylibalmost 11 years ago
good work, known of this for awhile and been impressed.<p>came across this one today which is trying to doing something similar also<p><a href="http://www.drystorm.co" rel="nofollow">http:&#x2F;&#x2F;www.drystorm.co</a>
ShaneWiltonalmost 11 years ago
This looks like a really great tool. It&#x27;s a shame Github doesn&#x27;t have more fine grained permissions though - I&#x27;d love to give it read&#x2F;write access to repos it creates, but it requiring global read&#x2F;write access means I&#x27;ll probably never use it.
carlosdpalmost 11 years ago
This looks great! I like how this one concentrates on the back-end features more than the views. It just generates all the backend&#x2F;routing and lets you put in the special view logic yourself. Good way to not get distracted trying to master a WYSWIG.
rock_hardalmost 11 years ago
Great work!<p>mongoid support would be highly appreciated :)
matthugginsalmost 11 years ago
Cool idea, but I immediately left when I saw the only background process option was DelayedJob. With greatly advanced options like Resque and Sidekiq, I fail to see a need for DJ personally.
评论 #7986368 未加载
评论 #7986691 未加载
kitschedalmost 11 years ago
I only watched the presentation video and I&#x27;m being nitpicky but by convention git commit messages should be present tense.
评论 #7989385 未加载
samirmenonalmost 11 years ago
I have been thinking about something like this for about a year now...you&#x27;ve done an excellent job! Good luck!
dangalmost 11 years ago
We&#x27;re taking &quot;Show HN&quot; out of this title because the software isn&#x27;t ready to be tried out.<p>Please read the new Show HN guidelines: <a href="https://news.ycombinator.com/showhn.html" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;showhn.html</a>. Landing pages and email signups are explicitly excluded. But when your work is ready for people to play with, please come back and do a Show HN then!
评论 #7985361 未加载
评论 #7985450 未加载
vinceguidryalmost 11 years ago
This is why I love Ruby. It&#x27;s got all the built-in language features that allow one to perform this sort of abstraction, and a large-enough user base so that powerful ideas like this will eventually be implemented. I couldn&#x27;t imagine anything like this existing in even Python.
评论 #7986552 未加载
评论 #7988074 未加载