RailsConf 2015 - Nothing is Something

  Рет қаралды 29,495

Confreaks

Confreaks

9 жыл бұрын

By, Sandi Metz
Our code is full of hidden assumptions, things that seem like nothing, secrets that we did not name and thus cannot see. These secrets represent missing concepts and this talk shows you how to expose those concepts with code that is easy to understand, change and extend. Being explicit about hidden ideas makes your code simpler, your apps clearer and your life better. Even very small ideas matter. Everything, even nothing, is something.

Пікірлер: 29
@miracl
@miracl 2 ай бұрын
this gives me the chills everytime I watch it
@luoarnamsk
@luoarnamsk 9 жыл бұрын
This is one of the best talks i've seen in a long time!
@jonathansaindon788
@jonathansaindon788 11 ай бұрын
A perfect example of the strategy pattern. The mother of all patterns!
@koshu4
@koshu4 6 жыл бұрын
this is on my list of the greatest ruby talks of all time
@name777
@name777 2 жыл бұрын
Sandi Metz is one of the best, if not the best, educators on object oriented design. Amazing stuff.
@gosukiwi
@gosukiwi 9 жыл бұрын
I love Sandi Metz's talks and writings, when I was new to Ruby she really helped me step up my code, and this talk is great. I know I'll learn something really important whenever I see her in a conference, and then wonder how I never learnt about that before :)
@sainam1995
@sainam1995 9 жыл бұрын
I really enjoyed this talk. Thank you!!
@batlin
@batlin 4 жыл бұрын
Wow, this was such an informative and entertaining talk. My brain could barely keep up! I prefer to work in a functional style these days, but this was still really helpful, and much better than the popular narrative of "prefer composition over inheritance", since it's backed up by solid examples and discussion rather than just being a flat assertion.
@shirshak6738
@shirshak6738 5 жыл бұрын
Composition over inheritance is great as always :)
@kaibe5241
@kaibe5241 3 жыл бұрын
Brilliant. Metz is just so damn good.
6 жыл бұрын
Awesome! It blasts my mind : the invention of nothing! ;) Thanks
@sameer1234ification
@sameer1234ification 3 жыл бұрын
wow ... this is great!!!!!!!!
@FranckMercado
@FranckMercado 4 жыл бұрын
great talk!
@rara_rari
@rara_rari 5 жыл бұрын
How is this video different than the other one with more views on Confreaks channel?
@RizalMuthi
@RizalMuthi 8 жыл бұрын
Superb
@Demondzeta
@Demondzeta 8 жыл бұрын
does someone knows about some kata i can use to practice this?
@alexios4392
@alexios4392 2 жыл бұрын
How to implement smalltalk conditionals in other languages?
@Zhuinden
@Zhuinden 6 жыл бұрын
This really makes me wonder when inheritance is the right tool of choice - and abstract base classes in general.
@kotrin
@kotrin 6 жыл бұрын
Almost never, in my opinionated view :) Compose!
@aldrichwright7971
@aldrichwright7971 6 жыл бұрын
The question I then have is what is the major difference between functional and object oriented programming? Both depend on composition, the null object pattern become the maybe type and so on.
@aldrichwright7971
@aldrichwright7971 6 жыл бұрын
Oh, and functional platforms such as BEAM (Elixir, Erlang etc) are heavily dependent on the concept of message passing. Come to think of it, it's important for Haskell as well.
@kotrin
@kotrin 6 жыл бұрын
To honestly answer this, you have to go explore functional programming. Describing an orange to you does not let you understand the experience of eating an orange. If you truly care to understand the difference: go try it. The composition is different, programming with monads (null object pattern) is different, and so on.
@MoncefNaji
@MoncefNaji 5 жыл бұрын
This is the Maybe monad!
@MithiSevilla
@MithiSevilla 9 жыл бұрын
Sandi Metz I got so inspired by this talk I decided read her book and then got inspired again this time to write an article about her book medium.com/@mithi/review-sandi-metz-s-poodr-ch-1-4-wip-d4daac417665
@dingvan3655
@dingvan3655 6 жыл бұрын
At this time Object-oriented absolutely blew my mind. This is a special occasion. I'll have a cigarette.
@kaibe5241
@kaibe5241 3 жыл бұрын
Horrible way to celebrate. Try a cigar ;)
@pokegaiyui
@pokegaiyui 6 жыл бұрын
Well my mind is blown lol
@RasmusSchultz
@RasmusSchultz 5 жыл бұрын
The null object pattern is the least useful pattern I know. Do yourself a favor and read the "criticism" section of the Wikipedia article. en.wikipedia.org/wiki/Null_object_pattern The Animal example nicely illustrates the kind of problems this creates. Presumably Animal has some properties and methods beyond just the name, right? How does MissingAnimal respond to various messages intended for actual Animal instances? How many legs does it have? zero? nil? does it have fur? true, false, nil? what species does it belong to? MissingSpecies? nil?? Think about it: your MissingAnimal needs to have a nonsense answer for every question you could ask about an Animal. The null object pattern creates more problems than it solves.
@samcarr7354
@samcarr7354 5 жыл бұрын
Sure, but it's a contrived example. A better one might be loggedInUser where the null class is AnonymousUser. Like she said, if null really is nothing just throw it away but anonymousUser is a concrete idea. There's no silver bullet, programming defensively is boring but this pattern is useful *sometimes*
RailsConf 2015 - Nothing is Something
35:53
Confreaks
Рет қаралды 74 М.
Polly want a message Sandi Metz
40:32
Sandi Metz
Рет қаралды 20 М.
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 25 МЛН
Do you have a friend like this? 🤣#shorts
00:12
dednahype
Рет қаралды 58 МЛН
Full Stack Fest 2015: Nothing is Something, by Sandi Metz
41:34
RailsConf 2016 - Succession by Katrina Owen
40:39
Confreaks
Рет қаралды 16 М.
RailsConf 2016 - Get a Whiff of This by Sandi Metz
38:15
Confreaks
Рет қаралды 48 М.
RUDY COLLINS DRUM SOLO w/ Dizzy Gillespie Band July 22, 1962
2:26
Albert Wolfe
Рет қаралды 32 М.
Rails Conf 2012 Keynote: Simplicity Matters by Rich Hickey
36:53
hafentalks #7 - Sandi Metz: "Go Ahead, Make a Mess"
40:01
InVision AG
Рет қаралды 12 М.
The Clean Code Talks - Don't Look For Things!
37:57
Google TechTalks
Рет қаралды 283 М.
RailsConf 2014 - All the Little Things by Sandi Metz
38:47
Confreaks
Рет қаралды 169 М.
Интереснее чем Apple Store - шоурум BigGeek
0:42
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 1,3 МЛН
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 11 МЛН