soc

joined 2 years ago
[–] soc@programming.dev 1 points 1 week ago* (last edited 1 week ago) (2 children)

Many languages' Option and Result types suffer from an organically-grown and therefore inconsistently named set of functions that operate on them.

We can do better! The article demonstrates how a full set of useful methods with predictable names can be derived from few, simple rules.

[–] soc@programming.dev 13 points 1 week ago* (last edited 1 week ago) (1 children)

Absolutely delusional.

code that is readable, auditable, and easy to port

Yeah C is the language that comes to everybody's mind reading that. /s

C's simplicity ...

Is that simplicity currently in the room with us?

... and widespread adoption make it the best choice for this philosophy.

Ah, the asbestos argument.


If people want to run the latest kernels on hardware that isn't maintained anymore, they need to toughen up and send patches ...

... or they stick to an old kernel for their unmaintained hardware.

Both is fine to me, but that entitled Boomer attitude of "nobody should have nice things, because that would challenge status quo" needs to die.

[–] soc@programming.dev 16 points 2 weeks ago

Studying at a university is not a fancy job training.

Do whatever pays your bills, and learn what interests you. Sometimes the latter will help with the former, but it would be silly to depend on that.

[–] soc@programming.dev 7 points 2 weeks ago* (last edited 2 weeks ago) (6 children)

“apparently it’s a better safer C++, but I’m not going to switch because I can technically do all that stuff in C++”

The main difference between C++ and D was that (for most of the time in the past) D required a garbage collector.

So, D was a language with similar Algol-style syntax targeting a completely different niche from C++.

Trying to correct your quote, it should read something like "I’m not going to switch because I can't technically do all that stuff in D that I'm doing in C++" for it to make any sense.

[–] soc@programming.dev 1 points 3 weeks ago

I think the article suffers a bit from not being up to date in regard to the work Java has done with virtual threads.

There quite a few assumptions being made in the article that would not have been questioned a few years ago, but now these assumptions feel quite unfounded and all the conclusions based on them stand on shaky ground.

[–] soc@programming.dev 1 points 4 weeks ago (1 children)

Some functions also don’t have any parentheses, like field access or infix operators.

You call things the way they were defined. Problem solved.

I'm kinda confused, because this is the second time now where your attempt at making a counter argument is actively supporting my point. Is this intentional at your part?

We could follow this line of thinking further ...

No we don't. If your point relies on Turing-tarpitting the whole discussion ... then you have no point.

[–] soc@programming.dev 1 points 4 weeks ago (1 children)

Thankfully, registration fees do not differ by length of the domain. (As it should be.)

It cost a larger 3 digit amount of currency to buy it, though. (Which was fine for me.)

[–] soc@programming.dev 7 points 4 weeks ago

Packages are usually provided by distribution packagers, not by the developers of the code itself.

[–] soc@programming.dev 1 points 4 weeks ago (3 children)

This submission reminded me that I also had some articles on this topic that people may find interesting.

[–] soc@programming.dev 1 points 4 weeks ago (3 children)

That's still a workaround to try and keep a completely artificial distinction alive.

Even if I didn't need [] for types, I still wouldn't want "some functions use (), some functions use []" as a language rule.

[–] soc@programming.dev 2 points 1 month ago (1 children)

Oh, good idea ... any preference on the first? :-)

view more: ‹ prev next ›