Thursday, February 22, 2024

Show HN: Modguard – a lightweight Python tool for enforcing modular design https://ift.tt/Nxc6rMR

Show HN: Modguard – a lightweight Python tool for enforcing modular design Hi HN! We are excited to show you modguard - a Python tool we built to enforce a modular, decoupled package architecture. We built modguard to solve a recurring problem that we've experienced on software teams - code sprawl. Over time, cross-module imports would tightly couple together what used to be independent domains, and eventually create "balls of mud". This made it harder to test, and harder to make changes. Mis-use of modules which were intended to be private would then degrade performance and even cause security incidents. This would happen for a variety of reasons: - Junior developers had a limited understanding of the existing architecture and/or frameworks being used - It's significantly easier to add to an existing service than to create a new one - Python doesn't stop you from importing any code living anywhere - When changes are in a 'gray area', social desire to not block others would let changes through code review - External deadlines and management pressure would result in "doing it properly" getting punted and/or never done Attempts to fix this problem always came up short. Inevitably, standards guides would be written, and stricter attempts would be made to enforce those guides. Teams would lead developer education efforts, and restrict code review. These approaches each had their own flaws, and didn't scale. The solution is to explicitly define a module's boundary and public interface in code, and enforce those domain boundaries through CI. This means that introducing a new cross-module dependency required explicitly changing the public interface or the boundary itself. This is a significantly smaller and well-scoped set of changes that can be maintained and managed by those who understood the intended design of the system. modguard is: - fully open source - able to be adopted incrementally - implemented with no runtime footprint - a standalone library with no external dependencies - interoperable with your existing system (cli, generated config) We hope you try it out! We’d love your feedback. Github - https://ift.tt/DXrbuYP Docs - https://ift.tt/pY1LHBz admin@0x63problems.dev https://ift.tt/DXrbuYP February 21, 2024 at 10:37PM

Wednesday, February 21, 2024

Show HN: LoraLand – 25 fine-tuned LLMs that beat GPT-4 https://ift.tt/Jj097OX

Show HN: LoraLand – 25 fine-tuned LLMs that beat GPT-4 Hi all, today we're excited to launch LoraLand: 25 fine-tuned mistral-7b models that outperform #gpt4 on task-specific applications ranging from sentiment detection to question answering. All 25 fine-tuned models… - Outperform GPT-4, GPT-3.5-turbo, and mistral-7b-instruct for specific tasks - Are cost-effectively served from a single GPU through LoRAX - Were trained for less than $8 each on average You can prompt all of the fine-tuned models today and compare their results to mistral-7b-instruct in real time! We'd love to hear comments and feedback from the community https://ift.tt/wU9VBYi February 20, 2024 at 10:18PM

Show HN: Hyperdiv – Reactive, immediate-mode web UI framework for Python https://ift.tt/GwS8OVW

Show HN: Hyperdiv – Reactive, immediate-mode web UI framework for Python Hello HN, I'm releasing Hyperdiv ( https://hyperdiv.io ), a framework for rapidly developing reactive browser UIs in Python, with immediate-mode syntax and using Shoelace ( https://shoelace.style ) as its built-in component system. This short coding video will give you a good idea of what it is: https://www.youtube.com/watch?v=4XJKfxaqvGE I wrote a brief article about the motivation and approach: https://ift.tt/Q2YUkVo Hyperdiv doesn't aim to compete with serious full-stack frameworks. The core aim was to make it easy and fast to prototype apps and build UI-based tools. I was originally motivated by internal tools at work -- feeling the need to quickly put together UI-based tools to share with both technical and non-technical coworkers, without having to stand up and maintain a full internal stack. This is my first major open source release. I really appreciate your feedback and support. - Marius https://ift.tt/2MuDNW6 February 20, 2024 at 07:53PM

Show HN: DMARC Checker https://ift.tt/xsQHGcf

Show HN: DMARC Checker https://ift.tt/A4vb5Ta February 20, 2024 at 10:22PM

Tuesday, February 20, 2024

Show HN: CaveRibbon (SFCave Remake) https://ift.tt/7AqySCn

Show HN: CaveRibbon (SFCave Remake) Hi HN! I made this project to indulge in some nostalgia for the Palm OS era. One of the hardest technical problems was fitting an entire replay’s worth of state into the URL fragment so games could be shared. I wrote up some of the details here: https://ift.tt/ZFpnu84 https://ift.tt/9aZ4MJL February 19, 2024 at 05:02PM

Show HN: The 2FA app that tells you when you get `012345` https://ift.tt/ndjwPhc

Show HN: The 2FA app that tells you when you get `012345` https://ift.tt/spycqHU February 19, 2024 at 10:46PM

Monday, February 19, 2024

Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code https://ift.tt/vt1BkI0

Show HN: Happy Coder – End-to-End Encrypted Mobile Client for Claude Code Hey all! Few weeks ago we realized AI models are now so good you d...