08:07 References 10:05 Poka Yoke 14:39 Abstractions are reusable 15:28 Don't write code (that you don't need) 16:38 === GOOD PRACTICES === 18:19 Make state immutable 20:43 Do not use setters 21:52 Optional dependencies 23:26 Avoid public methods 24:30 Avoid logic switch parameters 25:58 All state should be encapsulated 27:53 External access includes subclasses 28:58 Public method is a Transaction 30:59 Do not assume method idempotence 32:39 Assert 34:01 Enforce strict invariants 35:23 No mixed parameters; Value objects 36:55 No mixed return types 37:22 Avoid fluent interfaces 37:53 Make classes final by default 38:25 Avoid using traits 38:57 Disable what you not going to use: cloning, serialization 39:23 Unit testing: CRAP score 41:11 Tools
@edustreamimg2 жыл бұрын
38:25 Avoid using traits
@peyator3 жыл бұрын
But... I love Traits 😟
@ricardo.fontanelli5 жыл бұрын
Germany > sad examples hahahaha
@dymek4 жыл бұрын
"Anybody knows what defensive driving is? Defensive driving is what Audi drivers DON'T do."