veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

230
active users

#refactor

0 posts0 participants0 posts today
N-gated Hacker News<p>Ah, yes, the riveting tale of how a "noop" refactor—a coder's favorite oxymoron—somehow tanked <a href="https://mastodon.social/tags/performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>performance</span></a> by 30% ⏬. But fear not, brave souls; our hero embarks on a treacherous journey into the mystical land of <a href="https://mastodon.social/tags/Golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Golang</span></a> <a href="https://mastodon.social/tags/memory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>memory</span></a> allocations 🧙‍♂️, determined to unfurl the secrets of the heap while we all pretend to care. 🤷‍♂️<br><a href="https://www.dolthub.com/blog/2025-04-18-optimizing-heap-allocations/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">dolthub.com/blog/2025-04-18-op</span><span class="invisible">timizing-heap-allocations/</span></a> <a href="https://mastodon.social/tags/noop" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>noop</span></a> <a href="https://mastodon.social/tags/refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactor</span></a> <a href="https://mastodon.social/tags/allocation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>allocation</span></a> <a href="https://mastodon.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://mastodon.social/tags/humor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>humor</span></a> <a href="https://mastodon.social/tags/HackerNews" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HackerNews</span></a> <a href="https://mastodon.social/tags/ngated" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ngated</span></a></p>
fluffy 💜<p>Sockpuppet: Blog: Vinyl releases <a href="https://sockpuppet.band/blog/1031-Vinyl-releases" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sockpuppet.band/blog/1031-Viny</span><span class="invisible">l-releases</span></a> <a href="https://plush.city/tags/Distribution" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Distribution</span></a> <a href="https://plush.city/tags/Transitions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Transitions</span></a> <a href="https://plush.city/tags/Refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Refactor</span></a> <a href="https://plush.city/tags/Vinyl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vinyl</span></a> <a href="https://plush.city/tags/Blog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Blog</span></a></p>
stateful being<p>more ughhhh. been trying to <a href="https://mastodon.social/tags/refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactor</span></a> the code which renders all this stuff for *ages*</p><p>i want it as free-standing single-purpose functions, so i can test each one of them more easily</p><p>however, i keep running into my reluctance to write code of the sort:</p><p>```<br>fn foo &lt;'a, A, B, C, D&gt; (a: A, b: B, c: C, d: D) -&gt; impl Content + use&lt;'a, A, B, C, D&gt; where A: impl Content, B: impl (Fn()-&gt;A) + Send + Sync, C: impl Content, D: impl (Fn()-&gt;C)+Send+Sync { ...```</p>
Ted M. Young<p>TDD is a great _technique_ for guiding you and helping you discover unclear code or designs that could be improved, but you, the developer, have to not only pay attention, you also have to know how to <a href="https://sfba.social/tags/Refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Refactor</span></a> and know what better design is so you can refactor in that direction.</p>
stateful being<p>last 2-3 weeks, besides a bunch of mostly aimless traveling, were dedicated to this insane 70+-<a href="https://mastodon.social/tags/commit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>commit</span></a> <a href="https://mastodon.social/tags/refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactor</span></a> on the <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/tui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tui</span></a> <a href="https://mastodon.social/tags/daw" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>daw</span></a>, bouncing between 5 and 512 compile errors...</p><p>and i'm still not happy with the code quality... but let's say i've massaged the code around enough, and collected the not-yet-clarified bits in several places rather than all over the place...</p><p>my favorite language feature that neither <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> nor <a href="https://mastodon.social/tags/ecmascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ecmascript</span></a> has? <a href="https://mastodon.social/tags/mixins" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mixins</span></a>. there, i said it 😔</p>
Jan :rust: :ferris:<p>Many people say that <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> is very hard to <a href="https://floss.social/tags/prototype" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>prototype</span></a> with or to <a href="https://floss.social/tags/refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactor</span></a>. This couldn't be further from the truth! It is the exact opposite!</p><p>Let me share with you one of the most profound experiences I had with <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> on a casual sunday - a thread 🧵 </p><p>I'm currently rewriting my <a href="https://floss.social/tags/transpiler" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>transpiler</span></a> from <a href="https://floss.social/tags/nom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nom</span></a> to <a href="https://floss.social/tags/chumsky" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>chumsky</span></a> and until now everything has turned out great so far, until I've hit the following road block:<br>Implementing parsers by using <a href="https://floss.social/tags/parser" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>parser</span></a> functions that have indirect <a href="https://floss.social/tags/recursion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>recursion</span></a>.</p><p>1/11</p>
Willem Van den Ende - Writing<p><span class="h-card" translate="no"><a href="https://mastodon.social/@natpryce" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>natpryce</span></a></span> <span class="h-card" translate="no"><a href="https://mstdn.social/@westghost" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>westghost</span></a></span> Interesting. From the first workshop we learnt that people could uncover the clear design from the clear code. Equivalents to wikipedia discussions could be:<br>- commit comments (I experimented with a pre-commit hook that forced eg. '<a href="https://mastodon.social/tags/test" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>test</span></a>' '<a href="https://mastodon.social/tags/refactor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>refactor</span></a>' etc. prefixes. it shows a kind of trail in git log --oneline of the kind of work and gives a feel for the cadence)<br>- Architecture Decision Records in the code base / repository 1/2 <a href="https://mastodon.social/tags/ADR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ADR</span></a> <a href="https://mastodon.social/tags/stigmergy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>stigmergy</span></a></p>