![](https://lemmy.inbutts.lol/pictrs/image/bcc9daf5-5ea6-4abb-8835-59b30360bb09.png)
![](https://programming.dev/pictrs/image/3d2f8ea4-8ed4-47c2-bc1c-756d51a0cbf3.webp)
“It’s better to be thought a fool than to open your mouth and remove all doubt.” - Abraham Lincoln
CTRL+Z
“It’s better to be thought a fool than to open your mouth and remove all doubt.” - Abraham Lincoln
Laravel’s documentation does a very good job of describing these types of relationships. Even if you’re not a PHP developer, their docs cover the basics.
We call the things that, “sit in the middle,” Middleware.
tl;dr - It’s okay to refactor code now and then.
I bought my first keg with the cash made from un-fucking Dreamweaver output.
You should take a look at Mermaid.
Edit: words are hard.
I’m another git-flow fan. Have not encountered a situation that would motivate me to change workflow. We use submodules all over the place, too.
YIj54yALOJxEsY20eU has compromised on their privacy values by not including a special character in their username.
We found out two days later that Becky didn’t blow anyone, no one had herpes, and the entire field hockey team got mononucleosis because they share water bottles.
Mostly nothing. The Unicode Consortium isn’t run by the US government. Neither is ANSI nor IEEE. The IETF and ISO are international bodies technically headquartered in Switzerland. FIPS picks standards, it doesn’t author them.
Congratulations, you’re already living in a world where “smart people [are] working for other smart people.”
Wait hang on…
did not blow up, it faded, with its oriental counterpart well-flourishing for 10 centuries after that
How long do you think a century is? Did you mean to say decade? Even then, the US wasn’t really a global superpower until the 1940s. There are people still alive that remember the Dust Bowl. If your question is, “what happens to regulatory standards 100 years after the US is gone,” I’m not sure what quality of answer you’re expecting.
For someone who doesn’t want “chud shit,” you sure do leave some pretty huge doors open for it. Especially when you don’t go into any detail of what these regulatory bodies do. It reminds me of 14 year olds loudly declaring “I don’t want any drama…” before “…but I think Becky got mouth herpes from blowing Steve at band camp.”
The customer was UniSuper, a $125B Superfund. It was not the confused Grandma in the thumbnail.
Web accessibility isn’t just about compliance; it’s about creating digital experiences that empower and include every user, regardless of their abilities.
<html lang="en">
<head>
<base target="_blank" />
</head>
I get that it’s hard to come up with a good example of using <base>
, but I wouldn’t show a user-hostile example before … cutting the element from Chapter 1 entirely. The only time I’ve ever used <base>
was when I had to deploy multiple versions of a multi-page static site to a subdirectory for its staging environment, but to the public root for the production environment. Even then, the solution wasn’t, “use <base>
,” it was, “sort shit out later with nginx.”
<body>
<ul>
<li><a class="native" href="add-book">Add Book</a></li>
<li><a class="native" href="view">View Bookshelf</a></li>
</ul>
<ul>
<li>
<a href="https://example.com/dont-use-real-urls">Misery</a>
</li>
<li>
<a href="https://example.com/especially-links-to-amazon-just-pick-a-real-bookstore">Carrie</a>
</li>
</ul>
</body>
I understand that it’s just an example but it’s never just an example. Use appropriate landmarks or break your snippets down to the point where it’s obvious that what you’re pointing out isn’t the whole thing. You don’t need <body>
or <ul>
or <li>
, just split the snippet in two, like this:
<a href="/my-favorite-books">My Favorite Books</a>
<a href="https://example.com/some-book">Every Man For Himself and God Against All</a>
<script>
document.addEventListener("click", (event) => {
if (event.target.classList.contains("native")) {
event.preventDefault();
window.location = event.target.href;
}
});
</script>
Don’t do that. I mean, don’t really do any of this example, but really don’t do this last part. Adding class="native"
is as cumbersome as adding target="_blank"
, while also being more brittle. [I edited out a considerable amount of swearing here.] I think this is just a symptom of a bad example gone way too far.
If the client insists on opening all external links in new tabs, get it in writing and then do this:
<base target="_blank" />
let external_links = document.querySelectorAll('a[href^="http"]');
external_links.forEach((external_link) => {
external_link.setAttribute('target', '_blank');
});
You can use querySelectorAll with a prefix attribute selector like 'a[href^="http"]'
instead of a typical class selector. This lets you grab all the anchors with hrefs that start with “http” without adding extra syntax where it doesn’t really belong. Once you’ve got your external links, iterate through that NodeList with forEach and tack on target="_blank"
using setAttribute. That way, you’re not re-implementing default behavior, you’re only mildly annoying users with HCI devices, and if JS gets blocked all your links suddenly behave predictably.
Even this is bad! Just don’t! It’s so easy to not!
<meta>
vs meta
. If they have to guess, they’ll guess wrong. Suffix with “element” to really beat them over the head with it.class="foreign"
. If you can’t, suffix it with “attribute.”"false"
.rel
attribute, for example, maybe don’t.It’s called job security, bro.
the entire website ui is rendered in a canvas (already starting to happen thanks to some frameworks like flutter)
That sounds like an accessibility nightmare.
A fad? No, definitely not. TypeScript brings features (and structure) that will /should probably make their way into JS.
It’s sort of like asking, “does SASS replace CSS” or “is liquid the next HTML?” They’re just implementations of features FE developers want in the core spec of JS, CSS, and HTML.
Thank you.
You could just as easily use the article’s title and save your opinions for the post body or the comments, but you didn’t.
Oh no, implicit bias. Twice!
React developer?
They have an agenda on top of the article’s agenda.
Hey, I was in a similar situation at that inflection point but veered into PHP application development and couldn’t quite get away from the front end. Let me tell you: CSS Flexbox and Grid are amazing. AlpineJS is “just the good parts” of jQuery. You can go back now. Check out 11ty.