Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31e1923

Browse files
committed
Moar fixes, thanks @greg0ire
1 parent 86dc7f4 commit 31e1923

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/en/tutorials/getting-started.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ The most popular method is to create two kinds of methods to
244244
**read** (getter) and **update** (setter) the object's properties.
245245

246246
Some fields such as ``$id`` are unlikely to be changed, so it's ok to
247-
not provide any setter for thme.
247+
omit them.
248248

249249
.. note::
250250

@@ -261,8 +261,8 @@ It is a common convention which makes it possible to expose each field
261261
of your entity to external services, while allowing you to keep type
262262
safety in place.
263263

264-
Such approach is good choice for RAD (rapid application development),
265-
but may bring problems later down the road, because providing such
264+
Such approach is a good choice for RAD (rapid application development),
265+
but may bring problems later down the road, because providing such an
266266
easy way to modify any field in your entity means the entity itself cannot
267267
ensure it's in valid state. Having entity in invalid state is dangerous,
268268
because it's one step away from being implicitly saved in database, thereby
@@ -272,7 +272,7 @@ leading to corrupted or inconsistent data in your storage.
272272

273273
This method, although very common, is inappropriate for Domain Driven
274274
Design (DDD), because in such design, methods should be named according
275-
to actual business operation and entity should be valid anytime.
275+
to actual business operations, and entities should be valid anytime.
276276

277277
Here is an example of a simple **anemic model**:
278278

0 commit comments

Comments
 (0)