9 points · by _diyu · 8y ago · 17 comments
In particular I don't have a lot of particulars. I plan to deploy to EC2 and there is a need for a little bit of JS on the front-end for some stuff that can't be done server-side, but other than that it's all a very standard web app.
Comparison articles come out all the time but it's really hard to judge the competency or bias of the author. So I'm turning to you HN considering your reputation for being at the front of the game.
Don't worry too much about choosing the "wrong" language or framework. What you build matters more than how you build it. For example, many would recommend Postgres over MySQL for good reasons, yet those who use MySQL are doing just fine [2]. Their advantages are often insignificant in practice, so feel free to ignore the hype (especially here on HN)!
Angular, React, Vue are all fine choices for building SPAs. Rails is kind of out of place here (it's not a front-end framework). The hype around it has died, but Rails itself is still very much alive, and it's very mature. ClojureScript and Elm may need a bit more getting used to depending on your experience. Their communities are relatively small though, so you'll have less resources available.
[1] PHP gets a bad rap for its past, but modern PHP really isn't so bad (very Java or Ruby like, depending on the framework that you choose). jQuery is "old", but reliable. Not a good idea if you're building something highly interactive, but if you only need "a little bit of JS" then it seems like a good fit. SPAs have many advantages, but are also much more complex, so avoid building one if you don't need to.
Know PHP? Take Laravel. Know Ruby? Take Rails. Know JS? Take vanilla Express. Know Python? Take Django.
Sprinkle some jquery on top for the frontend with bootstrap for quick UI. And if you plan to support only modern browsers (not IE), you might not even need jquery. A whole lot of the api is built straight into modern browsers.
Any such tomfoolery such as Single Page Application Frameworks, Server Side Rendering of said frameworks is never required. Not even facebook, which built react for its own use, has a fully React rendered page.
Deploy them on a regular servers/stacks. No unnecessary docker, kubernetes, etc., is required, unless you are making a project for google where you will get a million hits on the first day.
I'd love to talk more about what/why if you have any questions. Shoot me an email @ [redacted] if you're interested.
If the project is such that you don't need to specifically have server APIs separate from the content you serve, you might want to look at Next.js or After.js, which are two similar approaches to a "just make a whole website out of React components, including server-side functionality".
If you plan to write a volume of code comparable to a small novel, you will likely want to do so in a comfortable way, able to express nuances and details in an efficient, readable, elegant manner.
There aren’t many writers who can write equally well in French and English, and even fewer who can write fluently and with finesse in Belgian French, Canadian French, UK English, Australian English, Mexican Spanish and Catalonian Spanish.
It takes constant experience and refinement to master Ruby + the rails API, something I imagine is even more true for the front end in the presence of elm etc.
I know that i would pick up the tools that my brain groks with the least effort (from a set of reliable, popular, well maintained options). The way my mind works can be the weakest link or my strongest asset — if I take it in consideration.
I can think Vue but I can’t think React. I can joyfully think Ruby but I get frustrated with C# or pho etc. slim makes me happy, erb pokes my eyes.
On the front end try Elm.
It gives you an easy way to structure your application in a predictably manner.
In my opinion, Angular lends itself to CRUD-type applications particularly well because of a clear separation between business logic and the presentation layer as well as due to easily reusable components.
Since Angular 2 the tooling has become quite reliable as well.
As for the back-end I'd suggest Spring Boot. It allows you to draw upon the vast amount of high-quality libraries available for the JVM without incurring the complexity cost that in the past often used to come with Java.