Thanks in advance, Ehsan
Ask HN: What web framework should I use nowadays?
1–10 of 50 posts
Re: Ask HN: What web framework should I use nowadays?
#2A lot of people choose based on their primary preferred language, so if someone likes PHP they might use Laravel, if someone wants their stuff to be in Python they might use Django or Flask.
Go's ecosystem is not as mature yet and you'll have a harder time finding relevant resources or libraries.
Nowadays I prefer Javascript/React stuff because you can make much more "responsive" and nicer UI/UX with that setup as opposed to the way all those other frameworks work which is to push html back to the client that you "enhance" with some javascript.
Re: Ask HN: What web framework should I use nowadays?
#3React is the most popular clients ide framework, Rails is still the most popular serverside.
Re: Ask HN: What web framework should I use nowadays?
#4At this point most mature frameworks all have the same abilities. The only differences you might see are speed, and even then, most people don't take that into account.
Pick the language you like or know the best, and have at it.
Re: Ask HN: What web framework should I use nowadays?
#5When I wanted to build my first big project, I looked for something like Rails in PHP but couldn't find anything. I did find Django, though, which looked cool. Since Python was more similar to PHP than Ruby, I learned Python and used Django.
Eventually I found Django too heavyweight and "batteries included" for what I wanted, so I moved to Flask.
Flask is awesome and if you like Python I still recommend it. But I think it gives you too much flexibility and there are too many ways to do one thing. Also, Python does not strike me as a language well suited to the web, primarily because everything is synchronous.
I'm now building a web app with expressjs, which has all the benefits of flask (minimal, include modules as you need them) with better defined best-practices and a larger ecosystem.
I'm using parse-server as the backend. At first I hated parse because of vendor lock-in, but now that parse-server is open source, that argument is moot. Installing it on my own server is very easy.
The best benefit of using parse-server is how easy it makes building components in different languages. Because there is a parse client library in almost every language, you can write each component of a project in the language best suited to do the job.
For example, the web app I'm building is an express server that talks to parse. But the billing and invoicing portions of the code, which happen mostly in background jobs, are all Python. They talk to the same parse backend as the web app, complete with all the beforeSave/afterSave triggers and cloud code functions.
Building the web app has been very fast because of built in functionality of parse server like email confirmation, forgot password, etc.
Building the billing code has been enjoyable because I'm more comfortable with Python, and I can offload any consistency worries into beforeSave/afterSave triggers and cloud code functions. This way the web app and Python code can call the same logic.
Having used many others, I would highly recommend this approach.
Re: Ask HN: What web framework should I use nowadays?
#6Re: Ask HN: What web framework should I use nowadays?
#7Which programming languages do you know? React is the most popular clients ide framework, Rails is still the most popular serverside.
Re: Ask HN: What web framework should I use nowadays?
#8Currently, pure java servlets serve json over REST-like API. The jar dependencies are servlet-api.jar, a couple of json-related jars and an sqlite jar. Multiple fine-grained sqlite files for data. Tomcat as the servlet container with no static content.
A nodejs reverse proxy forks the API and static web requests between tomcat and another nodejs static webserver. The static content is angualrjs + html + css with minimal and reusable js files mostly fetching json data. I also have a little bootstrap dependency for forms.
I have an apache ant build file that copies the ~60kb war file and static content directly to the production from my dev system. Tried maven before but Ant seemed much simpler and more than enough for my needs. The ant build does a lot other things also.
I use Eclipse for the easy navigability across the code and other nice refactoring features. Ant does all the build work.
Earlier I tried pure nodejs (no java), then JAX-RS and then Undertow container etc. Nothing seemed simpler than the current setup. By the way, the site is https://worktheme.com
Re: Ask HN: What web framework should I use nowadays?
#9If you are starting out without experience, I would choose based on which one has the best tutorials available.
Re: Ask HN: What web framework should I use nowadays?
#10Years ago I learned to code in PHP/MySQL, never really using a framework. I made some attempts to use CakePHP and Symfony but never liked them much. When I wanted to build my first big project, I looked for something like Rails in PHP but couldn't find anything. I did find Django, though, which looked cool. Since Python was more similar to PHP than Ruby, I learned Python and used Django. Eventually I found Django too…
Since you've used it before, would you care to elaborate on what the Parse API does?