2026-06-19 16:07:28
Incompetent managers, take note...
#Programming
Incompetent managers, take note...
#Programming
I was today years old when I learned that Dockerfiles support heredoc-like syntax, and I am furious at every tutorial and presenter that has used a dozen lines with \ instead of that.
#Docker #Programming
Please, don't let yourself be in this video.
#Programming
The Zig journey continues, things get a bit cleaner and we're now parsing the primary partition entries in the MBR. Very nice...
#programming #zig
What's the best #programminglanguage for #codingagents?
https://danluu.com/pl-tokens/
Programmatic database resets
#PHP #Programming
Hearing people suggest that clanker AI programming bots should directly produce machine code rather than output human-readable languages like Python or Rust or C.
Which is of course a terrible idea.
These languages exist to make it easier write safe and efficient code, that's maintainable and editable and doesn't allow out of bounds memory pointing or leaks or whatever else.
Writing in machine language would be worse for the AI for the same reasons. It would make fore more unmaintainable, buggy, crashy, unmodular code.
The web is filled with training data written in those languages and pretty much no training data at all on how to write functions in 68000 or z80 or whatever.
You could build some training data by compiling all that high level language and training instead on the results of that.
But then you're just trying to get the buggy, lossy, neural network to learn to compile the high level code into machine language. Which it will do much worse than an actual compiler already written.
Pointless silly idea people.
#ai #programming
Вибирайте свою ЦА.
---
Pick your target audience wisely.
#IT #programming #kek #meme
Holy crap, I have to be missing something with respect to HashMap construction...I officially have all of the `try put` statements...lol. It does work though, and now the primary MBR partitions have appropriate partition type descriptions.
#zig #programming
Just wrote a fun little algorithm for iterating through all grid positions within X euclidean distance from a center, roughly in order of distance but also mostly ensuring each position yielded is at least diagonally adjacent to the previous. It's a fun problem to think about with lots of design tradeoffs and many valid solutions.
My solution requires that the origin be on the grid (I think?) and uses a bunch of caching instead of a bajillion distance checks, although I don't actually know what the memory/speed tradeoff is like or whether there are any gains at all (could be net losses, which I'm starting to wonder about more as I write this post). Thankfully I don't expect performance to be very critical here anyways, and doing the caching actually helped separate some logic in a useful way.
A fun little diversion from bigger stuff in the project and a reminder of some of the joys of programming design at a small scope. Feels kinda like mastering the local town's minigame while you're stuck on the main quest in an RPG.
#programming
More progress. I've got the entire MBR processing finished up with a ton of cleanup. Processing the extended partition entries is always fun, but after a fixing a few dumb mistakes everything is parsing out correctly. Even better: no memory leaks.
#zig #programming
The ternary operator is all fun and games until you end up with a branch coverage drop without a line number for the culprit (because one of the branches is covered).
#dev #programming #JavaScript…
Every time I brainstorm/daydream on how I'd design an ideal type system... I eventually end up with Rust.
It's kind of annoying, really.
#Rust #Programming #Types
Moar progress, will probably move this into the struct along with MBR reconstruction from the struct. This might actually end up doing a bit of `fdisk` stuff...
#zig #programming #mbr
#ProgrammingLanguages, targets, and platforms
I started as a #Java developer, but for some time now, I have broadened my horizons. Recently, I thought about how early languages were dedicated to a single target and platform, and now they are broadening their focus. In this post, I want to …
So, after some consideration I decided to break out the block device reading operations out into its own module. Also, the returned data is now in a struct with a `.deinit` method that will handle cleanups. It might be more complicated than necessary, but it's clean.
#zig #programming
SQLite for Everything
https://joecode.com/2026-08-19-sqlite3/
We have so many remarkable tools that we avoid using because something else has a shiner marketing budget. (Though SQLite's type system is pretty mediocre.)
I mean, this is fair and accurate for all languages mentioned...
#Programming #PHP #CPP #Javascript
So, after searching far and wide on the internet I have managed to open a file from a command-line argument and read 10 bytes from it using Zig v0.16. I was not expecting it to be quite this complicated.
#programming #zig
🧠 The "A" in #AI can also stand for "Apathy": more #developers are losing joy in their craft as AI-driven development reshapes the job — a reminder to managers that developer happiness pays off beyond the next quarter
Do the simplest thing that will work, except for when you need to do the most robust and forward-thinking thing that will work.
Determining when to do which, that's the rub.
#Programming
The perils of under-engineering:
#PHP #Programming
I like people I can vibe with. Not machines to vibe at.
#Programming #AI #LLM
Якщо type definition каже, що експорт є, а рантайм кидає в помилку
---
The requested module 'jsonwebtoken' does not provide an export named 'JsonWebTokenError'
---
...не довіряй definition.
Lesson learned.
Everybody lies. Навіть такі базові NPM-пакети, як jsonwebtoken.
#IT #programming
Sometimes, you just need a nice standard-sized unsigned integer of exactly 48 bits...also, I think I hate UUIDs.
#zig #programming
I hate dealing with file permissions. *HATE*.
#Programming #PHP
I have now reached the "how did this ever work?" stage of debugging.
#PHP #Programming
So, seems I have a new job lined up finally as I've signed the tentative offer letter. Also, still working with Zig and made progress with grabbing information from the Linux `sys` tree for sector/logical block sizes. Been a busy yet awesome day.
#zig #programming
Code that used to work but now doesn't is the bane of my existence. And yes, there are tests. That doesn't answer *why* this thing no longer works, despite no changes to the relevant files.
#Programming #Debugging
Hrmm, Zig is an interesting language...figured I'd kick the tires and figure out what's going on. So far it's been pretty nice.
#zig #programming
Code that was working and passing all tests, untouched for weeks, now failing tests on the exact same computer, exact same checkout, exact same commit.
This is the bane of my existence. And no, Grand Theft Autocomplete will not fix this. (It will probably make it worse.)
#Programming #AI
RE: #Programming
Good documentation is a gift you give yourself in a month.
#Programming #PHP
RE: #Programming
TFW you realize you already wrote a tool to solve the problem you're working on, but you totally forgot about it so used 50 workarounds that your tool exists to already solve for you...
#Programming #PHP
Do the simplest thing that will work, except for when you need to do the most robust and forward-thinking thing that will work.
Determining when to do which, that's the rub.
#Programming
Things I've learned today:
- Valgrind does not support AVX512 instructions. That was an adventure because I was writing purposefully bad code at the time...
- However, changed strategies and used `clang` with the `fsanitize=address,undefined` option which seems to work perfectly fine.
#clang