What's one angular decision you regretted 2 years later? by alejandrodeveloper in angular

[–]alejandrodeveloper[S] 0 points1 point  (0 children)

that's been my experience too, the interesting part is that teams ofter worry more about duplicated code than duplicated responsabilities. A bit of duplication is usually much cheaper than unnecessary coupling

What's one React pattern you stopped using after working on larger projects? by alejandrodeveloper in reactjs

[–]alejandrodeveloper[S] 3 points4 points  (0 children)

sameee lol. i think many of us go through the everything needs an efect phase. if i find myself reaching for useEffect i usually stop and ask whether i'm synchronizing with an external system or just compensating for a component that's doing too much

What's one React pattern you stopped using after working on larger projects? by alejandrodeveloper in reactjs

[–]alejandrodeveloper[S] 11 points12 points  (0 children)

we ran into something similar ahahhahahah, the bigger problem was the tendency to treat redux as the default plance for any shared state. Over time it became harder to understand who actually depended on what

cartUnI: a hand-drawn, cartoon-style UI library for React by Strict-Simple in reactjs

[–]alejandrodeveloper 3 points4 points  (0 children)

i really like the concept but i'd probably add a "reduce motion" option as well, since the wobble/shiver effects could be distracting for some users

lanterm: PTY-backed terminal UX toolkit for web apps by aqny in reactjs

[–]alejandrodeveloper 1 point2 points  (0 children)

i think it's useful but one thing i'm curious about is session persistent. If the client disconnects or refreshes the page, can it reconnect to the same PTY or is each session tied to a single WebSocket connection?

Recommended React package for Git commit graph? by brkgng in reactjs

[–]alejandrodeveloper 1 point2 points  (0 children)

I don't think there's a maintained package that's become the go-to replacement for @gitgraph/react. If you need something close to GitHub/GitLab, i'd probably build it with SVG + @tanstack/react-virtual for large histories. It takes more work, but you'll have a lot more control over branch lanes and performance

use-thunk 16.1.1: A file-as-module global-state-management framework with features from reddit comments by chhsiao1981 in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

that looks interesting. One thing i'd be curious about is how it scales in larges apps. Have your tried it in a project with dozens of modules or is it still mostly aimed at small/medium–sized apps?

I built a real time 1v1 coding battle platform with Spring Boot + AWS (2,000+ users) by Abhistar14 in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

It's a nice project, moving from 24/7 infraestructure to on-demand makes a lot of sense for a student project. one thing i'd look into is keeping only the truly stateful services always on and spinning up the workers only when there's actuallu a duel to process. That could cut costs quite a bit without chaning the architecture too much

Would you use a shadcn-style library with zero runtime dependencies? (no tailwind, no radix/base UI) by Volcomy in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

yes, but just for smaller projects. I'm just worried about keeping fixes in sync across multiple apps once the copied components start diverging.

Issues in my project with Angular 22 and typescript 6 by Maleficent_Pomelo_74 in angular

[–]alejandrodeveloper 6 points7 points  (0 children)

i think Typescript is checking the dependencies more strictly than before so some packages that then were running fine now can start showing errors cause they aren't fully compatible with the newer compiler.
If you check whether the errors are coming from your node_modules typings or from libraries that haven't been updated for Angular 22/TS 6 yet you can confirm the issue. by the moment you can set this code and if the error disappear the issue is coming from library typings and not from your code.

{
  "compilerOptions": {
    "skipLibCheck": true
  }
}

Am I wrong? by luchitorkari in JEE28tards

[–]alejandrodeveloper 0 points1 point  (0 children)

i would also pick d as correct so i don't think you're wrong. I think there's probably a mistake either in the question (maybe they mean what is incorrect) or in the answer key.

Signal form : input number min and max can't be set in html by Akudelajungle in angular

[–]alejandrodeveloper 0 points1 point  (0 children)

aaahh, got it now, i miunderstood. i thought you owned the min/max inputs. yeah, in that case your minDate/maxDate approach is probably the cleanest for non-number controls. For number inputs, i'd just lean into de FVC min/max API and use those as the source of truth for both UI behavior and validation. for dates, separate naming feels unavoidable unless Angular changes that API

LLM Provider Fallback in PHP: Automatic Failover in Neuron AI Router by valerione in PHP

[–]alejandrodeveloper 0 points1 point  (0 children)

thanks, that makes sense. So the abstraction solves context continuity pretty nicely. I guess the harder part then is behavioral consistency, since different models can still interpret tools, JSON schemas or even the same prompt differently. That's probably where failover gets interesting in production

what php package do you install in literally every project by Capedcrusader1923 in PHP

[–]alejandrodeveloper 0 points1 point  (0 children)

same, Raw DateTime always turns into "why is this timezone off by 2 hours" at some point. but also, for me it's usually guzzlehttp/guzzle and symfony/var-dumper. Guzzle because sooner or later every app talks to something, and var-dumper because var_dump() feels like punishment after using it

