HNHacker News
TopNewBestAskShowJobs

basscomm

599 karma · joined February 5, 2016

submissionscomments
basscomm··on Google is killing the open web, part 2
> I have yet to read an article complaining about XSLT deprecation from someone who can explain why they actually used it and why it’s important to them.

I used it to develop a website because I'm not a programmer, but I still want to have some basic templates on my webpage without having to set up a dev environment or a static site generator. XML and XSLT extend HTML _just enough_ to let me do some fun things without me having to become a full-on programmer.

basscomm··on Google is killing the open web, part 2
> Why would adding a fragile and little-used technology like XSLT help?

A few years ago I bought a bunch of Skylanders for practically nothing when the toys to life fad faded away. To keep track of everything I made a quick and dirty XSLT script that sorted and organized the list of figures and formatted each one based on their 'element'. That would have been murderous to do in plain HTML and CSS: https://wyrm.org/inventory/skylanders.xml

basscomm··on Google is killing the open web, part 2
> Have you ever met a single non-programmer who successfully picked up XSLT of their own volition and used it productively?

Hi! I'm a non-programmer who picked up XSLT of my own volition and spent the last five-ish years using it to write a website. I even put up all the code on github: https://github.com/zmodemorg/wyrm.org

I spent a few weeks converting the site to use a static site generator, and there were a lot of things I could do in XSLT that I can't really do in the generator, which sucks. I'd revert the entire website in heartbeat if I knew that XSLT support would actually stick around (in fact, that's one of the reasons I started with XSLT in the first place, I didn't think that support would go away any time soon, but here we are)

basscomm··on The internet is no longer a safe haven
There's already an Interet2; do we need to invent Internet3?
basscomm··on Why use OpenBSD?
> where they disable hyperthreading outright due to side-channel attacks.

You can turn on hyperthreading if you need/want it: https://www.openbsd.org/faq/faq10.html#SMT

basscomm··on [dead]
It's amazing that this person published an article called "Don't turn your brain off" that appears to have been written by an AI
basscomm··on Writerdeck.org
> but for me pen and paper is a non-starter due to hand fatigue

You may want to look into writing with your arm instead of your hand

basscomm··on Launch HN: Tweeks (YC W25) – Browser extension to deshittify the web
All I can see is a full screen 6 step checklist with the first step being 'install tweeks'. There's no 'see it in action' link anywhere, unless it's behind the modal
basscomm··on The last-ever penny will be minted today in Philadelphia
> Nobody really gave us training on this stuff, do other countries use a coin purse or some such?

Americans also use coin purses or rubber coin pouches, but I mostly only see older generations using them.

basscomm··on The last-ever penny will be minted today in Philadelphia
> Having to calculate and fish out coins? Ain't nobody got time for that.

It's not that hard or time consuming if you actually use your change instead of letting it accumulate. I typically have less than a dollar in coins on my person at any given time because I spent it.

If you're paying in cash, you either take time to count the change you're going to spend, or you take time waiting for the cashier to count the change you're going to get. Or you go cashless and avoid the whole thing

basscomm··on The last-ever penny will be minted today in Philadelphia
That only works if you completely reconfigure sales tax
basscomm··on The last-ever penny will be minted today in Philadelphia
That's why the dollar coin was redesigned in 2000. The old dollar coin had a reeded edge that was too similar to a quarter, so it was sometimes hard to distinguish if you had vision issues (or if you didn't have vision issues because they were about the same size as a quarter). The new ones have a smooth edge so you can tell them apart from quarters without having to look at them
basscomm··on The last-ever penny will be minted today in Philadelphia
> That said, I do prefer paper $1 bills over coins. Paper is lighter and easier to carry.

Sure, but how many $1 bills do you typically carry around? If it's more than four, then you can trade them in for a $5 bill just about anywhere.

basscomm··on The last-ever penny will be minted today in Philadelphia
We also have a $2 bill that nobody uses for whatever reason.

I never understood the objections to the $1 coin, especially after the redesign to make it more distinct from a quarter. $1 coins are great for buying stuff out of vending machines since you don't have to fight with a dodgy bill acceptor or a mangled bill.

basscomm··on The last-ever penny will be minted today in Philadelphia
> everyone gets pennies as change but few carry them around let alone spend them

It's not just pennies, it's all coins. In a former life I worked in retail and almost nobody would fish around in their pockets for exact (or even near) change. They'd always hand me bills for their purchase even if they had just completed a transaction and had the coins in their pocket. That was in the 90's, and I still see it happening today, even though I'm no longer in the retail world.

basscomm··on XSLT RIP
I used to be able to load the local XML and XSLT files in a browser and try it. When the XSLT blew up, I'd get a big ASCII arrow pointing to the part that went 'bang'. It still only kind of works in FireFox

  XML Parsing Error: mismatched tag. Expected: </item>.
  Location: https://example.org/rss.xml
  Line Number 71, Column 3:
  </channel>
  --^
Chrome shows a useless white void.

I enabled the nginx XSLT module on a local web server serve the files to myself that way. Now when it fails I can check the logs to see what instruction it failed on. It's a bad experience, and I'm not arguing otherwise, but it's just about the only workaround left.

