Тёмный

Josh Hanley - Building a maintainable Livewire application - Laracon AU 2023 

Laracon AU
Подписаться 1,6 тыс.
Просмотров 2,3 тыс.
50% 1

Join Josh Hanley as he sails through ways to build a maintainable Livewire application while cruising Australia's east coast. Dive into topics like page components, naming conventions, and effective organisation.
00:00 Components
02:08 Page components
03:32 Invokable components
04:21 Naming conventions
05:25 Organising components
06:47 Computed properties
10:19 Cached properties
10:51 Component structure
15:25 Form objects
17:24 Action classes

Наука

Опубликовано:

 

4 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@nym49
@nym49 7 месяцев назад
Is there more content like this? This is by far the hardest information to get to as someone that has progressed past the basics.
@_joshhanley
@_joshhanley 7 месяцев назад
I don't have anything at this stage, but would be open to putting more information out there. Do you have anything in particular you would like to learn about?
@nikolayandonov1275
@nikolayandonov1275 7 месяцев назад
Great tips! Biggest benefit imo of action classes (or any other business logic layer) is we can now reuse that logic in other parts of the system (API endpoints, Jobs, Commands, etc.). It's no longer tied down to the Livewire component itself.
@_joshhanley
@_joshhanley 7 месяцев назад
Thanks! Yep exactly! I love using them personally😁
@1234matthewjohnson
@1234matthewjohnson 7 месяцев назад
very insightful thanks mate!
@_joshhanley
@_joshhanley 7 месяцев назад
No worries! 🙂
@johandejager3692
@johandejager3692 6 месяцев назад
What I do instead of #Computed is just do the fetching in render() and pass it to view(). Is this a bad idea?
@joshuahanley32
@joshuahanley32 6 месяцев назад
Nope, that works fine. It's more of a traditional Laravel way to do things though, where as computed properties and public properties are more of a Livewire way to get data to the view as Livewire handles it for you. I personally don't like doing it that way, as I like to keep my render method clean. Using computed properties has the added bonus of memoisation and caching, plus they are easier to unit test than data called in the render method.
@johandejager3692
@johandejager3692 6 месяцев назад
@@joshuahanley32 I appreciate your insights! Thanks for taking the time to reply. I will keep those points in mind 👍🏻👍🏻
@johandejager3692
@johandejager3692 5 месяцев назад
@@joshuahanley32 I've experimented a bit with #[Computed] and I love it. Thanks! Slowly migrating components as I am working on them. Looks much cleaner.
Далее
Как выходим с тройняшками 🙃
00:17
Кто Первый Получит Миллион ?
27:44
Me: Don't cross there's cars coming
00:16
Просмотров 3 млн
Customizing Laravel Pulse
21:42
Просмотров 9 тыс.
Fixing RAG with GraphRAG
15:04
Просмотров 3,8 тыс.
Naming Things in Code
7:25
Просмотров 2 млн
justforfunc #9: The Context Package
36:27
Просмотров 138 тыс.
Use Arc Instead of Vec
15:21
Просмотров 137 тыс.
When you have 32GB RAM in your PC
0:12
Просмотров 251 тыс.
Игровой Комп с Авито за 4500р
1:00