Dan Piponi on Nostr: Groups are ubiquitous in computing. We "use" one every time we add integers. But the ...
Groups are ubiquitous in computing. We "use" one every time we add integers. But the fact that you're working in a group doesn't mean you have to reify groups as a type/class/type class/whatever in your programming language. Your knowledge of groups is something *you* can use to reason about your code, it doesn't have to be in the code.
Similarly you can reason about variable assignment in C using monads, without any need for a monad type in C.
I can't find it now but I saw a toot pondering why graphs are so ubiquitous in computing and yet some languages have poor support for graphs. I just wanted to add that what I said above is a possible answer in many scenarios. The fact that I have a bunch of objects, and some of those objects point to other objects, and that therefore I have vertices and edges, doesn't mean I need a general purpose graph API - even if I go as far as to call my collection of objects a graph. (I've had a colleague do exactly this and I really felt it was a waste of developer time and computing resources.)
Published at
2024-03-05 17:01:02Event JSON
{
"id": "effa186b5c1fa47ca20a4408ddd6cdd7413dd385f7cc7fbc70de0fabccc9df29",
"pubkey": "3422fcbc32f333fb2d3481b2e981258af8a0b571869cbfe93c42962410e232ef",
"created_at": 1709658062,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/dpiponi/statuses/112044150789725116",
"activitypub"
]
],
"content": "Groups are ubiquitous in computing. We \"use\" one every time we add integers. But the fact that you're working in a group doesn't mean you have to reify groups as a type/class/type class/whatever in your programming language. Your knowledge of groups is something *you* can use to reason about your code, it doesn't have to be in the code.\n\nSimilarly you can reason about variable assignment in C using monads, without any need for a monad type in C.\n\nI can't find it now but I saw a toot pondering why graphs are so ubiquitous in computing and yet some languages have poor support for graphs. I just wanted to add that what I said above is a possible answer in many scenarios. The fact that I have a bunch of objects, and some of those objects point to other objects, and that therefore I have vertices and edges, doesn't mean I need a general purpose graph API - even if I go as far as to call my collection of objects a graph. (I've had a colleague do exactly this and I really felt it was a waste of developer time and computing resources.)",
"sig": "a0faef764fc593df3e7a8f20a5a970d45e8e5f363667eb0c40a631a8bb6f38358d01174ec07787bf77dcce085f1900d0f11d63c76764b93faae9b290ad5554b0"
}