
Built https://xitter.cf/t.co/NlBuigijUW and the engine behind it (0/92 vs Stockfish, 27/128 vs Lc0). C#/.NET systems engineer. Militant atheist. Epistemic hygiene.
Vienna, Austria
Joined August 2025
- Tweets1.5K
- Following86
- Followers112
- Likes501
EF Core trap. FromSqlRaw($"SELECT * FROM Users WHERE Name = {name}") is SQL injection. Change one word to FromSql and the same string becomes safe, because it takes a FormattableString and sends every {hole} as a parameter.
1
45
One NULL in the subquery and WHERE id NOT IN (SELECT user_id FROM orders) returns zero rows. Not fewer rows. Zero. x NOT IN (1, NULL) is never true, only false or unknown. Use NOT EXISTS instead.
32
EF Core ExecuteUpdateAsync never touches the change tracker. Entities already loaded in the same DbContext keep old values, and FindAsync returns that stale instance without a query. Run bulk updates in a fresh context or call ChangeTracker.Clear() after.
26
INSERT ... ON CONFLICT DO NOTHING calls nextval before it detects the conflict. Re-inserting the same 1,000 rows twice adds zero rows and still moves the identity by 2,000. A rerunning sync job can exhaust an int id long before the table holds 2.1 billion rows.
25
Two C# records holding identical arrays aren't equal. The generated Equals compares the array by reference, so on .NET 10 Distinct() keeps both and a HashSet stores both. Write Equals and GetHashCode yourself if contents should count.
Black to move and mate in 4. Abdl Alrahman Alajati played every move of it in round two of the World Junior Rapid.
1
252
Uri.UnescapeDataString leaves "+" alone, and form-encoded data writes spaces as "+". The .NET docs example unescapes first and replaces "+" afterwards, which also turns an encoded %2B into a space. Chessdox swaps "+" for spaces first, then unescapes.
85
White mates in three here. Elham Amar had this against Gunter Sandner in round two of the Bavarian Open.
1
142
My C# chess move generator has to match the standard perft suite to depth 6, about 4.6 billion leaf positions. Then a second generator that shares no code with it gets diffed against it on ten thousand positions from random games.
83
Hikaru's one Day 3 win was worth 3 and put him on 11, a point behind Pragg's 12. A win plus a loss now beats two solid draws, 3 to 2. Does Pragg keep drawing or start pressing?
The first game between Praggnanandhaa and Sindarov ends in a solid draw to kick off the final day of Clutch Chess Champions Showdown! Pragg keeps the sole lead with 12 points, Hikaru is right behind with 11 points after beating Caruana.
1
89
Answer: 28...Bxf2! 29.g3 fxg3+ 30.Kg2 Bc6#
Full game, replayable move by move:
chessdox.com/games/expert-re…
26
Black to move. Mate in 3.
From a real game played on chessdox.com. Answer + full game in a reply in 2 hours.
1
42
The link previews on my chess site are PNGs my own code draws:
- an SVG path parser (M L H V Q C Z)
- a scanline rasterizer: 4 sub-scanlines, non-zero winding
- a TrueType reader, composite glyphs included (for accents)
- PNG chunks + CRC32
Only DEFLATE comes from .NET.
39
I wrote a GIF encoder for chess replays in C#. No library.
Trick: after frame 1, each frame stores only the rectangle that changed.
A real 20-move game: 41 frames, 480×480, 235 KB. Median frame: 4.9 KB vs 16.6 KB for the full first one.
LZW written by hand.
32
A live chess game on my server costs about 5 KB of RAM.
After 40 half-moves: 5,097 B. After 150: 5,092 B. Flat.
The trick: no move history in memory. Only the last 151 position keys; the 75-move rule means repetition can't reach further back.
The rest lives in SQLite.
31
It's the computer opponent on chessdox.com: 4 levels, and Expert searches to depth 9 / 5M nodes / 3 s. Stockfish went 92–0 (1s+10ms bullet). Your turn.
3







