Live data from Hacker News

Phoenix 1.3.0 Released

phoenixframework.org

81–90 of 143 posts

Re: Phoenix 1.3.0 Released

#81
post #10

Earlier quoted context omitted.

I'm a django guy. I have no experience with functional programming. What would a transition to phoenix + elixir look like for me?

I've used both and honestly it probably wouldn't change much. Unless you're building an application that deals with tons of persistent connections and websockets there aren't really that many advantages. The Python ecosystem is also much, much bigger than the Erlang and Elixir ecosystem and it has far more mature libraries. If you really want to learn a functional programming language I'd strongly suggest looking at…

I beg to differ. FP with Clojure is pure joy. Spec, which is due out soon with 1.9, is also the next best thing to static typing. Some would even say it's better.

Re: Phoenix 1.3.0 Released

#82
post #74

Earlier quoted context omitted.

Rails ships with an auth module: http://api.rubyonrails.org/classes/ActiveModel/SecurePasswor...

My mistake. :) was that added in 5? Am I reading that right or is it just comparing an unencrypted string to the encrypted version?

It was added in 3.1 (http://guides.rubyonrails.org/3_1_release_notes.html) and uses bcrypt under the hood.

Re: Phoenix 1.3.0 Released

#86
post #62

Earlier quoted context omitted.

The Elixir pipe operator |> is the equivalent of the Clojure thread first macro ->, right?

Which is to say it's equivalent to function composition.

Yes it's syntactic sugar and for me personally harder to read but YMMV.

Re: Phoenix 1.3.0 Released

#87
post #84

How are people hosting their Phoenix projects? I'm used to Heroku or Laravel Forge. I don't really want to mess too much with servers.

Me neither. Devops is a hat I wasn't interested in wearing.

Which is why I tried Gigalixir[1] and never looked back. It's sort of like Heroku for Phoenix/Elixir, but without the daily restarts and with hot upgrades and the ability to run a BEAM cluster. Jes (owner) has been super responsive and deploys are trivial... just like I like it.

Also got Postgres running in google cloud (a new offering!) and that's worked great as well.

Sparkpost for an email API and Timber.io for cloud logs have also been stellar. Sweet dashboards.

You get a lot at the free tier on these.

[1] https://www.gigalixir.com

Re: Phoenix 1.3.0 Released

#88

We’ve been using Phoenix at my company in production for over a year now. So far the experience has been overwhelmingly positive, our team have totally come round to its adoption, our server costs have come down and our response times have gone down also. Coming from Rails, the ecosystem isn’t quite there yet, but it is far more mature than rails’ was this early on. The hardest thing for us has been deployment, but w…

Thats really neat...gonna check it out. Thanks for sharing. Here is the link for anyone else: https://github.com/johnhamelink/exrm_deb

Re: Phoenix 1.3.0 Released

#89
post #84

How are people hosting their Phoenix projects? I'm used to Heroku or Laravel Forge. I don't really want to mess too much with servers.

Phoenix works well on Heroku: https://hexdocs.pm/phoenix/heroku.html

I also want to try gigalixir which has a free tier: https://gigalixir.com/

Re: Phoenix 1.3.0 Released

#90
post #84

How are people hosting their Phoenix projects? I'm used to Heroku or Laravel Forge. I don't really want to mess too much with servers.

Phoenix works well on Heroku: https://hexdocs.pm/phoenix/heroku.html I also want to try gigalixir which has a free tier: https://gigalixir.com/

Note that Heroku has some drawbacks with regards to Elixir:

1) Daily restarts, which kill any app-side state such as a cache or ETS table

2) Can't take advantage of any clustering

3) Can't do hot upgrades

Post reply on HN