957
you are viewing a single comment's thread
view the rest of the comments
[-] Saganaki@lemmy.zip 5 points 3 days ago

Occasionally I do that…but only because 500 of those lines are my comments explaining everything.

[-] MonkderVierte@lemmy.zip 4 points 3 days ago* (last edited 3 days ago)

Please don't explain that much, make your code easier to understand.

[-] Saganaki@lemmy.zip 3 points 3 days ago* (last edited 3 days ago)

I’m aware. Not always feasible. For example, had to add a custom video capture solution that captures the last 30 seconds of a process for crash handling purposes.

You most definitely need to do add that much comments explaining the mp4 box format along with the box “hierarchy” of what is being written. Add to that MFT (h264 encode) code…

Basically, if anything, the comments are for me for when I look back at that code.

[-] MonkderVierte@lemmy.zip 1 points 3 days ago

had to add a custom video capture solution that captures the last 30 seconds of a process for crash handling purposes.

Commanded from above? This smells like a noob idea.

[-] Saganaki@lemmy.zip 1 points 3 days ago

I have no idea what your response even means/is getting at.

[-] Jaycifer@piefed.social 1 points 3 days ago

This is my attempt to translate: You had to add a feature like that ? Must have been an order from your boss. That seems like a feature someone rather inexperienced and unknowledgeable would request.

[-] Saganaki@lemmy.zip 4 points 3 days ago
  1. Legal has issues with using existing libraries (including MIT). Definitely idiotic, but I can’t control that.
  2. Idea was mine.
  3. Subprocess that captures parent process active video with a rolling buffer for crash handling purposes is absolutely necessary when trying to reproduce issues in development (Gamedev editor). If you think associating the last 15s prior to a crash with a mindump isn’t helpful for debugging, I don’t know what to tell you.
this post was submitted on 11 Sep 2026
957 points (98.7% liked)

Programmer Humor

33218 readers
1306 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS