coen.bakker

coen.bakker

Studying LiveView codebases is part of my journey to become a better (LiveView) dev. I have been studying LiveBeats, LiveBook and a number of codebases for Fly.io blogs. It’s fairly easy to find new open source projects to study. I can’t always tell if I should copy practices from those code bases or not. Simply because I am at a level where I cannot always tell good practices from not-so-good practices.

Are there any open-source projects that you can recommend? Projects that you think are good learning sources for some one that:

  • Has been using Phoenix/LiveView (almost) daily for at least a year (4-7 hours per day)
  • Has limited dev experience prior to starting to use Phoenix/LiveView (JS and Vue)
  • Is comfortable with options of Phoenix/LiveView, but needs to get better at building robust, clean and well-maintainable code

P.S. In the title I use the term intermediate level. Not sure how I qualify and fairly sure that the term is used loosely.

P.P.S. Although I have been studying LiveBook’s codebase, I definitely am not at that level of practice yet. Clearly. Plenty goes over my head.

Edit: There are some big differences in coding style between for example LiveBeats and this codebase (Fly.io blog post). Being able to compare has been super useful.

Showing Posts 1 to 6

coen.bakker

coen.bakker OP

In case it’s helpful for any fellow learners, I’ll post some options myself also. Options that I think look promising.

I found this repo just now. GitHub - puemos/overbooked: Overbooked is a self-hosted flexible workplace platform for indie co-working owners. · GitHub

Kin

Kin

I am in the process of trying Liveview but unfortunately I won’t continue because of the lag I experience and I haven’t experienced with Next. I can’t explain it but it feels very different if you click around in a Next app and a Phoenix app - and both of them get stuff from the DB after the click.

Phoenix feels laggy somehow. In a weird unpleasant way something between unresponsiveness and laggy feeling.

I noticed that I click on some links multiple times because I think the first time it haven’t registered the click, but it just was slow.

Anybody has similar experience with this “lag” feeling when you click around in Phoenix?

arcanemachine

arcanemachine

This should be in its own thread, but no, when I am doing dev work, the results are instantaneous and snappy. When deploying, the results are dependent on the distance from your machine to the server, I recently deployed on a server that is 7500km away (ping time is 175ms), and I can barely notice a lag in the responses from the live views on the server.

If you are developing on a remote server, that would explain the lag. Whatever it is, I don’t think it’s a Phoenix problem.

If you want to feel how fast a LiveView response can be, try out my toy project:

Each question does a round trip to the server. Again, there is pretty much no lag for me. So if you’re experiencing issues, it’s a problem with your device or connection.

Kin

Kin

I usually don’t change 2 letters on the website. Try page navigation, pagination, search, bigger changes. Pheonix will feel slow.

arcanemachine

arcanemachine

Feel free to start a new thread to air your grievances. I am sure the community would be happy to help you address your specific concerns.

sabit990928

sabit990928

I don’t have much as most of my own projects are private, but I’ll try to check my bookmarks to share if there anything interesting. Did you find anything else? I also like looking around the repo and see decision making process. Especially after phoenix and liveview version updates.

— All posts loaded —

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
psy-q
I’m trying to set up Emacs with elixir-ls via lsp-mode and credo via Flycheck. This should mostly be preconfigured as Flycheck picks up c...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews