Тёмный

Polly want a message Sandi Metz 

Sandi Metz
Подписаться 1,5 тыс.
Просмотров 21 тыс.
50% 1

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

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 25   
@kelpierl5489
@kelpierl5489 Месяц назад
It's a crime that this video has only 21k views. I would like to make it mandatory viewing for every engineer on my team.
@ross2204
@ross2204 6 лет назад
Thanks for sharing Sandi, I love your work!
@donjciii
@donjciii 6 лет назад
Great talk, Sandi, thank you :-) !
@TheKokoG
@TheKokoG 5 лет назад
It's just wonderful. So clean, easy to understand, ... Congratulations!
@ChillerDragon
@ChillerDragon 5 лет назад
wow did i just watched the full 40 mins. Interesting talk I guess I finally understood that polymorphism means addapting to the same api.
@Spiun666
@Spiun666 5 лет назад
People don't say "I can't write code like this" because they don't trust the objects to do the right thing. They say it because abstractions don't always remove cognitive cost, sometimes they add it. The cognitive cost is added when the roles are chosen poorly: people don't know what a justifier is, or what a subsetter is, or what a source is. These ad-hoc abstractions are a product of the programmer's mind and have to be carefully documented and explained once introduced.
@robertjones811
@robertjones811 5 лет назад
Go ahead, make my day. And you did, Sandi! I will forever more be referring OO noobs to this video, and most especially _Procedures vs OO_ (at time 6:00 ). This gem should be on StackOverflow with its own tag - "OO Zen".
@layerok315
@layerok315 Год назад
This information is pearl. I regret I didn't know it in the beginning. How much terrible code wouldn't be written. Thanks
@kim15742
@kim15742 3 года назад
I enjoyed this talk and I like having these examples that clearly show what's wrong and how to fix it. These are not OO patterns, though. You can do all of this in any functional language and even in C with function pointers. And if you are choosing between just two choices then I really must wonder how much better a class/function is compared to an if condition. You can still take out the if condition from the original function and put it in its separate function/class/whatever you like. Your code will be much faster and you'll concentrate more on what actually needs to get done
@BeALeaderAndAnInspir
@BeALeaderAndAnInspir 3 года назад
I have just found out that Sandi makes a RU-vid channel. Please keep posting amazing work, Sandi...
@SalixAlba256
@SalixAlba256 9 месяцев назад
I like the idea that OO affords certain styles of programming.
@VictorOrdu
@VictorOrdu 5 лет назад
I found this refreshing. Thanks Sandi, for sharing your wisdom. Where's Part 3 and 4?
@medthehatta
@medthehatta 5 лет назад
I think she misspoke a little when she said "part 2". Parts 1 - 3 of her original numbering are part 1 in the misspoken numbering. Part 4 is the part 2 she misspeaks.
@ElectricScribe
@ElectricScribe 5 лет назад
You need a Factory to get Parts 3 and 4. ;)
@ElectricScribe
@ElectricScribe 5 лет назад
Fantastic talk, well researched and explained but I think one mistake on the code. At 36:32 you can see .new(...).lines -> each sub-class calls 'lines'. At 37:00 when that logic is moved to the factory the .new does NOT call lines on the sub-classes. Hence the factory will return an instance of the subclass, and not the result of calling lines as before. At 37:16 you say it will 'give you back the right thing' but actually it will give you back the class instance, and not the result of calling lines. Because Clump.lines is calling the factory lines method, not the sub-class lines method.
@AlexZavalny
@AlexZavalny Год назад
New calls lines of subclass, actually. So no mistake here
@elisson357
@elisson357 6 лет назад
Thanks for Sharing This.
@ratias0
@ratias0 4 года назад
I loved it. Thank you very much for this
@sternowl2345
@sternowl2345 Год назад
Great talk!
@robertfwler5399
@robertfwler5399 5 лет назад
She never mentioned where do you call Listing class, in a script? in another method? in a factory?
@rushyscoper1651
@rushyscoper1651 5 лет назад
Welp my whole program is a death star lol
@VictorMartinsPT
@VictorMartinsPT 5 лет назад
Really good, thank you Sandi :)
@wulymammoth
@wulymammoth 5 лет назад
Watched this 3x and while sometimes OO seems contrived what you've spelled out is such reprieve
@happytrippy69
@happytrippy69 4 года назад
Ayy my name is sandi! and why it 40 mins? why don't u play ronblox
Далее
Sandi Metz - Talk Session: Polly Want a Message
41:22
Baruco 2013: Rules, by Sandi Metz
35:28
Просмотров 30 тыс.
10 CHALLENGE ⚽️ CELINE vs MICHIEL vs BRAM
0:59
Просмотров 2,9 млн
Sandy Metz - SOLID Design Principle in Ruby
47:12
Просмотров 12 тыс.
The Flaws of Inheritance
10:01
Просмотров 957 тыс.
Object-Oriented Programming is Bad
44:35
Просмотров 2,3 млн
RailsConf 2014 - All the Little Things by Sandi Metz
38:47
hafentalks #7 - Sandi Metz: "Go Ahead, Make a Mess"
40:01
RubyConf 2019 - Keynote: Lucky You by Sandi Metz
47:36
10 CHALLENGE ⚽️ CELINE vs MICHIEL vs BRAM
0:59
Просмотров 2,9 млн