Тёмный
No video :(

Are VALUE OBJECTS secretly overpowered?! 

Przemysław Przyłucki
Подписаться 5 тыс.
Просмотров 3,5 тыс.
50% 1

Morning gals and guys.
In today's episode we'll talk about value objects and how they can be used.
Twitter:
/ przylucki_p
More me:
saaslaravel.com
Website:
przemyslawprzy...

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

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@alnahian2003
@alnahian2003 Год назад
This is currently my daily favorite channel 🍀 Sooo much indepth about those stuffs
@saaslaravel
@saaslaravel Год назад
Glad you enjoy it!
@mohamedalqady1220
@mohamedalqady1220 Год назад
Me to 🎉
@free2idol1
@free2idol1 Год назад
Awesome! I have used VO for a while but you've made it to the next level... I hope you can release a tutorial of making mini app using DDD architecture.
@saaslaravel
@saaslaravel Год назад
Thanks so much! Tutorial on my version DDD is on the immediate roadmap (and a secret project connected to it 😊)
@SemyonF89
@SemyonF89 7 месяцев назад
Yep! we need it!
@igorleal1798
@igorleal1798 Год назад
It would be great to have generics in PHP so you could just pass a to your interface and use the Phone instead of a generic ValueObjectInterface for your isEqual definition
@saaslaravel
@saaslaravel Год назад
That's what I tried to do with phpdoc off camera but couldn't get it to work unfortunately :c
@igorleal1798
@igorleal1798 Год назад
@@saaslaravel So sad... Hopefully, PHP will get native generics one day :D
@medilies
@medilies Год назад
@@igorleal1798 there is a video by Brent where he explains why PHP can't have generics
@TheGajos
@TheGajos 5 месяцев назад
@@mediliesActually we can have generics in PHP, just like Python does (comments)
@medilies
@medilies 5 месяцев назад
@@TheGajos php annotations have no effect on runtime. they only improve IDE experience and work with static analyzers
@kenube
@kenube Год назад
Great videos. Can you explain the difference between DTO & Value Object? Always confuse with this two terms.
@saaslaravel
@saaslaravel Год назад
Thank you! In simple terms: Value object is a wrapper on a primitive inside of your system - phone, email, point, coupon etc, whereas DTO is an object with all of the data required for execution of a certain logic. DTOs often times include VO
@kenube
@kenube Год назад
@@saaslaravel Thanks for the clarification! I probably already use DTO without knowing 😖
@alexz75515
@alexz75515 Год назад
I have learned so much from your videos, thank you! This type of videos are just awesome!
@saaslaravel
@saaslaravel Год назад
Thank you ❤️
@bangladesherp5210
@bangladesherp5210 Год назад
Great explanation!
@MarkSnape
@MarkSnape Год назад
I was puzzled by the interface. I thought you were going to extend a base value object class and put these common methods there?
@catalinul1461
@catalinul1461 Год назад
Hey mate! One question if I may, how would you handle transliteration when it comes to slugs in Laravel?
@saaslaravel
@saaslaravel Год назад
Hey! If you mean replacing characters like "ó" into "o" I think Str::slug handles that out of the box. If you mean localization - you could generate a slug that has a numeric ID and localized slug that's not taken into consideration in route binding i.e. "/blog/1-article"
@catalinul1461
@catalinul1461 Год назад
@@saaslaravel Yes, the first option, thank you very much! :D
@niceteg
@niceteg 3 месяца назад
We miss you
@saaslaravel
@saaslaravel 3 месяца назад
I may or may not be getting back soon 👀
@niceteg
@niceteg 3 месяца назад
@@saaslaravel all your your videos are inspiring! Just buil some CRM example with DB structure and it will be the,🚀
@maguiskader7771
@maguiskader7771 Год назад
Awesome 👌 can i have please the name of theme and the font😅 im addicted!
@saaslaravel
@saaslaravel Год назад
Thanks! It's called Fira Code
@maguiskader7771
@maguiskader7771 Год назад
@@saaslaravel 🥳 thanks and theme?
@SussanRai
@SussanRai Год назад
I think spatie laravel data package is better for this type of data transformation
@saaslaravel
@saaslaravel Год назад
It may be, but it's important to be able to understand what's happening under the hood or just being able to implement it from scratch! 😁
@SussanRai
@SussanRai Год назад
@@saaslaravel I agree on this
@onlynudes1398
@onlynudes1398 Год назад
Please I need a DDD tutorials
@saaslaravel
@saaslaravel Год назад
It's def on the roadmap!
Далее
Diferencias entre Value Object vs Entidad vs Agregado
19:33
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Просмотров 999 тыс.
WOW! Laravel's pipeline pattern is AWESOME
20:39
Просмотров 12 тыс.
Value Objects
8:12
Просмотров 18 тыс.
Refactoring to action pipelines in Laravel
1:25:03
Просмотров 9 тыс.
Premature Optimization
12:39
Просмотров 790 тыс.
Laravel Code Review: Why NOT Use Repository Pattern?
14:21