Larry Garfield on Nostr: IMO it depends on where that class name is used. If the referenced library is ...
IMO it depends on where that class name is used. If the referenced library is missing, what happens? Does the code crash? Then it's coupled. Does it misbehave? Then it's coupled. Does it keep working smoothly, minus some functionality? That's totally fine, and I wouldn't call it coupled.
Eg, using an attribute from a library that's not installed doesn't break anything unless you do something dumb, so that's not coupling. It's optional.
Published at
2024-04-10 15:11:56Event JSON
{
"id": "559c27c013a61d2d5ab380fb53cdc923fdfa8c9f0620d3d19e5a568bc48d4f84",
"pubkey": "ec16b867a39b80c9ae63f9caf6ff80343da4f6cf5c84ef220d3ad26c815c7d8a",
"created_at": 1712761916,
"kind": 1,
"tags": [
[
"e",
"cdbb45c64c735142fa63e4de2bc4d1f5125e74433d8860666a8d42c5b48d3d25",
"",
"root"
],
[
"p",
"1021c34f5340dbb740c0814437248fd3859b28145884ed2eeca94f93af3f88f7"
],
[
"proxy",
"https://phpc.social/users/Crell/statuses/112247564983064207",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://phpc.social/users/Crell/statuses/112247564983064207",
"pink.momostr"
]
],
"content": "IMO it depends on where that class name is used. If the referenced library is missing, what happens? Does the code crash? Then it's coupled. Does it misbehave? Then it's coupled. Does it keep working smoothly, minus some functionality? That's totally fine, and I wouldn't call it coupled.\n\nEg, using an attribute from a library that's not installed doesn't break anything unless you do something dumb, so that's not coupling. It's optional.",
"sig": "a5cd2ecf91f1be66174cf626164cf858d635dcf42a747f5e9930b8685c77ef827f06718b99ac144af3c0af237ddef6262343d6236a097241a0c549d22f2eac79"
}