Very nice talk. For the applications versus libraries discussion, one thing I felt you all were reaching at is that apps are use-case oriented whereas libraries are all-case oriented. That’s where the beauty of facades come in. Your app, using a GitHub library, might have the use case of commit_and_push(msg, branch) which wraps multiple library methods.
Also, I love the SWS.new_sandwich over SWS::Sandwich. Good example of how the Law of Demeter doesn’t necessarily apply to methods.
Very nice talk. For the applications versus libraries discussion, one thing I felt you all were reaching at is that apps are use-case oriented whereas libraries are all-case oriented. That’s where the beauty of facades come in. Your app, using a GitHub library, might have the use case of
commit_and_push(msg, branch)
which wraps multiple library methods.Also, I love the SWS.new_sandwich over SWS::Sandwich. Good example of how the Law of Demeter doesn’t necessarily apply to methods.
[…] this out of a talk by Avdi. This technique is described at 16:00 in the […]
[…] this out of a talk by Avdi. This technique is described at 16:00 in the […]