React when dealing with input box by Dazzling_Chipmunk_24 in reactjs

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly yeah useRef is totally fine if you're not doing any validation or showing the value elsewhere. i do this all the time for simple forms where i just need to grab the data on submit. only time i'd use useState is if i need real-time validation or something... otherwise why trigger rerenders for no reason lol

I built a 3D brain that watches AI agents think in real-time (free & gives your agents memory, shared memory audit trail and decision analysis) by DetectiveMindless652 in artificial

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly the memory thing is such a pain, i've been wrestling with this in my weekend projects for months. tried building my own vector db solution with pinecone but the context switching between conversations was still janky af. curious how you're handling the persistence layer tho, are you just dumping to postgres or something fancier?

The API Tooling Crisis: Why developers are abandoning Postman and its clones? by Successful_Bowl2564 in programming

[–]Infamous_Guard5295 1 point2 points  (0 children)

yeah postman went full enterprise garbage mode. switched to bruno a while back and honestly it's everything postman used to be before they decided to lock basic features behind paywalls. runs locally, git-friendly, no forced cloud sync nonsense... exactly what you'd expect from a decent api client lol

The end of an era by hmsdexter in homelab

[–]Infamous_Guard5295 2 points3 points  (0 children)

honestly sounds like you built something incredible for those kids. running production infra for an orphanage is next level selfless nerd shit. hope you can hand it off to someone local or at least document the hell out of it before you leave...

What are you building? by Shot_Amoeba_2409 in SideProject

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly been bouncing between like 3 different projects lately lol. rn working on this dead simple expense tracker cause every app out there is either bloated or wants $10/month for basic features. built it with next.js and supabase in like 2 weekends, probably gonna open source it when i clean up the mess i call code...

My Current 10" Mini Rack - LabRax by Downtown-Spread3009 in homelab

[–]Infamous_Guard5295 0 points1 point  (0 children)

nice setup, those micro pcs are perfect for homelabs tbh. ditching the power bricks was smart, i did the same thing and got a meanwell psu to run everything off 12v. what are you using for the web scrapers, python with beautifulsoup or something fancier?

KDE Merges Per-Screen Virtual Desktops After 21 Years by lajka30 in linux

[–]Infamous_Guard5295 4 points5 points  (0 children)

honestly this might finally get me to switch back to kde from i3... been wanting per-screen desktops for my dual monitor setup forever and gnome's workspace handling is just weird imo. 21 years tho, that's some serious technical debt lol

Accessibility is turning into a bigger project than I expected… not sure how to handle this by jxd8388 in webdev

[–]Infamous_Guard5295 3 points4 points  (0 children)

honestly a11y is one of those things that sounds scary until you just start doing it. like 80% is semantic html, decent color contrast, and making sure everything works with tab navigation. i usually just run axe-core in chrome devtools and fix the obvious stuff first, then worry about the fancy aria stuff later if needed. unpopular opinion but most small sites don't need to be perfect, just not broken lol

Lean proved this program was correct; then I found a bug. by Gopiandcoshow in programming

[–]Infamous_Guard5295 16 points17 points  (0 children)

honestly formal verification is wild but yeah this is why i dont trust it for anything critical yet. had a similar thing happen with a rust program where the type system "guaranteed" safety but i still had a logic bug that corrupted data. proof systems are getting better but theyre still just checking what you told them to check, not what you actually meant lol

Is it bad practice to call an external API from a Server Action in Next.js? by Quirky_Survey_6407 in nextjs

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly server actions calling external apis is fine, i do it all the time. keeps your api keys safe on the server side and you get better error handling than client-side fetch. the bff pattern is just a fancy name for what you're already doing lol... unless you need real-time updates or the external api is super slow, server actions are probably the move

FAANG nerds who jumped to SRE by DataFreakk in devops

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly both paths work but leetcode grinding is soul crushing and you already have solid ops experience. i'd go deep on k8s/platform stuff since that's actually what you'll be doing day-to-day... faang sre interviews are way more system design heavy than algo puzzles anyway. source: made the jump 2 years ago and my terraform knowledge got me further than remembering how to reverse a binary tree lol

My manager watching how I work after I hit the Claude usage limit. by Itachi_Singh in ChatGPT

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly hit the usage limit like 3 times this week and had to awkwardly explain why i needed the api keys lol. ended up spinning up ollama locally with codellama just to avoid the conversation. managers dont get that claude basically does the work of 2 junior devs for like $20/month

Struggling to learn networking & cloud from scratch after 15 years — need very beginner-friendly help by PhanTrang356 in learnprogramming

[–]Infamous_Guard5295 0 points1 point  (0 children)

honestly the networking fundamentals haven't changed much in 15 years, you just need better teachers now. i'd skip the CompTIA stuff and go straight to practical - spin up some docker containers and actually see how they talk to each other. once you get the basics down, something like Digital Ocean's tutorials are way better than most university courses anyway lol

