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

New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
eteeselink
Hi all, In the last days, two things happened: A blog post titled “They might never tell you it’s broken” made the rounds. It’s about ...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
cvkmohan
The upcoming Phoenix 1.6 release looks very interesting. Became a habit to watch the commits - and - what they are bringing in. phx.gen...
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

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
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
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
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
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement