Red

Red

Is JavaScript framework necessary for frontend?

I’m developing a Phoenix application with a simple read/write functionality. All my friends insist that I should write only backend in Phoenix, but use one of the JavaScript frameworks for the front end (meteor, react, etc.) Should I follow their advice? The only reason I don’t want to mess with JavaScript is because I don’t know it well enough, which will set me back significantly. Plus, each framework has it’s own syntax I need learn in addition. So 1 month project will easily become 3-6 months project.

Most Liked

brightball

brightball

No. The inclusion of JavaScript frameworks in every decision is one of the worst programming trends I’ve seen in my career. It’s completely unnecessary unless you are building something that actually needs to be a single page app that will stay open for a while.

Most sites are “open, check, close” experiences that don’t come close to justifying the additional overhead.

brightball

brightball

At the moment, you could say the same about Elixir as well. We are all generally here because we’re looking forward.

andre1sk

andre1sk

I would strongly recommend against Meteor :slight_smile:
You don’t have to build an SPA so simple jquery might be enough depending on you project needs.
Riot is fun (never used in a production project though) but if you are going to dedicate a lot of effort to learning js and a framework one of the big three might be a better investment of your time React (not a framework but…), Angular(2) or Ember.

Last Post!

marciol

marciol

Another solution is the new framework GitHub - hotwired/stimulus: A modest JavaScript framework for the HTML you already have · GitHub from Basecamp Team, a way to organize what they call javascript sprinkles.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement