TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

The One-Person Framework in Practice

399 点作者 frans16 天前

24 条评论

kukkeliskuu16 天前
I don&#x27;t have any experience in Rails, but similar experience with Django. I am running several apps on my own, while still working elsewhere full-time.<p>The largest one has around 250 views, of maybe 80 are just basic admin views. It is basically comparable to an ERP of a medium-side company with various levels of permissions etc. I was able to get most of the functionality into production in just one month -- I was not working full-time at that time. I have estimated it with some friends, and such an ERP in the corporate world would normally take a team two years to do -- one to spec and another to implement.<p>It has 1-2M monthly page views depending on the season, and the highest hitting pages are read-only and heavily cached, so the server load is minimal. I am further increasing the performance by making those pages static HTML using django-distill and using Cloudflare to cache&#x2F;serve them.<p>The key thing is to keep things as simple as possible. I avoid REST&#x2F;heavy frontend frameworks whenever possible. For most views for most apps, normal HTML form request-response user interface based on Bootstrap is perfectly fine.<p>I started by sprinkling Javascript when it was really needed, for example client side sorting so I can avoid server load. Now I use AlpineJS&#x2F;HTMX for the interactivity. It has been great, although much slower to implement.
评论 #43832156 未加载
alankarmisra16 天前
I would argue that framework isn&#x27;t the winning component, the people are. A lot of people can say similar things for framework &lt;&lt;X&gt;&gt; and they&#x27;d be right given their own experience but I think they give themseleves too little credit. I&#x27;ve written my own frameworks for smaller projects because I didn&#x27;t want the needless learning curve &#x2F; cruft of a generalized framework and I can tell you they saved me so much time &#x2F; effort &#x2F; cost over the long term and they were tuned to my development style. All built with python and some off-the-shelf libraries. I&#x27;m not saying there&#x27;s no place for generalized frameworks. They do help streamline development efforts and set a standardized model for building out your app&#x2F;service which would be great with a team of people all tuned in to a specific framework but I would argue that in a single developer environment it doesn&#x27;t matter much what you use, so long as you have fun with it. Productivity analyses are at best personal opinions in a forum like this.<p>Edit: basic grammar.
评论 #43835894 未加载
jhancock16 天前
Excellent write up.<p>I worked with Rails and Phoenix in their early days and got plenty of value from each. If you&#x27;re building a traditional web 2 app, look no further...similar to choosing Postgres, start there until you have really good reason to venture off.<p>Without taking away anything from these frameworks and as someone that spent over 10 years building app frameworks, sometimes it&#x27;s not what I want.<p>I&#x27;m using Clojure for my current problem space which would stymy me if I tried to use Rails or Phoenix. I spent the past 4 months doing product&#x2F;domain &quot;shaping&quot;. There are no web pages yet..mostly pure server side domain and API calls for data gathering. After this exploration I now have several working subsystems and have figured out the pathway to the mvp which will come together quickly. As a bonus I have a working domain core to leverage for steps after the mvp.
评论 #43828557 未加载
评论 #43828961 未加载
searls16 天前
For anyone who&#x27;s ducked out of Rails World over the last decade (or two), I devoted my final conference talk last year to the topic of One-Person Framework with a real-world case study of how Rails 7+ specifically helps developers build ambitious apps, even as a solo developer. <a href="https:&#x2F;&#x2F;justin.searls.co&#x2F;tubes&#x2F;2024-11-09-11h03m00s&#x2F;" rel="nofollow">https:&#x2F;&#x2F;justin.searls.co&#x2F;tubes&#x2F;2024-11-09-11h03m00s&#x2F;</a>
评论 #43834665 未加载
hi_hi16 天前
I&#x27;m currently building out an app using AdonisJS. Its billed as a Rails like experience but in node. <a href="https:&#x2F;&#x2F;adonisjs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;adonisjs.com&#x2F;</a><p>I did a comparison between Rails, Adonis and Fiber (a Go &quot;framework&quot;) before settling on Adonis (mostly due to node ecosystem and type safety).<p>It&#x27;s been excellent so far, and the creator has an excellent series of tutorial videos that can get you up to speed quickly <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?app=desktop&amp;v=jf5hHU0KT3Q" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?app=desktop&amp;v=jf5hHU0KT3Q</a>. The documentation is also good. LLMs can get tripped up by older versions which you need to look out for.
评论 #43830685 未加载
xutopia16 天前
I&#x27;m currently building an application to launch it soonish. I&#x27;m using Rails and doing everything myself (save for the design of the logo, and some input from a friend on UX).<p>What&#x27;s more is that I&#x27;m building mobile applications using Hotwire Native. I&#x27;m a solo developer building 2 mobile apps(iOS and Android), supported by a fully functional web application and done with vanilla Rails with Hotwire Native.<p>I&#x27;m surprised how well Rails ecosystem is suited to do everything nowadays.
评论 #43828178 未加载
评论 #43828453 未加载
siliconc0w15 天前
Rails is, if I&#x27;m being honest, better than Django in a lot of ways. Hotwire, the new SOLID cache&#x2F;queue, turbo-native, etc.. But I still prefer the overall python ecosystem.
jokethrowaway16 天前
I think you&#x27;re not giving yourself enough credits and you&#x27;re giving Rails too much.<p>I know a developer who followed a similar approach in PHP.<p>A relative of mine is running his company as a single dev in node.js + react.<p>My company runs on Python.<p>The key skill is being a good generalist willing and capable to do all the roles you need. Every tech stack can be automated for most small business needs, so that you can reduce the time spent on it.
评论 #43831235 未加载
connectsnk16 天前
Is there any other framework which can claim that it compares well to Ruby on Rails speed of development? I.e. conventions over configurations? Asking as I don’t want to learn ruby
评论 #43827956 未加载
评论 #43828945 未加载
评论 #43830134 未加载
评论 #43827551 未加载
评论 #43827525 未加载
评论 #43828243 未加载
评论 #43827363 未加载
评论 #43827372 未加载
评论 #43827950 未加载
评论 #43827798 未加载
评论 #43827470 未加载
评论 #43829566 未加载
评论 #43827946 未加载
评论 #43827816 未加载
评论 #43827528 未加载
评论 #43830414 未加载
评论 #43830583 未加载
评论 #43827475 未加载
评论 #43827366 未加载
hdjrudni16 天前
I don&#x27;t know if the framework really matters that much?<p>Just choose anything popular and there should be plenty of help available.<p>I&#x27;ve been using Laravel for about 11 years now. I hate it, but it keeps on trucking along so I&#x27;ve resisted the urge to do a complete rewrite. I don&#x27;t think anything is particularly slow to develop.<p>It&#x27;s the business side of things that&#x27;s the hard part.
评论 #43829969 未加载
评论 #43829794 未加载
评论 #43833660 未加载
gwbas1c15 天前
&gt; Our new partners, while fans of our lean approach, had one non-negotiable requirement: adding another Rails developer to the team.<p>&gt; The code represented not just PlanGo&#x27;s evolution, but my own journey from a beginner to a more experienced developer. Parts of the codebase contained decisions made by different versions of myself, with varying levels of experience and understanding.<p>I&#x27;ve joined a few companies where the codebase was started by a (cough) inexperienced developer. The hardest thing is always breaking down someone&#x27;s ego about their code. The most challenging is when a person in power needs rather (cough) forceful convincing that something needs to change.<p>One thing I&#x27;d be curious about are situations where Jetten had to let his ego go and learn from his co-worker.<p>Needless to say, in my other comment in this thread, <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43836305">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43836305</a> I didn&#x27;t &quot;fight&quot; the battle against the rewrite. But I did fight, and win, the battle to remove a very poorly designed ORM.
ChrisArchitect16 天前
Correct link: <a href="https:&#x2F;&#x2F;bramjetten.dev&#x2F;articles&#x2F;the-one-person-framework-in-practice" rel="nofollow">https:&#x2F;&#x2F;bramjetten.dev&#x2F;articles&#x2F;the-one-person-framework-in-...</a>
Glyptodon16 天前
Having worked as a basically one person Rails shop I think one of the things that makes a big difference on productivity is whether you can say no to the big react front end or not. (And I say that having come to like GQL: It&#x27;s still like 5x the workload to have a react app + Rails back end.)
评论 #43838261 未加载
ndneighbor16 天前
I see a lot of love for Elixir&#x2F;Phoenix floating around but oft posted is that Ruby is just an easier and more approachable language for many people.<p>I think that aside from Rails, that makes it one of the easiest languages to pick up and have fun with. I do miss my Rails days for that reason.
bikamonki16 天前
How does a solo developer&#x2F;maintainer with a production app and thousands of active users take a &quot;disconnected&quot; long-week vacation?
评论 #43832155 未加载
评论 #43841078 未加载
gwbas1c15 天前
&gt; Every experienced developer knows: never do a full rewrite.<p>&gt; The rewrite took a couple of intense months, during which I maintained the existing application while building its replacement.<p>Having been through a rewrite in the past: You made the right decision. If a rewrite really is only a couple of intense months, it&#x27;s worth it.<p>Otherwise, when your application gets into the &quot;full of bad practices&quot;; the alternative is to do major refactors.<p>I suspect that the application was small enough that the rewrite made more sense than a refactor.
rambambram16 天前
&gt; Sticking with a well-structured monolith was one of my best decisions.<p>I can&#x27;t emphasize this enough. Did the same with a monolithic PHP application. David Heinemeier Hanson used the term &#x27;majestic monolith&#x27; and it really feels like that, working on some cathedral in code.<p>Congrats on your good choices and results. A programming language that you like is important, but I think you should give your own decision making some more credit.
sillycube16 天前
I use Django with Vue CDN for the MVP. The framework is similar to RoR. The key is not about the framework IMO, but whether you pick up a good track. If the demand is great, you can feel the pull from the market. Otherwise, whatever framework can&#x27;t save you from failure.
sebstefan16 天前
I&#x27;d need the opinion of someone who&#x27;s worked with other acclaimed technologies (his was PHP) to tell me that Rails is indeed that much better
评论 #43832680 未加载
评论 #43831242 未加载
znpy14 天前
As somebody that doesn’t like ruby that much, what are the one-person frameworks in other languages?<p>Does Spring Boot qualify in this sense?
elternal_love16 天前
In large regards, this is basically my dream life. I just do not know where to start&#x2F;what to write honestly.
评论 #43833707 未加载
xoxosc16 天前
Honojs is another good one.<p>No depdancies. Frontend react as well as SSR included as jsx. Faster than fastify. JS&#x2F;ES&#x2F;TS runtime agonstic. Native tsx jsx support.
评论 #43827898 未加载
评论 #43829015 未加载
评论 #43829546 未加载
ilrwbwrkhv16 天前
Rails is unmatched. I wish there was just a similar framework in a faster language.
评论 #43830271 未加载
评论 #43831275 未加载
评论 #43828839 未加载
评论 #43828018 未加载
评论 #43828603 未加载
评论 #43829753 未加载
andrewstuart16 天前
Let’s be clear - the success is not <i>because of Ruby on Rails</i>.<p>You could build the same thing with nodes or python or golang or whatever.<p>There’s nothing special about rails, except that the developers speak like it’s special.<p>There’s nothing that can be quantified in any tangible way to indicate it’s actually better in any way. Rails has enthusiastic words, but it’s not actually better.
评论 #43830706 未加载