Show newer

@zens@merveilles.town Every 'component' is defined as a clean translation from template+data to output HTML, with nothing else involved.

There's no weird global scoping nonsense going on, or strange inheritance semantics, or all the other weird and unpredictable ways in which 'conventional' templaters try to implement parameterizable snippets.

@zens@merveilles.town ... what? You insist that we're talking about the same thing, but none of what you're describing actually resembles the usage pattern that I'm describing (and use on a regular basis) at all.

What do you mean with "mixed in together"? Why wouldn't it "let you have separate template files"?

@zens@merveilles.town But it literally doesn't do any of this when you use it as a server-side templater? I honestly have no idea what you're referring to by this point.

@zens@merveilles.town I think we're talking about two completely different things. React, in and of itself, is nothing but a library that converts template + data -> HTML, with some conceptual support for incremental changes. That's it, really.

When running this server-side, you don't see any of this as the user. The server produces HTML just like it would with any other templating library - this doesn't break userscripts or userstyles, it's just HTML. In whatever shape you specify, with whatever CSS you specify, as with any other HTML.

What I'm referring to with "components" is entirely in the context of server-side templating, *not* stuff like "web components" - I mean reusable chunks of HTML like eg. the site header/footer, menus, that sort of thing.

Most every templater in the past decade+ (think eg. Jinja-type stuff) has *something* for this, but it's all extremely leaky and inflexible. That's the specific thing that React does better.

@zens@merveilles.town (which ironically means that the correct applications of React for generic websites, are those where you can't notice React being used)

@zens@merveilles.town It's actually quite nice as a general-purpose templater, because of the whole reusable components thing (basically every other templater has hella leaky abstractions for this).

The mistake that people make is to do this on the browser side, when they *should* be rendering it server-side, and just serving static HTML. Which is 100% possible with React...

@mycorrhiza @scanlime "If someone is trying really hard to look authoritative, they're probably not"

how to save an email as PDF on iOS (not satire yet it is) 

Save an email as a PDF on your iPhone or iPad

In the Mail app, tap an email.

To save the email or the email thread as a PDF, tap the More Actions button at the bottom of the toolbar. 

Scroll down and tap Print.

Touch and hold the preview of the email at the bottom of the screen. A larger preview opens.

Tap the larger preview.

Tap the Share button , then tap Books.

If you don't see Books, tap the More button. Then tap Books.

Your PDF opens and automatically saves in the Books app. You can find it later in the Library tab.

To access your files on any of your other devices, make sure that you set up iCloud Drive.

anarchism, grumpy 

Growing very tired of 'opportunity anarchists' who seem to only be anarchist when it comes to abolishing specific hierarchies, and don't seem to care about the underlying power dynamics

@mizlemon Ah yes, the refrain of tech folks who do not understand the power dynamics under capitalism, and wrongly assumed that *they* were going to be the beneficiary of the improvements... 😐​

thinking a lot about tech layoffs today especially the believers who assured us that automation will rid us of repetitive monotonous tasks, freeing up time to do things we enjoy...

sometimes when you drink water you can /feel/ the hitpoints returning to your body

getting into an elevator and pushing the button for the floor I'm on

time to post again the best user interface i've ever seen

…And on that last note, I’ve been trying to find alternatives to Raspberry Pi – would be very interested if folks have any leads… especially to boards that can be used for education.

#Education #singleBoardComputers #RaspberryPi #alternatives #ARM

Show thread
Show older
Pixietown

Small server part of the pixie.town infrastructure. Registration is closed.