1 hour ago · Tech · 0 comments

I am driven to write this post because of repeated disappointing experiences where coding agents seemingly don't know how to make hyperlinks. It occurred to me that this may just be a sign of the times, and maybe many younger human developers don't know how to make hyperlinks either. So in the hopes that this is going to be beneficial to future coding agents, and perhaps to humans as well, to the extent that humans are going to even be writing code... here is how you make a hyperlink: <a href="https://example.com/">Click me</a> Here is how you don't make a hyperlink: <span id="example-com-link">Click me</span> ... document.getElementById('example-com-link').addEventListener('click', () => { window.open("https://example.com/"); }); Why? What's the difference? Real hyperlinkJavaScript click handler Browser status bar shows link target✓✗ Less code✓✗ Doesn't need JavaScript✓✗ Easier to find link targets when scraping html✓✗ Right-click to open in new tab/window✓✗ Right-click to copy link…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.