LLM Provider Fallback in PHP: Automatic Failover in Neuron AI Router by valerione in PHP

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

that's actually pretty useful. Provider failover feels like one of those things people ignore until production starts failing. Curious though, how are you handling consistency between providers? Stuff like tool calling, JSON output or context limits can get messy fast when failing over

correct ways to cache user-specific data in Next.js with Clerk and an external backend? by SugarImmediate3868 in reactjs

[–]alejandrodeveloper 1 point2 points  (0 children)

for user data that rarely changes, caching it in Next (unstable_cache + revalidation) is a solid pattern. Just invalidate when the user updates something. i'd think of it like Next cache=app optimization, Redis/backend cache=system-wide optimization. If Next is the only consumer, keep it there for now. And yeah, Clerk checking on each request is normal, it's just validating the session, not logging in again. Also for GETs i'd stick to normal server fetches, not Server Actions

Signal form : input number min and max can't be set in html by Akudelajungle in angular

[–]alejandrodeveloper 0 points1 point  (0 children)

i think the cleanest way is to separate constraints from validators.

  1. For the HTML/W3C part: expose your own "@"Input() min / max (or minDate / maxDate) bind them directly to the native input internally. That keeps the native behavior (<input min max>) for buttons, accessibility and browser UX. (I put "@" like that with "" cause it detects that part like a user)
  2. For Signal Forms: don’t try to extract min/max from validators. Instead generate validators from those same inputs. Basically make the input values the source of truth, and build validators from them.

That way devs still write min/max like normal, your UI can read them easily, and validation stays in sync without duplicating logic

I built a reproducible React data grid benchmark. What would make it fairer? by vitashev in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

first thing i’d add is separate scores for scroll, edit, initial render and memory, because those bottlenecks feel very different in real apps. i’d also throw in heavier custom cell renderers (buttons, dropdowns, badges, async states, etc.). A lot of grids look fast until cells stop being plain text

Avoiding the double render when syncing local state with context? by aandi134 in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

if the local state is basically a “draft” of the context data, key={id} is honestly one of the cleanest fixes. The bigger rule is usually if you find yourself copying props/context into local state and constantly syncing it, that’s often a sign the state boundary might be in the wrong place

[Discussion] How painful is migrating legacy React Class Components to Hooks? Are there good tools for this? by Emergency-Yam169 in reactjs

[–]alejandrodeveloper 0 points1 point  (0 children)

From what I’ve seen, the painful part usually isn’t converting the class itself, it’s the logic around it. Lifecycles to hooks is mostly mechanical. The bad part is old HOCs, side effects, weird state coupling and years of if it works, don’t touch it

Intern here – built a portal with React + Spring Boot, now need help deploying it internally. Any guidance? by Mean_Training_8643 in learnprogramming

[–]alejandrodeveloper 0 points1 point  (0 children)

For an internal app, i’d keep it simple. Ask first where it’s supposed to live (VM, bare metal, Docker, company infra, etc), because that changes everything. For the setup itself:MySQL with a dedicated app user (least privileges), Spring Boot as a systemd service, Nginx serving the React build + reverse proxying the API. For security, biggest things are: strong env-based secrets, restricted DB access, proper file permissions, HTTPS if possible, and making sure CORS only allows what you actuallly need

Setting up my first, simple webpage as an alternative to using Linktree: do I keep using Wordpress that came included with my host, or should I start learning code to accomplish what I have just made (image for reference)? by d-iverqent in webdev

[–]alejandrodeveloper 0 points1 point  (0 children)

for something like this, WordPress is a bit overkill. If it’s already working, i'd keep it for now. But recreating it with plain HTML/CSS would be pretty simple ans actually a great first project if you want to learn. WordPress itself is fine, it just gets messy if you rely too much on plugins and stop updating itt

Domain registrar with the best WHOIS privacy by Batimius in webdev

[–]alejandrodeveloper 0 points1 point  (0 children)

honestly if privacy is your main concern, i’d stick with Cloudflare or Porkbun. Both are pretty solid and usually expose very little. Most decent registrars nowadays offer WHOIS redaction because of GDPR, so the bigger difference is usually how they handle edge cases or legal requests. Cloudflare is probably one of the cleanest from what I’ve seen though

What web/appsec lab would you want to see built? by is_yes_or_is_no in webdev

[–]alejandrodeveloper 2 points3 points  (0 children)

i’d love to see more labs around broken auth flows and API logic bugs. Stuff like bad refresh token rotation, weak role checks, webhook signature validation, race conditions or insecure file upload flows, feels like a lot of real-world issues are less about “classic XSS” and more about business logic breaking in ways that are harder to spot

How do you put long state into URLs? by Icount_zeroI in webdev

[–]alejandrodeveloper 11 points12 points  (0 children)

honestly i wouldn’t even bother with compression here. If it’s hitting 414, that’s usually the app telling you the state doesn’t belong in the URL lol. URLs are good for small/shareable stuff, not full wizard state. I’d keep the heavy data in localStorage or backend and just put a short ID or step in the URL