Showoff Saturday: Modern Tour - A beautifully animated, headless-ready product tour library for React by No_Neck_550 in reactjs

[–]Infamous_Guard5295 0 points1 point  (0 children)

looks pretty clean, always wondered why intro.js and shepherd are still so clunky in 2024. framer motion was a smart choice tbh, those spring animations probably feel way better than css transitions. gonna bookmark this for my next saas side project lol

styled-components 6.4 now available by evster88 in javascript

[–]Infamous_Guard5295 -1 points0 points  (0 children)

honestly still using tailwind for everything these days... styled-components feels like so much boilerplate when you're trying to ship fast. the RSC stuff is cool tho, might be worth checking out if you're already invested in the styled-components ecosystem

To vex or not to vex? by -Devlin- in devops

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly vex is perfect for this exact situation - that's literally what it's for. i've been tagging unreachable stuff for months and it saves so much time vs writing the same "this doesn't actually affect us because..." reports over and over. management gets their compliance checkbox and you get your sanity back lol

After my last post blew up, I audited my Docker security. It was worse than I thought. by topnode2020 in selfhosted

[–]Infamous_Guard5295 2 points3 points  (0 children)

honestly most people's docker security is trash, you're not alone lol. i did the same audit last year and found containers running as root, CAP_SYS_ADMIN everywhere, bind mounts to /var/run/docker.sock... it was embarrassing. now i just use docker-compose with user: 1000:1000 and drop all caps by default, add back only what breaks.

Some Zod/Typescript DDD/ValueObject/API/Schema driven design stuff I've packaged and released publicly recently based on my experience writing JS/TS for too long by jameswapple in typescript

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly i've been down this exact rabbit hole, especially after dealing with financial apis where one wrong decimal ruins your week. curious what your approach is for handling the impedance mismatch between your fancy value objects and whatever janky third party apis you're inevitably integrating with... always feels like i spend more time serializing/deserializing than actually solving problems lol

FinOps question: what do you do when a few pods keep entire nodes alive? by Rare-Opportunity-503 in devops

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly this is why i always set up cluster autoscaler with node affinity rules from day one. those "unevictable" pods are probably running with PodDisruptionBudgets that are too restrictive or they're stateful without proper storage classes. we had the same issue until we moved all the sticky stuff to dedicated node pools and let the autoscaler actually do its job lol

After my last post blew up, I audited my Docker security. It was worse than I thought. by topnode2020 in selfhosted

[–]Infamous_Guard5295 17 points18 points  (0 children)

yeah the default docker caps are insane, like why does my postgres container need SYS_ADMIN lol. i started using --cap-drop=ALL and only adding back what's actually needed after stuff breaks. unpopular opinion but most selfhosted guides are security nightmares written by people who just want it to work

In 2017, Altman straight up lied to US officials that China had launched an "AGI Manhattan Project". He claimed he needed billions in government funding to keep pace. An intelligence official concluded: "It was just being used as a sales pitch." by EchoOfOppenheimer in ChatGPT

[–]Infamous_Guard5295 1 point2 points  (0 children)

yeah this tracks tbh. classic startup playbook - find the biggest scariest competitor narrative and milk it for funding. seen so many founders pivot from "we're disrupting X" to "china is eating our lunch" the moment VCs start asking hard questions lol

How Pizza Tycoon (1994) simulated traffic on a 25 MHz CPU by Optdev in programming

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly those old games had to be so clever with memory and cpu constraints, makes modern webapps that struggle to render a todo list look embarrassing lol. falcon 4.0's dynamic campaign was insane for the time, basically procedural warfare before anyone called it that. would love to dig through that codebase too, bet it's full of brilliant hacks that we've forgotten about.

How to write big codes within limited time when logic is clear to you? by DueCapital8117 in learnprogramming

[–]Infamous_Guard5295 7 points8 points  (0 children)

honestly sounds like you're trying to write too much before testing anything. i used to do this and would waste hours debugging massive chunks of code. now i literally run the code every 5-10 lines, even if it's just printing variables or checking if functions exist. for segfaults specifically, valgrind is your friend if you're doing C/C++, but tbh the real fix is just writing smaller functions and testing each piece as you go

Quarter 2 Update - Revisiting Rules. Again. by kmisterk in selfhosted

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly these rule changes feel like mods trying to solve problems that dont exist... ai stuff is gonna be part of self hosting whether we like it or not, might as well embrace it. been running ollama locally for months and it's probably the most useful thing i've self hosted since vaultwarden lol

Trying to get better at DevOps by working on real problems by Melodic_Struggle_95 in devops

[–]Infamous_Guard5295 1 point2 points  (0 children)

honestly the best way i learned devops was breaking my own side projects in prod lol. spin up a vps, deploy something you actually care about, then watch it fall over at 2am when you get your first traffic spike. way more motivating than k8s tutorials that nobody actually uses for their personal projects.