Towards a better web

Joined November 2022
HTTP status code question: You send a POST request and the server is unable to connect to the database so your app errors out. Do you send a 500 or a 200 with an error message? Does your answer change if this is a GET request for a resource?
134
Once CSS gets native mixins, it's over for Tailwind
138
What problems do frontend frameworks solve that aren't solved by iframes?
2
2
256
Unpopular opinion: A search form that returns no results should have an HTTP response code of 404
190
It's a common enough pattern to be able to log in and log out of a site that it should be standardized beyond what it was decades ago
Can we get built-in browser auth that is actually usable? @ChromiumDev @firefox
2
222
Can we get built-in browser auth that is actually usable? @ChromiumDev @firefox
1
1
299
Problem: I want to be able to cache authenticated pages, but I don't want them to be viewable via back button navigation AFTER the user has logged out. What's the best solution to this?
87
Input type should be a CSS-level concern and not HTML elements/attributes. For example, I should be able to specify whether a list renders as a <select> would or as a <input type=radio> would with CSS
1
104
Why use javascript components when you can just use iframes as components? They are perfect for HTML, CSS, and JS encapsulation and can expose an interface to other documents if needed
1
103
Monorepo, but instead of everything landing on master, each project has a dedicated branch. Who structures their monorepo like this?
1
1
188
<input type=checkbox> should not have a indeterminate state. Anyone know the history behind why this is the case? Seems like a bad design decision
1
128
Browsers should support xlink
105
I'd like to have an HTTP header that allowed me to tell the browser whether or not I want a navigation added to the history stack
1
2
111
Put your database inside your application
Put your application logic inside your postgres database. Stop with all the edge nonsense
1
124
Have you ever run into a browser's maximum limit on a URL?
67
Case in point why it’s important to separate styling concerns (CSS) from markup (HTML). Doing so allows you to easily offer layout customization for users and easily A/B test by seeing which styles users prefer instead of ramming redesigns down their throats
I can't explain how much I hate this new YouTube layout
1
86
You'll write better CSS if you don't try to reuse it. Use one CSS file per page and mirror the DOM. Only when clear patterns emerge should you attempt to abstract and extract CSS into other files that are then reused. When files are reused, be sure to have accompanying tests
1
1
66
Your CSS is hard to maintain because you don't write automated tests for it
60
Tailwinders are reinventing selectors it seems
Mixins for Tailwind CSS 🧪⚡️ Write classes once. Use them everywhere. tailwindcss-mixins provides a declarative API for creating reusable groups of utilities, reducing code duplication, and improving maintainability. — Check it out on GitHub 👇🏼
1
1
124
The Tailwind years will be looked at as a dark time in web dev history
44