helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

171
active users

#coding

27 posts20 participants0 posts today
Gabriel Ruiz Muñoz<p>Today, I welcome <a href="https://mastodon.social/tags/Tux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Tux</span></a>, the <a href="https://mastodon.social/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a> mascot! 🐧 And I hope it will be the last one for a long time... How dangerous I am with a 3D printer at home... 😅 He joins the family of tech world mascots that brighten my days in front of the keyboard! 🤩 <a href="https://mastodon.social/tags/Developers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Developers</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/Devs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Devs</span></a> <a href="https://mastodon.social/tags/Software" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Software</span></a></p>
Natasha Nox 🇺🇦🇵🇸<p>So what's the proper way?</p><p>Of course, you're simply truncating the object to a size of 0.</p><p>Intuitive design. :thisisfine: <br><a href="https://chaos.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://chaos.social/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a></p>
Natasha Nox 🇺🇦🇵🇸<p>One would assume to delete a binary stream in memory you saved with a class called "bytesIO", the appropriate method to call would be "bytesIO.flush".</p><p>There is a flush method.</p><p>No, it doesn't delete the stream.</p><p>In fact…<br><a href="https://chaos.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://chaos.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
.:\dGh/:.<p>One lesson learned from using the cache:</p><p>Never cache logic that has cached logic.<br>Always cache logic as a whole.</p><p>There may be extreme cases where `cache(X=Y+Z)` is slower than `cache(X=Y+cache(Z))`, but then good luck trying to flush the cache without side effects.</p><p><a href="https://mastodon.social/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a> <a href="https://mastodon.social/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> <a href="https://mastodon.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mastodon.social/tags/SoftwareDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SoftwareDevelopment</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/Code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Code</span></a></p>
Gytis Repečka<p>All developers I've met in my career in IT, who insisted <em>code is self-documenting</em> were exceptionally bad in documenting anything :blobcatreading:</p><p>While their code usually ran just fine, they could hardly ever explain how it worked or why it was structured that way to someone else, especially junior developers.</p><p>Comments and annotations exists for a reason.</p><p><a href="https://social.gyt.is/tags/developerlife" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developerlife</span></a> <a href="https://social.gyt.is/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://social.gyt.is/tags/documentation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>documentation</span></a></p>
El Duvelle<p>Good <a href="https://neuromatch.social/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> practices question for <a href="https://neuromatch.social/tags/Documentation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Documentation</span></a>:</p><p>Are there some general guidelines on what info to put in the comment at the top of each code file? Like date, author, basic description of what the code does? Maybe something about dependencies? Are there templates for this somewhere (e.g. for <a href="https://neuromatch.social/tags/Matlab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Matlab</span></a> or <a href="https://neuromatch.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> if that matters)?</p>
Kagan MacTane (he/him)<p>I have been banging my head against some TypeScript madness for far too long.</p><p>But I finally got it finished up and checked in.</p><p><a href="https://wandering.shop/tags/work" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>work</span></a> <a href="https://wandering.shop/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://wandering.shop/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://wandering.shop/tags/weekend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>weekend</span></a> <a href="https://wandering.shop/tags/TheWeekend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TheWeekend</span></a> <a href="https://wandering.shop/tags/TheWeeknd" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TheWeeknd</span></a> <a href="https://wandering.shop/tags/SNL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SNL</span></a> <a href="https://wandering.shop/tags/DanielCraig" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>DanielCraig</span></a> <a href="https://wandering.shop/tags/meme" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>meme</span></a></p>
Nicolas Fränkel 🇺🇦🇬🇪<p><a href="https://mastodon.top/tags/Gemini" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Gemini</span></a> 2.5 Pro vs. <a href="https://mastodon.top/tags/Claude" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Claude</span></a> 3.7 Sonnet: <a href="https://mastodon.top/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> Comparison</p><p><a href="https://composio.dev/blog/gemini-2-5-pro-vs-claude-3-7-sonnet-coding-comparison/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">composio.dev/blog/gemini-2-5-p</span><span class="invisible">ro-vs-claude-3-7-sonnet-coding-comparison/</span></a></p>
Reilly Spitzfaden (they/them)<p>Liked | In defense of unpolished personal websites </p><p>⭐ <a href="https://ohhelloana.blog/in-defense-of-unpolished-websites/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ohhelloana.blog/in-defense-of-</span><span class="invisible">unpolished-websites/</span></a><br>🔗 <a href="https://reillyspitzfaden.com/interactions/2025/04/liked-in-defense-of-unpolished-personal-websites/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">reillyspitzfaden.com/interacti</span><span class="invisible">ons/2025/04/liked-in-defense-of-unpolished-personal-websites/</span></a></p><p><a href="https://hachyderm.io/tags/IndieWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndieWeb</span></a> <a href="https://hachyderm.io/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://hachyderm.io/tags/SmallWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SmallWeb</span></a> <a href="https://hachyderm.io/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://hachyderm.io/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a> <a href="https://hachyderm.io/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> <a href="https://hachyderm.io/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a></p>
Andy Balaam<p>Mini-rust in Rust 023: Refactor to share structure of the syntax tree</p><p><a href="https://video.infosec.exchange/w/2sCUWSH4x11thFSnkkHYYV" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">video.infosec.exchange/w/2sCUW</span><span class="invisible">SH4x11thFSnkkHYYV</span></a></p><p>I felt a bit uncomfortable after the last video. The joy of coding for fun is that I can stop and make things better, guilt-free!</p><p><a href="https://mastodon.social/tags/video" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>video</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a></p>
Leanpub<p>Effectively Learning to Code: A Brain-Based Approach <a href="https://leanpub.com/effectively-learning-to-code" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">leanpub.com/effectively-learni</span><span class="invisible">ng-to-code</span></a> <a href="https://mastodon.social/tags/books" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>books</span></a> <a href="https://mastodon.social/tags/ebooks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ebooks</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/coder" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coder</span></a></p>
Felix Palmen :freebsd: :c64:<p>First "production test" successful 💪 ... after band-aid "deployment" (IOW, scp binaries to the prod jail).</p><p><a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swad</span></a> integrates with <a href="https://mastodon.bsd.cafe/tags/nginx" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nginx</span></a> exactly as I planned it. And <a href="https://mastodon.bsd.cafe/tags/PAM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PAM</span></a> authentication using a child process running as root also just works (while the main process dropped privileges). 🥳 </p><p>So, I guess I can say goodbye to <a href="https://mastodon.bsd.cafe/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> <a href="https://mastodon.bsd.cafe/tags/bots" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bots</span></a> hammering my poor DSL connection just to download poudriere build logs.</p><p>Still a lot to do for <a href="https://mastodon.bsd.cafe/tags/swad" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>swad</span></a>: Make it nicer. So many ideas. Best start would probably be to implement more credentials checking modules besides PAM.</p><p><a href="https://mastodon.bsd.cafe/tags/C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://mastodon.bsd.cafe/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
Natasha Nox 🇺🇦🇵🇸<p>*work on FOSS project PR*<br>"Oh. Oh… they do it this way?"<br>*Delete 90% of the code you worked on*</p><p>Is this normal? ;__;<br><a href="https://chaos.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
Sebastian Kübeck<p>Interview with Vibe Coder in 2025 </p><p><a href="https://www.youtube.com/watch?v=JeNS1ZNHQs8" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=JeNS1ZNHQs</span><span class="invisible">8</span></a></p><p><a href="https://graz.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://graz.social/tags/vibecoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>vibecoding</span></a></p>
Felix Palmen :freebsd: :c64:<p>Once you have your happy path working, it's time to deal with all the "unhappy stuff" (aka proper error handling) to reach production quality ... 🙈 </p><p><a href="https://github.com/Zirias/swad/commit/a0417bbc1db4cb5ca9f99534d04d1723492107f9" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Zirias/swad/commit/</span><span class="invisible">a0417bbc1db4cb5ca9f99534d04d1723492107f9</span></a></p><p><a href="https://mastodon.bsd.cafe/tags/C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://mastodon.bsd.cafe/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
Fake Scrum Stats Memes & Humor<p>That last one is just to get your heart rate up.</p><p><a href="https://techhub.social/tags/scrum" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scrum</span></a> <a href="https://techhub.social/tags/scrumteam" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>scrumteam</span></a> <a href="https://techhub.social/tags/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://techhub.social/tags/developer" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>developer</span></a> <a href="https://techhub.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> <a href="https://techhub.social/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://techhub.social/tags/productionissue" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>productionissue</span></a> <a href="https://techhub.social/tags/Meme" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Meme</span></a> <a href="https://techhub.social/tags/memes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>memes</span></a> <a href="https://techhub.social/tags/Humor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Humor</span></a></p>
Felix Palmen :freebsd: :c64:<p>This, btw, was yet another reminder of the horrible can of worms <a href="https://mastodon.bsd.cafe/tags/stdio" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>stdio</span></a>'s <a href="https://mastodon.bsd.cafe/tags/buffering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>buffering</span></a> is.</p><p>I created a little tool running as a child process to do the *actual* <a href="https://mastodon.bsd.cafe/tags/PAM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PAM</span></a> authentication, so it will be possible to have this run as root while the real service drops all privileges. This little tool uses a simple line-based protocol for communication on stdin/stdout. It worked well when testing directly on the terminal.</p><p>On the first real test though, my service just went hanging. 🙄 I suspected a deadlock caused by pthread mutexes. Wasted quite some time looking into that. Then I finally realized communication over the pipes was stalled.</p><p>Ok, just set buffering mode to "line buffering" after fdopen'ing the <a href="https://mastodon.bsd.cafe/tags/pipe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pipe</span></a>. Turned out that didn't help either. I *assume* that even in the child process, the stdio streams automatically created on the pipes were somehow fully buffered. But at that point, I was really fed up with trial and error and rewrote the whole mess to do I/O using plain <a href="https://mastodon.bsd.cafe/tags/POSIX" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>POSIX</span></a> APIs (read, write), sidestepping any buffering. Worked like a charm. 🙈 </p><p><a href="https://mastodon.bsd.cafe/tags/C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://mastodon.bsd.cafe/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
Natasha Nox 🇺🇦🇵🇸<p>Had a really good laugh with <span class="h-card" translate="no"><a href="https://moonserver.yorha.nexus/@hannah" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>hannah</span></a></span> just now trying our hands at the clearly way superior &amp; production ready act of <a href="https://chaos.social/tags/VibeCoding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VibeCoding</span></a> with <a href="https://chaos.social/tags/Codestral" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Codestral</span></a>. </p><p>We told it to build a calculator in <a href="https://chaos.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a>. After telling it to use an AST it looked promising, even adhering to order of operation (already better than MS Calc!).</p><p>Then we told it to add support for braces and it utterly and completely shat itself. Like, Mexican diet explosive diarrhea-style. 😂</p><p>Now everything is an invalid expression. <a href="https://chaos.social/tags/AI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>AI</span></a> 👍 <br><a href="https://chaos.social/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a></p>
Reilly Spitzfaden (they/them)<p>RSVP | Front End Study Hall 025</p><p>🗓️ <a href="https://events.indieweb.org/2025/04/front-end-study-hall-025-WKu1yLDGBbMm" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">events.indieweb.org/2025/04/fr</span><span class="invisible">ont-end-study-hall-025-WKu1yLDGBbMm</span></a> <br>🔗 <a href="https://reillyspitzfaden.com/interactions/2025/04/rsvp-front-end-study-hall-025/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">reillyspitzfaden.com/interacti</span><span class="invisible">ons/2025/04/rsvp-front-end-study-hall-025/</span></a> </p><p><a href="https://hachyderm.io/tags/IndieWeb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndieWeb</span></a> <a href="https://hachyderm.io/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://hachyderm.io/tags/Frontend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Frontend</span></a> <a href="https://hachyderm.io/tags/Coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Coding</span></a> <a href="https://hachyderm.io/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a> <a href="https://hachyderm.io/tags/HTML" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>HTML</span></a> <a href="https://hachyderm.io/tags/CSS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CSS</span></a></p>
Felix Palmen :freebsd: :c64:<p>Result of today's <a href="https://mastodon.bsd.cafe/tags/C" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>C</span></a> <a href="https://mastodon.bsd.cafe/tags/coding" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coding</span></a> session: I can now authenticate with <a href="https://mastodon.bsd.cafe/tags/PAM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PAM</span></a> 🥳 </p><p><a href="https://github.com/Zirias/swad/commit/8983ae30955a407c4732c6e3e3a4aeba6db77a93" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Zirias/swad/commit/</span><span class="invisible">8983ae30955a407c4732c6e3e3a4aeba6db77a93</span></a></p><p>This will soon be "production-ready" at least for me 😎</p>