Ask HN: Easiest way to build a CRUD app?
201–210 of 239 posts
Re: Ask HN: Easiest way to build a CRUD app?
#202Earlier quoted context omitted.
Can this be done while substituting Elixir for Erlang?
Phoenix is written in Elixir, so definitely not a 1:1 mapping, but because of the underlying BEAM VM, most of what makes Elixir robust should in theory also apply to Erlang. Apart from OTP which is amazing, I don't know anything at all about the Erlang web framework scene though, sorry.
Cowboy is a decent Erlang web framework.
Re: Ask HN: Easiest way to build a CRUD app?
#203Earlier quoted context omitted.
Have you heard of AdonisJS[1]? A couple of years ago we had JS as a hard requirement for a new project, and coming from a Rails background, Adoins was really good. 1: https://adonisjs.com/
Sure, it's one of the best looking for that case and actually looks better than I remembered, but still everything from the view templating system[1] to the database[2] it uses "by default" needs to be manually installed, which makes it def not like Django/RoR IMHO. Heck, even the simple session management needs to be installed separately[3]. [1] https://docs.adonisjs.com/guides/views/introduction#setup [2] https://d…
Re: Ask HN: Easiest way to build a CRUD app?
#204Earlier quoted context omitted.
This is good advice. Django, for example, isn't the hottest tech on the block by far, but that's not necessarily a bad thing. Where some see bloat, others see maturity. There are a lot of QoL features like the ORM, forms etc. etc. that make django a very stress-free option. Also, HN sometimes has a derisive attitude towards turbo-like variants, but still, `htmx` is an objectively good pairing with django as well. It'…
I feel the same way about using websockets to get SPA-like interactivity; Blazor Server in the .NET world is similar. htmx peeked my interest though, as I can see the appeal of the LiveView/Blazor/Hotwire approach, but would still prefer inexpensive HTTP requests for most use-cases.
Re: Ask HN: Easiest way to build a CRUD app?
#205Earlier quoted context omitted.
Sure, it's one of the best looking for that case and actually looks better than I remembered, but still everything from the view templating system[1] to the database[2] it uses "by default" needs to be manually installed, which makes it def not like Django/RoR IMHO. Heck, even the simple session management needs to be installed separately[3]. [1] https://docs.adonisjs.com/guides/views/introduction#setup [2] https://d…
1 and 3 come pre-installed with the web template, which is the equivalent of a scaffolded Django or RoR app. 2 is just an npm install. You're trying to draw a distinction when there really isnt one.
Re: Ask HN: Easiest way to build a CRUD app?
#206I wonder why people keep asking such questions instead of just learning some of rails
Re: Ask HN: Easiest way to build a CRUD app?
#207Earlier quoted context omitted.
Typescript/JS React FE + Node BE - one language.
No, that's more like four languages: Typescript, CSS, HTML and the JavaScript the TS gets compiled down to. You can't just write TS once, and never touch it again, because you are now targeting a webbrowser and running a webserver, and are probably using a billion NPM packages. None of those are 'static' for a year, let a long a 'long time'.
You do only have to write one language, and web pages are highly backwards compatible. You don't need to use any NPM packages.
Re: Ask HN: Easiest way to build a CRUD app?
#208Earlier quoted context omitted.
1 and 3 come pre-installed with the web template, which is the equivalent of a scaffolded Django or RoR app. 2 is just an npm install. You're trying to draw a distinction when there really isnt one.
Doesn’t sound as batteries included as Django can be OOTB. You should be able to touch a database, setup templates and users without installing anything outside of Django. Which you absolutely can. Not sure the framework in question is this seamless.
Re: Ask HN: Easiest way to build a CRUD app?
#209I would consider Django and just using its Admin framework for building your UI, you can achieve so much very quickly with almost no code. I believe it’s a brilliant tool for building internal CRUD type db apps. Knowing how to use the admin framework well is basically a developer super power. You won’t need any external libraries, it has brilliant docs and important tools like database migrations are built in.
Just want to add to what I said earlier, on the DB side which could be an external dependency, it doesn’t need to be. Django works super well with SQLite, again no external libs (it’s in the Python standard lib), and you should be able to handle a lot of traffic from a single sever with it. I have in the past used Djangos built in “in memory” cache with a global invalidation on all db writes for simple apps like this…
Re: Ask HN: Easiest way to build a CRUD app?
#210Earlier quoted context omitted.
Vaadin is interesting, and choice of java is ok (though I prefer Kotlin). But raw jdbc in 2022 is absolutely bonkers. If you don't prefer ORMs that's ok, but a light abstraction like SQLDelight or Spring data jdbc (if you prefer working with SQL) or a query builder like jOOQ (if you like type-safety) can make your life simpler by an order of magnitude.
I was hoping someone would mention Kotlin and Spring! Kotlin is a pleasure to code with. And Spring Boot simplifies Spring tremendously, https://start.spring.io/ Lots of documentation for Java/Spring out there, but somewhat lacking for Kotlin/Spring. Some IDEs help by automatically converting from Java to Kotlin, like IDEA InteliJ.
Actually, the spring official docs have kotlin compatibility sections and kotlin examples for most major projects now.