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

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New

Other popular topics Top

grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54092 488
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
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