Readit News logoReadit News
dandersch commented on That boolean should probably be something else   ntietz.com/blog/that-bool... · Posted by u/vidyesh
lelanthran · 4 days ago
It's a failing of many type systems of older languages (except Pascal).

The best way in many languages for flags is using unsigned integers that are botwise-ORed together.

In pseudocode:

    Object someObject;
    foo (someObject, Object.Flag1 | Object.Flag2 | Object.Flag3);
Whatever language you are using, it probably has some namespaced way to define flags as `(1 << 0)` and `(1 << 1)` etc.

dandersch · 4 days ago
It's always crazy to see languages like C being able to beat high-level languages at some ergonomics (which is usually their #1 point of pride) just because C has bitfields and they often don't.
dandersch commented on The issue of anti-cheat on Linux (2024)   tulach.cc/the-issue-of-an... · Posted by u/todsacerdoti
wakawaka28 · 10 days ago
Why not?
dandersch · 10 days ago
It can work on a vm, but for Valorant specifically it seems that detecting a vm triggers the anticheat and gets you banned. I believe this is the case for most anticheats except VAC. You can try to evade the detection, but then you just enter the same cat & mouse game as a cheater. Whether allowing/disallowing VMs actually cuts down on cheaters? I don't know.
dandersch commented on Game publishers respond to Stop Killing Games claim it curtails developer choice   pcgamer.com/gaming-indust... · Posted by u/riffraff
dandersch · 2 months ago
Having followed this initiative quite extensively from the beginning, the most baffling thing has been the underwhelming support from developers themselves, both from studios and individual devs.

You would think the very idea of years of your work being rendered unplayable in an instant would be enough incentive to signal boost any effort against this industry practice.

Instead, developer discourse has revolved around just how hard it would be to do what this is petition is asking for. You are an engineer for crying out loud. If you solved a problem but a new constraint arrives in the form of a law, you figure out how to solve the problem under the new constraint. Just because something is hard, doesn't mean it's not worth doing.

It's almost like flexing your skills and signalling your elite knowledge is more important to people than simply defending what's right.

dandersch commented on Game publishers respond to Stop Killing Games claim it curtails developer choice   pcgamer.com/gaming-indust... · Posted by u/riffraff
msgodel · 2 months ago
It's such a bizarre counter argument. The whole point of the movement is that developers are choosing to harm the medium and should stop.
dandersch · 2 months ago
It's the publishers forcing their hand, to be fair. I don't think any developer who worked for years on a game is thrilled about it not being playable in the future.
dandersch commented on Stop Killing Games   jeffgeerling.com/blog/202... · Posted by u/gond
ozlikethewizard · 2 months ago
If you scroll to the bottom of the petition it's already been considered, the consideration was "no".
dandersch · 2 months ago
The current state is at the top. It says "Waiting for 3 days for a debate date".
dandersch commented on Stop Killing Games   jeffgeerling.com/blog/202... · Posted by u/gond
ozlikethewizard · 2 months ago
UK Government already denied the UK petition :(
dandersch · 2 months ago
The original petition died because Parliament dissolved. This is the new one that the UK Parliament has to consider for a debate as of right now.
dandersch commented on Reading RSS content is a skilled activity   doliver.org/articles/rss-... · Posted by u/d0liver
AstroBen · 4 months ago
I adore RSS. Some gems I've found:

https://hnrss.org/

https://rsshub.app/twitter/user/{username} for twitter accounts

Append .rss to any subreddit URL you want updates on

YouTube also has an RSS feed for channels

dandersch · 4 months ago
>rsshub

This has been one of the key programs for me to move 90% of my "timeline" into an rss reader.

If you self-host it, you can also pass it authentication tokens to RSSify things like:

- your twitter timeline

- github notifications, issues, commits

- discord messages

- youtube subscriptions

- spotify/twitch/steam/etc.

dandersch commented on Detecting if an expression is constant in C   nrk.neocities.org/article... · Posted by u/ingve
dandersch · 4 months ago
>And I'd rather keep the library warning free instead of telling the users to switch warnings off.

Why not push/pop warnings to ignore in the library?

  _Pragma("GCC diagnostic push")
  _Pragma("GCC diagnostic ignored \"-Wshadow\"")
  int a = 1;
  {
      int a = 2;
  }
  _Pragma("GCC diagnostic pop")

dandersch commented on Jellyfin as a Spotify alternative   coppolaemilio.com/entries... · Posted by u/coppolaemilio
udev4096 · 4 months ago
Sorry, I meant listenbrainz
dandersch · 4 months ago
Thanks, I'm checking it out right now and it looks really promising. It supports scrobbling (which apparently just means syncing your listening data) from various music players like navidrome & jellyfin.
dandersch commented on Jellyfin as a Spotify alternative   coppolaemilio.com/entries... · Posted by u/coppolaemilio
udev4096 · 5 months ago
Anyone concerned about recommendations might wanna look at musicbrainz. You can write a script for fetching the recommendations based on your current library every week
dandersch · 5 months ago
Can you elaborate? I'm not aware of musicbrainz having any recommendations/discovery features.

u/dandersch

KarmaCake day15March 20, 2025View Original