Larry Garfield on Nostr: "It's a DTO so it shouldn't have methods, just data" is an excellent way to end up ...
"It's a DTO so it shouldn't have methods, just data" is an excellent way to end up with procedural spaghetti with a `class` keyword floating around.
It certainly won't get you a good #OOP codebase, that's for sure.
Published at
2024-05-22 15:43:06Event JSON
{
"id": "bd092130fe9fb07e48224a990ee40fb890b416065c4485bb9210c387c14ab921",
"pubkey": "e8201addc43dd2260f2fa3afd98a4568bd3ef7256f7173f7d444f6770340d26a",
"created_at": 1716392586,
"kind": 1,
"tags": [
[
"t",
"oop"
],
[
"proxy",
"https://phpc.social/users/Crell/statuses/112485504554395005",
"activitypub"
]
],
"content": "\"It's a DTO so it shouldn't have methods, just data\" is an excellent way to end up with procedural spaghetti with a `class` keyword floating around.\n\nIt certainly won't get you a good #OOP codebase, that's for sure.",
"sig": "b70e1872d38121e58b297dc28588fd5bef454f61884495dda751002dd188a799dd96f59d743c1324dea9472496298d16eb4c19d959a2560fea5a6c9a9e132c8c"
}