News for hackers. Stuff that matters.
Re:Would you still pick Elixir in 2019? by quaunaut on Sunday January 06, 2019 @01:44PM (#18839801)
> Pipelines are hard to debug. You can’t just throw a debugger just before the line with the issue.

You absolutely can. Just change,

```elixir

users

|> send_email_with_money()

|> do_complex_thing_that_crashes()

```

into

```elixir

users = users

  |> send_email_with_money()
require IEx; IEx.pry()

```

I turned the `require IEx; IEx.pry()` into a snippet just to make life as easy as it is in Ruby land.

> - Phoenix is very bad at serving static files. It was a nightmare to import a new CSS template requiring to convert everything to work with bower first, or dump the files in the /priv directory to make it work.

Well, two sides to this. For one, Phoenix uses Webpack now(since finally the war to see what app bundler would win is over).

But even when you did use bower- you should've been able to just delete `phoenix.css`, copy your template in, and in `app.css` put `import "template_name_here"`.

Re:Would you still pick Elixir in 2019? by hartator on Sunday January 06, 2019 @01:59PM (#18839900)
Yeah, but you do need to edit your actual pipelined code to add a debugger. That's annoying.

> Well, two sides to this. For one, Phoenix uses Webpack now(since finally the war to see what app bundler would win is over).

We shouldn't force devs on Bower or Webpack. If I want to try out a new theme just bought on ThemeForest, it shouldn't take hours to make it compatible. Or to force to do the /priv/ hack that seems unelegant.

Re:Would you still pick Elixir in 2019? by quaunaut on Sunday January 06, 2019 @02:12PM (#18839987)
> We shouldn't force devs on Bower or Webpack. If I want to try out a new theme just bought on ThemeForest, it shouldn't take hours to make it compatible. Or to force to do the /priv/ hack that seems unelegant.

You could at any time have installed Phoenix without those. And what's so hackey about /priv/? That's where you can dump things that you know will be served. It's literally the intended purpose of the folder.