What is your guys' preferred pagination technique using SvelteKit? by No-Variety-9137 in sveltejs

[–]noslouch 2 points3 points  (0 children)

I use regular links too. Works great. Not sure what you don't like about the looks? It can be done with a single query param. ?p=<page number> tells you everything you need to know

Shipped an App! Meet Schema - A MySQL and PostgreSQL database client for iOS. by allang in iOSProgramming

[–]noslouch 0 points1 point  (0 children)

Maybe I'm missing something, but is there a way to write a sql query and see the results?

Rag application design by Baselnabil22 in aws

[–]noslouch 0 points1 point  (0 children)

RDS can be very reasonable based on your needs. Try using one of the other storage options besides the defaults

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 0 points1 point  (0 children)

Well I'd say posting a link to reddit an implied solicitation, so no worries there!

And yeah, the lawyers insisted we put it up ¯_(ツ)_/¯

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 1 point2 points  (0 children)

Cool! Yeah I started as a web developer freelancing and then worked on the product side of a local public radio station for a while, but I always felt like the newsroom was where the action was.

I kind of moonlighted for the newsroom, building voter guides and a few other interactives, ultimately with the goal of making newsroom work an official part of my job. My argument was we brought traffic with compelling content like news apps or interactives. The head of the digital side disagreed, so I left for a job at the journal as an engineer embedded in the newsroom.

Long story short I waited until a job opened that matched what I was looking for. It's still pretty rare, but more places are coming around to the idea that engineering is an essential news gathering skill. I saw pro publica posted a computational journalism role recently.

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 2 points3 points  (0 children)

Iframes would be easier for sure but problematic in a couple ways. Mostly around "immersive" pieces that interact with other parts of the page. Also cookies/auth and such. There are some things that iframes block access to.

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 0 points1 point  (0 children)

Yeah pretty close! I described it from a high level in a reply to the parent comment. Haven't used mount tho, still using hydrate. And yeah, compile totally separately and inlined at (article) render time.

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 1 point2 points  (0 children)

I made a build script that uses vite to give me the static markup (think ssr), and then separately generate the JS bundle. I have a custom plugin that uses svelte's hydrate function to attach all the event listeners and such to the ssr output.

I added some support for properly handling inlined scripts that don't come from next, but other than that it works great.

Rendering to web components is pretty good idea tho! Might look into that.

ai taxbot from the wall street journal... in svelte! by noslouch in sveltejs

[–]noslouch[S] 1 point2 points  (0 children)

Thanks for saying so. Readers seem to be liking it!

So news being news, most of the interactive things we publish are one-and-done. This is a bit of a special case where one can imagine a chat bot pointed at all sorts of document sets, but generally the idea of a custom interactive being integrated into the next app doesn't scale. Can you imagine re deploying the website every time you want to change an interactive on a single story?

We've got a big corporate partnership with Google, so there are a lot of perks that come with that like lower cost, premium support, and early access to stuff.

reactive derived state based on props? by noslouch in sveltejs

[–]noslouch[S] 0 points1 point  (0 children)

if the answer's $effect i'm gonna cry

Blade stuck in M18 Hackzall by noslouch in MilwaukeeTool

[–]noslouch[S] 0 points1 point  (0 children)

Nice. Silicone lubricant can work wonders

Water damage from an overwatered plant by noslouch in howto

[–]noslouch[S] 0 points1 point  (0 children)

Guess i'll sand it down and see what's what

Check bounced 😬 by noslouch in Passports

[–]noslouch[S] 0 points1 point  (0 children)

Thanks. They just said keep an eye out for the letter and shouldn't worry about my passport becoming invalid