Skip to content
Permalink
Browse files

#406 published

  • Loading branch information
yegor256 committed Nov 20, 2019
1 parent da2c612 commit a9b40b166422e64080d0a83b19d2210f7ea4ec4c
@@ -1,6 +1,6 @@
---
layout: post
title: "books.del(42) or books.book(42).del()?"
title: "How Much Cohesion Is Enough?"
date: 2019-11-19
place: Moscow, Russia
tags: oop
@@ -14,11 +14,12 @@ keywords:
- separation of concerns
- oop layers
- oop design
image: /images/2019/11/
image: /images/2019/11/irreversible.jpg
jb_picture:
caption: ...
caption: Irréversible (2002) by Gaspar Noé
---

Which one is better: `books.del(42)` or `books.book(42).del()`?
I do both and I rarely can tell which one is better. The first option
is shorter, while the second one is more object-oriented. The first
option is more difficult to extend, while the second one is more
Binary file not shown.

0 comments on commit a9b40b1

Please sign in to comment.
You can’t perform that action at this time.