Marco Pivetta «Extremely defensive PHP» | CODEiD (11.08.2018)

  Рет қаралды 2,932

CODEiD PHP Community

CODEiD PHP Community

Күн бұрын

Пікірлер: 5
@alieslapatsin5848
@alieslapatsin5848 2 жыл бұрын
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
@edustreamimg
@edustreamimg 2 жыл бұрын
38:25 Avoid using traits
@peyator
@peyator 3 жыл бұрын
But... I love Traits 😟
@ricardo.fontanelli
@ricardo.fontanelli 5 жыл бұрын
Germany > sad examples hahahaha
@dymek
@dymek 4 жыл бұрын
"Anybody knows what defensive driving is? Defensive driving is what Audi drivers DON'T do."
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Евгений Кузьмин «Contract testing» | CODEiD (08.12.2018)
1:02:44
Artem Antonenko «TDD is development without fear»  | CODEiD - PHP MeetUP #4
46:58
Михаил Захаров «GRASP» | CODEiD - PHP MeetUP #2
23:06
CODEiD PHP Community
Рет қаралды 2,3 М.