Show more

Three killed, at least 13 injured in russia's overnight missile strike on Odesa 

@evan oh no! I only just realised that when you say "Noun" you mean that types are sort of like nouns and terms of the types are sort of like names, whereas functions over types are sort of like verbs and interfaces are sort of like "verbers"!

I thought that we're taking about language processing related domain!

If we aren't, then I'm heavily in "it depends" camp. There is , so while picking tools to encode your problem domain, you have to pick the closeness of extending "nouns" with more "verbs" or allowing a "verb" to work on more "nouns" based on the problem domain. There's no right answer and no reasonable way to prefer one over the other.

But from the standpoint of ease of understanding, facilitated the most by , I would pick option 1 because it doesn't rely on traits, is explicit and separates "algorithms" (verb) and "data structures" (Noun) so that people can understand them independently.

@icon_of_computational_sin does also choke? I can ask my company's GHC department what do they use to edit GHC.

Programmers only!

#EvanPoll #poll

Which of these three software designs is best?

----

class Noun {
/* ... */
}

function verb(noun) {
/* ... */
}

let noun = new Noun()

let result = verb(noun)

----

class Noun {
/* ... */
verb(noun) {
/* ... */
}
}

let noun = new Noun()

let result = noun.verb()

----

class Noun {
/* ... */
}

class Verber {
/* ... */
verb(noun) {
/* ... */
}
}

let noun = new Noun()
let verber = new Verber()

let result = verber.verb(noun)

@evan verber. part can be made implicit with trait / tyoeclass resolution, then it's strictly better than option 1, which is better in this case than option 2 because the notion of making verbs out of other language classes isn't limited to nouns and its subtypes!

@ChrisO_wiki there is no DNR, there's only "so-called DNR". Donetsk Oblast is part of a sovereign territory of Ukraine.

If you can, please donate to the orgs currently urgently evacuating people in the affected parts of the 🇺🇦 Kherson region:

helpingtoleave.org/en#donate

vostok-sos.org/en/i-wanna-help

Don't get me wrong, she posts good stuff there... It's just that the instance is ran by a russkie chauvinist from "ne vsyo tak odnoznachno" camp.

Context: social.doma.dev/@jonn/10958228

Show thread

Hmm, TIL that my personal hero @bookwar has an account on mastodon.ml.

I don't know how to consolidate this either.

Berlusconi died! Huge congratulations to Italian people! ❤

I have no idea how to consolidate me wanting to see Facebook (past 2015) and Twitter (past 2022) in jail with the fact that all cops are bastards.

@haskman Lemmy is written and ran by tankies. The other one is OK. See fediversetips.

Show more
Doma Social

Mastodon server of https://doma.dev.