It's a circular situation: nobody wants to use XSLT because the tools are bad and nobody wants to make better tools because XSLT usage is too low.

basscomm··on XSLT RIP
Running a script that interprets a different script to transform a document just complicates things. What do I do when the transform fails? I have to figure out how to debug both XSLT and JavaScript to figure out what broke.

I don't have any desire to learn JavaScript (or use someone else's script) just to do some basic templating.

basscomm··on XSLT RIP
> font, color, and others are no longer in HTML5 spec.

Sometimes browsers are asked to render HTML documents that were written decades ago to conform to older specs and are still on the internet. That still works

> JS is not there just for client side static DOM rendering. Something like Google Maps or an IRC chat would be a much poorer experience without it.

Of course they would. That's most of the point. You can do a lot more damage with JavaScript than you currently can with XSLT, but XSLT has to go because of 'security concerns'

basscomm··on XSLT RIP
> Then write it in languages that have debuggers, instead of XSLT.

Up until a few years ago, I could debug basic stuff in FireFox. If Firefox encountered an XSLT parsing error, it would show an error page with a big ASCII arrow pointing to the instruction that failed. That was a useful clue. Now it shows a blank page, which is not useful at all.

basscomm··on XSLT RIP
> Last i checked, google isn't a charity.

Last I checked, Google isn't supposed to be able to unilaterally decide how the World Wide Web is supposed to work

basscomm··on XSLT RIP
> Google doesn't hate XSLT, it is simply no one wants to maintain libxslt and it is full of security issues. Given how rarely it is used, it is just not worth the time + money. If the author wants to raise money to pay a developer willing to maintain libxslt, Google might revise the decision.

Counterpoint: google hates XML and XSLT. I've been working on a hobby site using XML and XSLT for the last five years. Google refused to crawl and index anything on it. I have a working sitemap, a permissive robots.txt, a googlebot html file proving that I'm the owner of the site, and I've jumped through every hoop I can find, and they still refused to crawl or index anything except a snippet of the main index.xml page and they won't crawl any links on that.

I switched everything over to a static site generator a few weeks ago, and Google immediately crawled the whole thing and started showing snippets of the entire site in less than a day.

My guess is that their usage stats are skewed because they've designed their entire search apparatus to ignore it.

basscomm··on XSLT RIP
> You can have a document without CSS but you can’t style it.

What? CSS didn't come around until several years after HTML did. And you can certainly style an HTML document without CSS.

> On the other hand, you can replace XSLT with server side rendering, or JavaScript.

You can also execute JavaScript on the server to make browsers more secure, but I don't see browser makers clamoring to remove JavaScript support.

> It does not serve a truly unique function.

It does, though. It lets someone do some basic programming of some web pages without having to become a developer

basscomm··on XSLT RIP
It's possible to write buggy software in every language.
basscomm··on XSLT RIP
> If there were that many, why do people only list the same handful again and again? And where are all the /operators/ of those websites complaining?

I've spent the last several years making a website based on XML and XSLT. I complain about the XML/XSLT deprecation from browsers all the time. And the announcements in August that Google was exploring getting rid of XSLT in the browser (which, it turned out, wasn't exploratory at all, it was a performative action that led to a foregone conclusion) was so full of blowback that the discussion got locked and Google forged ahead anyway.

> Is it possible that installing an XSLT processor on the server is not as big a hassle as everyone pretends?

This presumes that everyone interested in making something with XML and XSLT has access to configure the web server it's hosted on. With support in the browser, I can throw some static files up just about anywhere and it'll Just Work(tm)

basscomm··on I was right about dishwasher pods and now I can prove it [video]
> Maybe the pods foam up too much, because it seems hell of a foamy inside.

Dishwasher detergent doesn't make suds. Dish soap does. Are you sure you're using the correct stuff? Or prewashing the dishes for some reason and not getting all the soap off?

basscomm··on Removing XSLT for a more secure browser
I think the fundamental disconnect here is that you're assuming that I am a developer. I'm not, I'm a lousy developer. It's not for lack of trying, programming just doesn't click for me in the way that makes learning it an enjoyable process.

XSLT is a good middle ground that gave me just enough rope to do some fun transformations and put up some pages on the internet without having to set up a dev environment or learn a 'real' programming language

basscomm··on Removing XSLT for a more secure browser
I'm always puzzled by statements like this. I'm not much of a programmer and I wrote a basic XSLT document to transform rss.xml into HTML in a couple of hours. I didn't find it very hard at all (anecdotes are not data, etc)
basscomm··on Removing XSLT for a more secure browser
Counterpoint: the more I used XSLT, the more I liked it, and the more I was frustrated that the featureset that ships in browsers is frozen in 1999
basscomm··on Removing XSLT for a more secure browser
I'm not much of a programmer, but XSLT being declarative means that I can knock out a decent-looking template without having to do a whole lot of programming work.
basscomm··on I’m worried that they put co-pilot in Excel
My kneejerk reaction is the sunk cost fallacy (AI is expensive), but I'm pretty sure it's actually because businesses have spent the last couple of decades doing absolutely everything they can to automate as many humans out of the workforce as possible.
← PreviousPage 3 of 8Next →