333 karma · joined Feb 16, 2014 (12y ago) · 155 submissions
comment 11mo ago · link · parent
> The Sanitizer API is a proposed new browser API to bring a safe and easy-to-use capability to sanitize HTML into the web platform [and] is currently being incubated in the Sanitizer API WICG, with the goal of bringing this to the WHATWG.
Which would replace the need for sanitizing user-entered content with libraries like DOMPurify by having it built into the browser's API.
The proposed specification has additional information: https://github.com/WICG/sanitizer-api/
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I also have a bizarre problem where any Chromium-based browser (Chrome, Brave, Edge) are extremely slow to load any page since upgrading to Sonoma, where Firefox or Safari are near-instant - like taking 60 seconds to even start DNS lookup. After a couple of minutes it will eventually fully load a page. I've seen other people mention the same issue online, but no fixes. I have spent hours trying to debug and track down problems for that too.
It's discouraging how much it feels like every software tool I use on every device has gone to shit, especially things as fundamental as a web browser.
comment 2y ago · link · parent
The video you mentioned, "Git For Ages 4 And Up" https://www.youtube.com/watch?v=3m7BgIvC-uQ, is the best resource for explaining how it works internally, once they have a rudimentary understanding of what git is and why we use it. Watching this video makes future explanations way more digestible. I still sometimes conceptualize difficult git operations in tinker toys.
I highly recommend it even to experienced people.
comment 2y ago · link · parent
comment 2y ago · link · parent
Refactoring UI is also valuable and can be impactful, though it's heavily web focused and is more like a Web Component Design Cookbook rather than foundational knowledge.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
It took very minimal effort on our part, and was very rewarding for him; certainly a lot better than him crying with the hope that we could guess what he wanted. Definitely recommended for any new parents.
The best moment was when he was sitting on the floor, and looked up at his mom and made the "together" sign, it was heart melting.
comment 3y ago · link · parent
comment 3y ago · link · parent
I understand the business logic, but I wish the console manufacturers would allow more portability between them.
comment 3y ago · link · parent
comment 3y ago · link · parent
One of the things I've found difficult coming back to Rails is how spread out all of the behavior is in so many different files and partials and helpers. While SPAs have a lot of trade-off, organizing related code into components works so much better than any experience I had with server-side MVC, especially when using something like TypeScript and Remix's islands that very effectively isolate even further into logical modules. What little I've done with Hotwire/Turbo made it seem like very basic behavior is even more spread out and even harder to reason about for someone who didn't write it, which seems like it would make maintenance and refactoring in Rails even more time-consuming and perilous than it already is.
I'm really interested in the technology because I hear such glowing reviews of it, but I'm not sure I see it. I'd love to see a non-dogmatic comparison of SPAs vs Rails with Hotwire/Turbo MPA for post-MVP longer-term projects.
comment 3y ago · link · parent
The presenter uses children's construction toys to explain the surprisingly simple and intuitive git internals, and how each of the somewhat obtuse and unintuitive git command operate on their repository structure.
Once people understand the underlying concepts of git, even programming beginners, they can conceptualize what they want to accomplish in their repository, and then and then figure out which tool is the way to get there.