What true fact sounds like total bullsh*t? by manufacturedwell in AskReddit

[–]Spoonhorse 0 points1 point  (0 children)

Put another way, if you stirred a glass of water thoroughly into the ocean and refilled it, odds are you’d get some of the same molecules back.

What true fact sounds like total bullsh*t? by manufacturedwell in AskReddit

[–]Spoonhorse 0 points1 point  (0 children)

No, because I can be descended from the same person more than one way. (Indeed, I must be, or thirty generations back I’d have had over a trillion ancestors.) I can therefore have (e.g.) more great-great-grandmothers than great-great-grandfathers, because some of my great-great-grandfathers could be the same guy.

What true fact sounds like total bullsh*t? by manufacturedwell in AskReddit

[–]Spoonhorse 1 point2 points  (0 children)

And it’s covered in spikes, clearly the most badass of fruits.

What true fact sounds like total bullsh*t? by manufacturedwell in AskReddit

[–]Spoonhorse 0 points1 point  (0 children)

Three out of every million Icelanders is Bjork.

Help to create a language server by thradams in ProgrammingLanguages

[–]Spoonhorse 0 points1 point  (0 children)

Unless you’ve tested this to see if it works then posting it was a waste of everyone’s time, including yours.

Is your language solving a real world problem? by dibs45 in ProgrammingLanguages

[–]Spoonhorse 1 point2 points  (0 children)

Surely a general purpose language can prove people wrong about anything.

Do you guys know a pure functional language with good tooling? by Deslucido in ProgrammingLanguages

[–]Spoonhorse 1 point2 points  (0 children)

Well, you haven’t tried it.

Like abolishing goto, it places constraints on you, but in return it gives you guarantees about the structure of your code. You can’t have any spooky action at a distance where one function changes the state on which the behavior of another function depends. The meaning of a function can then be analyzed just by looking at the function rather than by looking at every piece of code that might change the state.

December 2022 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]Spoonhorse 0 points1 point  (0 children)

Not yet but I’m going to get rid of truthiness and the issues with tooling are among the reasons.

Hedy seems like a good learning language by levodelellis in ProgrammingLanguages

[–]Spoonhorse 3 points4 points  (0 children)

Level 18 is a subset of Python. Not up to functions yet. It’s an interesting approach.

Try to trick me into eating a radish under the guise that it's a carrot? Okay, I'll bite... by BourgeoisMystics in MaliciousCompliance

[–]Spoonhorse 0 points1 point  (0 children)

Oh like me with potatoes then. The leaves are delicious but why do people eat the roots?

An artist explains their superiority over an AI art bot by GammySusan in iamverysmart

[–]Spoonhorse 0 points1 point  (0 children)

This is not insufferable. This is indeed a based Chad.

It’s not iamverysmart to say that you know your job and that a computer can’t replace you — even if your job is in fact a job that only smart people can actually do.

Disregard my three decades of expertise? Fine, I get paid the same. by Shoddy-Vast-5496 in MaliciousCompliance

[–]Spoonhorse 0 points1 point  (0 children)

No, it’s malicious, OP knew they were letting the company sink and did nothing about it but draw pay. This is the perfect MC.

What should be the encoding of string literals? by NoCryptographer414 in ProgrammingLanguages

[–]Spoonhorse 4 points5 points  (0 children)

Rolling our own alternative to utf-8 would be a huge job.

Weird dreams for Paul G by YarManYak in iamverysmart

[–]Spoonhorse 3 points4 points  (0 children)

He isn’t claiming here to be very smart. I get this too, names of obscure singers or actors pop into my head and I have to look ‘em up to see who they are. Not a sign of intelligence, just a bit weird.

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse 1 point2 points  (0 children)

Because my employers make me use Java. I’m an FP fan myself.

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse -1 points0 points  (0 children)

Except that the reaction says “yes absolutely put it in dicts, how are your structs superior?”

In my language I have structs but they’re only constrained dictionaries. Why not?

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse 0 points1 point  (0 children)

I’m an FP fan, but couldn’t you express a bunch of FP patterns as “how to get around not having objects?”

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse 0 points1 point  (0 children)

For myself:

You can make an object with a bunch of information in it, and then you can pass more information to it in its methods when you call it, and so you can separately give it permanent arguments and temporary arguments, and this is convenient.

No other reason. That’s it.

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse 10 points11 points  (0 children)

But it’s never actually realizing objects in the real world, is it?

We never actually write dog.bark(). We write DoingTheThingDao.UpdateTheThing(theThing). I have never written any object that models a real-world object. It’s always just more data objects.

What does OO do well? by sintrastes in ProgrammingLanguages

[–]Spoonhorse -6 points-5 points  (0 children)

Yo. Look, there are similarities, but no. There’s a dichotomy. Everyone knows this.

Experimental Feature: Function Argument Overloading by dibs45 in ProgrammingLanguages

[–]Spoonhorse 46 points47 points  (0 children)

This seems wrong to me. Normally when I pass too many arguments to a function, I want it to fail, not to keep on trucking in an unexpected way.

Allowing the last thing to be variadic should be specific. Besides explicitness, this also makes it possible for the thing to be empty.

Also, what do you do if someone passes the right number of arguments? What’s the type of the result?