Picture

Name Marco von Ballmoos
Member since
Email [hidden]
Home page https://earthli.com/users/marco
Description

The (only) developer at earthli.com.

Contents

3217 Articles
111 Comments

3 days Ago

Links and Notes for April 12th, 2024

Published on in Notes

Below are links to articles, highlighted passages[1], and occasional annotations[2] for the week ending on the date in the title, enriching the raw data from Instapaper Likes and Twitter. They are intentionally succinct, else they’d be articles and probably end up in the gigantic backlog of unpublished drafts. YMMV.

[1] Emphases are added, unless otherwise noted.
[2] Annotations are only lightly edited and are largely contemporaneous.

Table of Contents

5 days Ago

A society without oppression is an illusion…

Published on in Quotes

“Around the mid-1800s humanity began to notice it doesn’t make sense for a small group of rich people to own everything and for everyone else to continually give that group labor, rent and expenses just to stay alive, and ever since then the media, the mainstream culture and the foreign policy of the ruling class have been intensely devoted to aggressively erasing this realization from humanity’s memory.”

6 days Ago

Avoid primary constructors in C# (for now)

Published on in Programming

tl;dr: avoid C# 12's primary constructors for classes except for very small, simple classes, in which case you should consider using a record instead.

The following video discusses the downsides of the current implementation of primary constructors:

The C# 12 Feature You Shouldn’t Use, Yet by Nick Chapsas (YouTube)

To sum up:

  • Primary constructors don’t have a readonly backing field; you can still assign to it within the type.
  • You can’t control the visibility of the generated property or backing field.
  • You can’t throw exceptions, except in a... [More]