aj-foster

aj-foster

Elixir Diff — Compare Various Project Generators

Hello everyone,

I really enjoy the PhoenixDiff website for seeing changes between Phoenix versions. It makes it much easier to upgrade an existing application. This got me thinking: it might be cool to have a similar interface for comparing projects generated with different generators and flag combinations.

So, I’m pleased to introduce Elixir Diff.

When would you use this?

Example one: When we start a project at work, we don’t always know what features of Phoenix we’ll need — or if we’ll need Phoenix at all. Even if we need a web interface, sometimes it’s nice to start with mix new and add Phoenix later. This project shows us the difference between mix new --sup and mix phx.new --no-html to help us add in functionality later on.

Example two: Maybe you’re using the Nerves bootstrap generator, and you’re curious what the --no-nerves-pack flag does. This project can help.

How does it work?

As mentioned in the site’s README (see the source here), this project was an opportunity to use some good ol’ fashioned HTML, JS, and Bash. I really wanted to be able to build and host it with minimal infrastructure — in fact, everything happens on GitHub (via Actions and Pages).

With that in mind, the site is just some HTML/CSS/JS that loads git patch files. The diffs are shown using the same libraries as Phoenix Diff with some custom styling.

Now what?

That’s pretty much it. I enjoyed creating something Elixir-related even though it doesn’t use any Elixir code. The project can support additional project generators in the future if anyone is interested.

Thanks for checking it out! Feedback is always welcome (and most easily seen as a GitHub issue).

Where Next?

Popular in Discussions Top

laiboonh
Hi all, I am trying to convince my team to use liveview over the current react. What are some of the points where one should consider us...
New
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
ricklove
I was just introduced to Elixir and Phoenix. I was told about the 2 million websocket test that was done 2 years ago. From my research, t...
New
AlexMcConnell
The reason that Rails is as popular as it is is because it’s very easy for relatively inexperienced developers to get a lot of work done....
588 19568 166
New
Ankhers
Just a little information upfront. Generally speaking, if I feel like I need to either break a pipe chain or use an anonymous function in...
New
hazardfn
I suppose this question is effectively hackney vs. ibrowse but we are at a point in our project where we have to make a choice between th...
New
restack_oslo
Hello, Please pardon me for any faux paux. I am 46 and this is my first time on a forum of any kind. I wanted to to get answers from tho...
New
Owens
Hello all, I am developing a new mobile app with Flutter frontend and Phoenix backend. The mobile app has real-time task management and c...
New
Markusxmr
Since Drab has been developed for a while in the open, introducing the Liveview functionality in a way it happend appears to undermine th...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
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
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement