dmv.community is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small regional Mastodon instance for those in the DC, Maryland, and Virginia areas. Local news, commentary, and conversation.

Administered by:

Server stats:

160
active users

#refactor

0 posts0 participants0 posts today
gavcloud<p>I refactored the [[Bookcase]] in my wiki …&nbsp;it might be a good topic for a video tutorial someday. </p><p>Instead of loading in different stored lists as a way of filtering the content, I now have one list that is filtered dynamically that both list (text) views and cover (image) views adhere to, making for neat on-the-fly re-arranging of the same list, and much more optimized. </p><p><a href="https://gavart.ist/#Bookcase" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">gavart.ist/#Bookcase</span><span class="invisible"></span></a></p><p><a href="https://sonomu.club/tags/tiddlywiki" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tiddlywiki</span></a> <a href="https://sonomu.club/tags/wiki" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wiki</span></a> <a href="https://sonomu.club/tags/personalwiki" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>personalwiki</span></a> <a href="https://sonomu.club/tags/books" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>books</span></a> <a href="https://sonomu.club/tags/reading" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>reading</span></a> <a href="https://sonomu.club/tags/code" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>code</span></a> <a href="https://sonomu.club/tags/lists" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>lists</span></a> <a href="https://sonomu.club/tags/archivist" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>archivist</span></a> <a href="https://sonomu.club/tags/refactor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>refactor</span></a></p>
fluffy 💜<p>Sockpuppet: Blog: Vinyl releases <a href="https://sockpuppet.band/blog/1031-Vinyl-releases" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>Distribution</span></a> <a href="https://plush.city/tags/Transitions" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Transitions</span></a> <a href="https://plush.city/tags/Refactor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Refactor</span></a> <a href="https://plush.city/tags/Vinyl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Vinyl</span></a> <a href="https://plush.city/tags/Blog" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Blog</span></a></p>
Skoop (Stefan Koopmanschap)<p>This might be the most obvious of <a href="https://phpc.social/tags/linktuesday" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linktuesday</span></a> links in ages, but really, I've recently been helped a lot by <a href="https://phpc.social/tags/rector" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rector</span></a>. So yes, I'm sharing Rector today: <a href="https://getrector.com" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">getrector.com</span><span class="invisible"></span></a></p><p>If you have not worked with it before, it may seem intimidating, but take some time to get used to it, because it can really make your life a lot easier, especially when working with <a href="https://phpc.social/tags/legacy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>legacy</span></a> code</p><p><a href="https://phpc.social/tags/php" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>php</span></a> <a href="https://phpc.social/tags/refactor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>refactor</span></a></p>
Aaron Longchamps<p>Tonight's dev log update for Rack Root</p><p>I finally finished my refactor from sqlalchemy with sqlite over to SQLModel with PostgreSQL and refactored much of my code. I had a mixture of snake_cake and camelCase which has since been fixed to be all camelCase.</p><p>I adjusted many of my imports, classes, database tables, database foreign key relationships, and testing to fit the new design. I also had to adjust some of my tests because my IDs were off by one.</p><p>This database focused refactor also gave me all the structure and space I needed to build out the basic IPAM features. When a new network is added, all the associated IP records are created, and marked as 'Available'. If a gateway is set, that gets changed to 'Gateway' and when I implement DHCP ranges, that will be set to 'DHCP'.</p><p>I still have some things to do such as make sure the IP records cascade delete when a network is deleted, and fun stuff like that.</p><p>Now that the backend is (re)designed, I can get back to the front end side of things.</p><p>If you're curious to check out my code for this refactor, it's all up on my GitHub here: </p><p><a href="https://github.com/alongchamps/rack-root/commit/0fc99dfcf10bf3ab6a5dfdc348894fe7e6221acd" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/alongchamps/rack-ro</span><span class="invisible">ot/commit/0fc99dfcf10bf3ab6a5dfdc348894fe7e6221acd</span></a></p><p><a href="https://infosec.exchange/tags/devlog" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>devlog</span></a> <a href="https://infosec.exchange/tags/programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>programming</span></a> <a href="https://infosec.exchange/tags/rackroot" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rackroot</span></a> <a href="https://infosec.exchange/tags/homelab" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homelab</span></a> <a href="https://infosec.exchange/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> <a href="https://infosec.exchange/tags/fastapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fastapi</span></a> <a href="https://infosec.exchange/tags/sqlmodel" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlmodel</span></a> <a href="https://infosec.exchange/tags/pytest" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pytest</span></a> <a href="https://infosec.exchange/tags/refactor" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>refactor</span></a> <a href="https://infosec.exchange/tags/postgresql" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>postgresql</span></a> <a href="https://infosec.exchange/tags/backend" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>backend</span></a></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 noreferrer" target="_blank">#<span>Refactor</span></a> and know what better design is so you can refactor in that direction.</p>
Jan :rust: :ferris:<p>Many people say that <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> is very hard to <a href="https://floss.social/tags/prototype" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>prototype</span></a> with or to <a href="https://floss.social/tags/refactor" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" 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 noreferrer" target="_blank">#<span>transpiler</span></a> from <a href="https://floss.social/tags/nom" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nom</span></a> to <a href="https://floss.social/tags/chumsky" class="mention hashtag" rel="nofollow noopener noreferrer" 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 noreferrer" target="_blank">#<span>parser</span></a> functions that have indirect <a href="https://floss.social/tags/recursion" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>recursion</span></a>.</p><p>1/11</p>