Ask HN: Solo Dev Stack of 2022?
I would look at .NET<p>For the web, you have ASP.NET Core. It feels like Rails or Django, but with static typing that makes a lot of things easier. You can do things like `db.Books.Where(b =&gt; b.PublishedAt &lt; DateTime.Now &amp;&amp; b.Rating &gt; 3 &amp;&amp; b.AuthorId == 101)` and you get all the normal auto-completion because it&#x27;s statically typed. With .NET, you can compile down to a single, self-contained binary which makes it really easy to deploy a simple app and Microsoft has really easy Docker container setups if you want to deploy with Fly.io or anything else. You also get the benefit of more speed than you&#x27;ll get from Ruby or Python. That&#x27;s certainly not a deal-breaker with other languages, but it&#x27;s always nice to have something that is just a bit faster.<p>ASP.NET also makes it really easy to get started. I think a lot of things that aren&#x27;t named Rails or Django don&#x27;t make it easy to get started - or they make it easy to get to &quot;Hello World,&quot; but then you&#x27;re left with &quot;uh, how do I connect to a database? I guess I find my own library for this? Is there a template engine? Wait, do I need to choose a JSON serializer?&quot; One of the things that makes Rails and Django so great is that they offer you a great starting experience. ASP.NET offers that Rails&#x2F;Django-like experience.<p>It&#x27;s also simple to return JSON from your endpoints to create an API for your front-end (if you want to use React or something) or your mobile apps.<p>C# feels a lot like Kotlin to me. It&#x27;s a Java-like language that has made practical decisions that make it a lot easier to use. There&#x27;s a lot of things that just make it pleasant to use, if you&#x27;re looking for the imperative&#x2F;OO style of programming you&#x27;d get with a Ruby&#x2F;Kotlin&#x2F;Python&#x2F;Java&#x2F;etc. If you&#x27;re looking for Lisp, it&#x27;s not Lisp.<p>C# and .NET are both very mature and Microsoft is putting a ton of work into the ecosystem. Performance is already top-notch (which basically means equivalent to Java and Go in the GC world) and they&#x27;re continually improving it every year. They&#x27;re investing in a lot of great stuff like Blazor which is basically a replacement for things like React and Vue, but using C# and Razor templates via WASM (and that can also be executed on the server).<p>`dotnet watch` is just great. It&#x27;ll hot-reload your code when you change things and when there are edits it can&#x27;t hot-reload, it&#x27;ll recompile and relaunch in a second or two.<p>.NET offers MAUI (Multi-platform App UI). Basically, write your apps in C# and MAUI and get native apps for Android, iOS, Windows, Mac, Tizen, and likely community-support for Linux. MAUI has some rough edges, but it&#x27;s getting better and you can always web-view your website to begin. At the same time, Microsoft is putting a lot of effort behind it and I think it will pay off with nice apps that use native widgets without requiring two separate code bases. You&#x27;ve noted Flutter and that&#x27;s probably the biggest alternative, but Flutter doesn&#x27;t use native widgets. That&#x27;s not necessarily bad, but it does mean that the apps are probably going to feel a bit less at home on iOS. There&#x27;s also the chance to basically share the objects that you&#x27;re returning as JSON from your backend with your mobile app. Instead of having your backend `Book` class and then making sure your Dart front-end&#x27;s `Book` class remains in sync with any changes, you just have a single `Book` and don&#x27;t have to worry about it. You talked about &quot;redundancy and additional parts&quot; and while keeping that stuff in sync isn&#x27;t necessarily hard, it can be an annoying task that doesn&#x27;t bring joy. Heck, one of the big things about Rails was that so many stacks made you do tasks that weren&#x27;t necessarily &quot;hard&quot;, but really didn&#x27;t bring joy - especially when you were searching for a typo that just made things not work.<p>The great thing about Rails is how productive it lets one person be. You aren&#x27;t spending your time choosing libraries and wiring things together. I think ASP.NET Core offers that and more - static typing, great performance, and dead-simple deployment with self-contained binaries.<p>Personally, I&#x27;m liking HTMX for adding interactivity to my app. I don&#x27;t have the most experience with JS out there and I&#x27;m not looking to create something that needs the level of interactivity that might require React and it allows me to do the things that will be nice for users.<p>If I were looking for more interactivity and didn&#x27;t mind giving up a little &quot;App speed and performance, specially on the client side&quot;, I think I&#x27;d reach for Blazor. I believe .NET 7 (coming in November) will be making improvements in Blazor performance and client download size, but it&#x27;s still decent with .NET 6. Plus, improvements to WASM will make Blazor a lot better. Right now, GC&#x27;d languages need to ship their garbage collector as WASM code in the download, but it looks like WASM will handle garbage collection natively in the future. Blazor is around half as fast as React and the download sizes will likely be 3 times as large, but as Microsoft improves Blazor and WASM gets better the gap will likely narrow. Plus, with Blazor, you can just create a .NET MAUI Blazor app and now you have your iOS&#x2F;Android apps. Later, if you want a more native experience on iOS&#x2F;Android, you can shift to a native .NET MAUI app (rather than web-view powered).<p>What are the downsides of the .NET&#x2F;C# ecosystem. First, I&#x27;d say that if you&#x27;re not on Windows, you&#x27;re going to want to pay for JetBrains&#x27; Rider ($150&#x2F;$120&#x2F;$90 per year for first, second, third+ years). It just works and it&#x27;s wonderful. There is a Visual Studio for Mac which is decent and better than a lot of IDE&#x2F;editor ecosystems out there for other languages. There is VSCode with its C#&#x2F;.NET support and again it can be decent if you&#x27;re used to working with an editor that doesn&#x27;t help you 100% of the time. Rider can just be so pleasant though. Also, once you get over a certain amount of revenue or employees, Visual Studio Community isn&#x27;t free. If you have over 250 PCs or $1M in annual revenue, you have to pay the $500 for Visual Studio Professional. That isn&#x27;t much compared to the $100,000-300,000 per year you&#x27;re paying a developer or even the $150&#x2F;year you&#x27;re likely paying Slack, but it can certainly be a turn-off to some people. There is always VSCode which is decent and free and Rider which is just wonderful (and only $250&#x2F;year for businesses from the third year on), but I know some people just hate the idea that the best editor experience might cost some money (and that most people in the C# world will just pay $100-500 a year to get it rather than fighting the system for open source).<p>Second, I&#x27;d say that nothing really matches Rails&#x27; asset pipeline in terms of letting a backend-heavy programmer have a decent front-end setup without having to dive into the whole world of Grunt&#x2F;Webpack&#x2F;Gulp&#x2F;Browserify&#x2F;etc. It&#x27;s been a while since I&#x27;ve used Rails, but I remember that being such a nice addition. Microsoft does have some docs (<a href="https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;client-side&#x2F;bundling-and-minification?view=aspnetcore-6.0" rel="nofollow">https:&#x2F;&#x2F;learn.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;client-side&#x2F;bu...</a>) and you can always use Gulp or Webpack or whatnot and LigerShark&#x27;s WebOptimizer will let you minify and bundle things in C# (and handle TypeScript compilation, Sass, vendor prefixing, etc), but I remember Rails&#x27; opinionatedness being kinda nice for this.<p>Finally, I&#x27;d say that C# and .NET can be annoying if you care about little things. For example, I&#x27;ve heard a lot of people debate significant whitespace vs. opening&#x2F;closing braces or tags. If you care about those things, C# might be a bit annoying. I&#x27;ll give you an example to illustrate. This is what a simple data class would look like in C#:<p><pre><code>    class Person
    {
        public string Name { get; set; }
        public int? Age { get; set; }
        public boolean IsAdmin { get; set; }

    
    }
</code></pre>
&quot;Omg, the variables are PascalCase like classes.&quot; &quot;I hate that I see the `{ get; set; }`&quot; (I just type `prop` in my IDE and it creates the property so I don&#x27;t even have to type it all). &quot;How could they put the opening brace on a new line!&quot;<p>I get complaints like that, but it&#x27;s also stuff that kinda falls into the background when you&#x27;re actually trying to get work done. Java beans didn&#x27;t fall into the background. You&#x27;d be fighting constant little cuts and it would be hard to differentiate a class that had special behavior from one that was just a basic bean. The properties in C# are easy to see that they have no special behavior and easy to see when they do have special behavior (you can just do `{ get =&gt; _age + 10; set =&gt; _age = value; }` if you want a custom getter).<p>ASP.NET Core really grabs so much of the best ideas out there in a language that&#x27;s really good with great IDE support and dead-simple deployment as a single binary - and all with one of the biggest companies out there funding people to make it better, write docs, etc. And it takes time to write great, in-depth posts like this: <a href="https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;dotnet&#x2F;performance_improvements_in_net_7&#x2F;" rel="nofollow">https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;dotnet&#x2F;performance_improvemen...</a>. I find it a pleasant place to develop where I can just focus on my work.