Live data from Hacker News

Build a real-time Twitter clone with LiveView and Phoenix 1.5

phoenixframework.org

181–190 of 249 posts

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#181
post #36

Earlier quoted context omitted.

This happened to me with Clojure. You really get to appreciate languages with big ecosystems when working on niche languages. It's sad because these languages are more enjoyable to work with IMO. Thy are better cause they had the advantage of being created much later than the mainstream ones but that also means they had hard competition.

Seriously. I would love to work at this level of abstraction in Clojure, but to do something that is trivial in Rails with something like Devise is a chore in Clojure, and you have to put it all together yourself. Of course this makes it excellent for learning, but not so great for deadlines. More and more I think I might've made a mistake trying to do basic CRUD web stuff in Clojure for my current project.

Interestingly one of the creators of Devise is the creator of Elixr

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#182

Is there a tutorial or course I can purchase like beginner to all the way to deployment on Digital Ocean or something like that ?

Elixir : https://pragprog.com/book/elixir16/programming-elixir-1-6 Phoenix : https://pragprog.com/book/phoenix14/programming-phoenix-1-4 Deployment : https://www.youtube.com/playlist?list=PLZZkJeUxu6QmO83Z1esRh...

[deleted]

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#183
post #14

I was a Rails user for almost a decade. I switched to Phoenix/Elixir 3 years ago. Elixir is a super simple language. It has no OO concepts and everything is functions first. In fact, it's so good that I started teaching it for universities. All my production web applications are now fully on Elixir. Elixir is one of those languages where everything has been done perfectly as of the time of this comment. When I say pe…

How’s the speed?

Is it as performant as technologies like Django / Ruby?

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#184
I've been observing Elixir and Phoenix from the outside for 4 years or so now. There was a lot of initial hype and it died down a little bit but I'm really happy to see how far it's come and how polished everything looks. The lack of static typing initially made me pause but maybe it's time to get over it. As someone who tends to program in a functional style anyway (if a language supports it), losing the overhead of OO paradigms would not be a deal breaker and probably pretty liberating.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#185

Earlier quoted context omitted.

Static typing is far from a panacea. Don't forget that the rise of Perl and PHP, and then later Ruby and Python was in response to statically typed languages like Java. There are trade-offs.

Don't Perl and PHP both predate Java? By quite a bit in Perl's case.

The rise in popularity can happen later than the creation of a language, see Python (1991).

In my case I left Java for Ruby for web programming in 2006 because working with Rails was infinitely easier than working with Structs. I didn't even know that Ruby was a programming language before Rails.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#186
post #27

Earlier quoted context omitted.

It seems like a lot of companies are moving to Go for fast services. As a rails dev for 10+ years, I am looking at Go instead of Elixir and Phoenix, b/c Go is a much more popular language than Elixir.

I’ve invested a lot of time into both Go and Elixir. I like both languages a lot. My anecdotal view of the marketplace is that Elixir recruitment emails tend to come from startups looking for their 2nd or 3rd dev, usually full stack, and the salaries are nothing special. Go recruitment emails tend to come from bigger companies looking for backend devs, often hoping for kubernetes experience too, and the pay is higher…

what would you say are the benefits of using LiveView over react?

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#187
post #61

Earlier quoted context omitted.

> And once you start thinking interms of functions, you just won't touch any of those terrible OO programming paradigms Also worth noting (because Elixir was strange and new for everyone at some point) that a lot of what used to be mind-boggling to me in earlier versions of Elixir/Phoenix have become relatively commonplace when dealing with things like React or modern Javascript. If you've ever handled a JS promise f…

Unlike a Promise, I hope you can cancel processes in Elixir

You can cancel a Promise by using AbortController and its AbortSignal, still experimental but supported in most browsers already.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#188
post #14

I was a Rails user for almost a decade. I switched to Phoenix/Elixir 3 years ago. Elixir is a super simple language. It has no OO concepts and everything is functions first. In fact, it's so good that I started teaching it for universities. All my production web applications are now fully on Elixir. Elixir is one of those languages where everything has been done perfectly as of the time of this comment. When I say pe…

I love Elixir, but tha language is not super simple. The learning curve is actually rather steep. Writing Elixir like it's easy is probably creating technical debt hell that's going to fall over the moment a system is under non-trivial load. It's all fun and games until someone who didn't know who write a GenServer doesn't understand why everything starts timing out after 5 seconds.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#189
post #183
post #14

I was a Rails user for almost a decade. I switched to Phoenix/Elixir 3 years ago. Elixir is a super simple language. It has no OO concepts and everything is functions first. In fact, it's so good that I started teaching it for universities. All my production web applications are now fully on Elixir. Elixir is one of those languages where everything has been done perfectly as of the time of this comment. When I say pe…

How’s the speed? Is it as performant as technologies like Django / Ruby?

As with anything benchmarking is hard and "performance" is not a 1 dimensional thing.

That said, there are some ways in which Phoenix/LiveView is extremely "scalable".

For example, pushing messages to 2 million simultaneous websocket connections: https://www.phoenixframework.org/blog/the-road-to-2-million-...

... and running on the BEAM gives all sorts of exciting horizontal scaling possibilities on top of that.

Re: Build a real-time Twitter clone with LiveView and Phoenix 1.5

#190
post #14

I was a Rails user for almost a decade. I switched to Phoenix/Elixir 3 years ago. Elixir is a super simple language. It has no OO concepts and everything is functions first. In fact, it's so good that I started teaching it for universities. All my production web applications are now fully on Elixir. Elixir is one of those languages where everything has been done perfectly as of the time of this comment. When I say pe…

> When I say perfect, I mean, there has been never once in my career where I hit a roadblock due to the language's limitation or complexity or flawed assumption. I faced this with other languages, but not Elixir. This is pretty amazing praise! Are many of the other languages you've used strongly typed? That's the thing that gives me pause - I feel like I rely on the compiler a lot in languages where it can do a lot f…

I was excited to the other day to see https://gleam.run/ on HN, which is statically typed and will interop with elixir... but still early days for the language.
Post reply on HN