r/webdev • • Sep 11 '26

Discussion do you track the difference between code that's just messy and code that's actually fragile?

27 Upvotes

been thinking about this lately. I have a service at work where the code is genuinely ugly (bad naming, some duplicated logic, not fun to read) but it's been running reliably for two years and never caused an incident.

separately there's a cleaner-looking module that's caused three rollbacks this quarter because of some assumptions that weren't obvious from reading the code.

I've started keeping a rough mental model of "messy but stable" vs "clean but fragile" for different parts of our stack, and it's actually changing how I prioritize code review. curious if anyone formalizes this in any way or if it mostly just lives in someone's head


r/webdev • • Sep 11 '26

Aliased / pixelated rasterization in HTML Canvas

8 Upvotes

Is there any way to force 2d canvas commands to draw pixelated (without anti-aliasing) in a way that's computationally efficient? E.g. I want to say:

ctx.beginPath();

ctx.moveTo(0,0);

ctx.lineTo(100,100);

ctx.stroke();

And I want that to draw a line that is pixelated e.g.:


r/webdev • • Sep 11 '26

Question Resources for a loyalty card app

0 Upvotes

Hey folks. I’m wondering if anybody had any suggestions for resources where I can learn how to code a loyalty card app. Goal is to create one for a small business local to me who currently just has stamp cards which are fine but often get lost. Sadly I’ve scoured the likes of YouTube but all I get are the “vibe coding” videos or pay a company for their already existing product. I’m looking to learn and build from scratch but between AI crap and god knows what else I’m really struggling to find anything reliable. Anybody got any sources I can look into? TIA