vnz

vnz

Some 2-3 months ago we started a Phoenix 1.4 project. The designer uses Pug https://pugjs.org/ for generating the basic html design, as well as the initial js/css. He uses some own pipeline for generating all this (using gulp), then I get the generated html, split it and use in Elixir templates (eex). This has proven to be a major setback and it’s taking big time on my side to integrate the changes. The generated files are too big, lots of html/svg ****, etc. On top of that, we take the generated js/css and integrate it with the webpack pipeline of Phoenix, with additional changes. We took a Vue.js dev onboard for some of the features that call the Phoenix backend/api. So as you might guess, it’s a big pile of fancy technologies, everyone coming from their background and not seeing the big picture of the project, and at the bottom line it looks like a big pile of ****. On the other side, business ppl have been pressing too much on releasing the product live, even though it’s not finished.
So, the question is: what would you have done differently in such situations? How would you integrate the work of some designer with some weird pipeline who delivers you bunch of html/js/css? How can one (if possible) get out of this pile of ****? I have lost the enthusiasm to work in this project, feel burnt out, and just want to finish and get out.

Showing Posts 1 to 6

peerreynders

peerreynders

What about combining Vue.js + Pug, serving it through node and having Phoenix strictly as a JSON backend - i.e. take EEx out of the picture entirely?

It not an unusual approach.

vnz

vnz OP

That’s the most logical solution, but I don’t think business ppl will agree on this - they just want the product shipped as soon as possible.

chrismccord

chrismccord

Creator of Phoenix

It’s not clear what the requirements are, but it sounds like the use of a template language like pugjs was not at all needed. So that would be my first change in retrospect. Writing HTML is never the bottleneck, so I avoid template engines wherever possible. It sounds like the designer should have delivered well constructed HTML/css, but perhaps there are some client-side requirements we are missing.

vnz

vnz OP

The basic functionalities were given to me in the beginning, but the requirements were known add-hock: the designer finished his work couple of weeks ahead, the business ppl gave him ideas how the site should look, and then it was given to me and deduce the functionalities that have/had to be implemented in Phoenix. Then the new changes are added to the design, and propagated to me…

peerreynders

peerreynders

Then the new changes are added to the design, and propagated to me…

To speed this up it may be make sense to get the Designer back for a few sessions if possible so that you can pick his brain about the design rather that having to “deduce the functionalities” yourself.

In either case you may still end up discovering that either EEx or Vue.js has to go (Once Vue.js enters the picture there really isn’t much to do for EEx other than providing a container of the page body - with Vue.js gone you need a way to enable the page dynamics in concert with EEx).

jihantoro

jihantoro

sorry but expug has many error

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews