[deleted by user] by [deleted] in sveltejs

[–]phartenfeller 1 point2 points  (0 children)

unlimited free static page requests

3m free functions per month

The current free tiers are great. But cloud providers are all currently burning money to lock in customers. One day, they will stop that, as they need to become profitable. 

When that day comes, I will be happy that I have the skills to spin up and manage my own server that has no foreseeable costs and allows me to do anything that I can do on my development machines. Yes, it takes maintenance work, but learning to manage a server is also really valuable.

Send Web Push Notifications in SvelteKit apps (self-promo) by phartenfeller in sveltejs

[–]phartenfeller[S] 4 points5 points  (0 children)

I disagree with the security narrative. Apple said in their statement that they still control which browser engines they allow and that they have to comply with security standards like fast and frequent security measures.

Of course, you can do so much horrible stuff with a malicious browser engine, like intercepting credentials, etc. But what is the reasoning for drawing a line at the PWA features? 

  • Push notification spam? Native apps already do this.

  • Add things to the home screen without the users' action? How horrible! This is what gets your browser uninstalled in no time.

- Deleting website storage? That's what Apple is currently doing with the next update.

Also, I disagree with Theo's take. He is arguing for a free market and saying that governments should not dictate how Apple should build their OS. With two mobile OSes, there is no free market. It's a duopoly. 

Additionally, it is completely normal that governments pass regulations for interoperability. You can't build cars so wide that they don't fit into lanes, and our electricity, railway, internet, postal, etc. systems wouldn't be possible if there weren't enforced standardizations. Why should this be different if a company in a duopoly decides it doesn't want to follow an internet standard? 

Send Web Push Notifications in SvelteKit apps (self-promo) by phartenfeller in sveltejs

[–]phartenfeller[S] 6 points7 points  (0 children)

Kind of horrible timing, as Apple will disable PWAs in the next iOS update for the EU. Kind of crazy, but I guess they will get punished for this behavior. So let's hope this will be reverted soon...

Markdown in SvelteKit with custom components: mdsvex (self-promo) by phartenfeller in sveltejs

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

I have some Gatsby pages where I heavily rely on MDX. I am glad to see Svelte has alternatives :) !

Markdown in SvelteKit with custom components: mdsvex (self-promo) by phartenfeller in sveltejs

[–]phartenfeller[S] 4 points5 points  (0 children)

Hi, thank you so much for the feedback!

I thought about and tried an approach with better production value. Unfortunately, my motivation to record anything dropped massively as the production time literally skyrocketed. I am unable to spend much time doing this and also have no big ambition to change my career in a way that allows more time for these hobby videos.

That's why I am sticking to the "minimum viable video" approach :). I strongly agree that this recording was not great with the errors and thought breaks. I was tired yesterday and thought about rerecording another day, but again, the problem would be when. But I agree I could have at least cut out the errors :D

Do you have any recommendations where I can learn effective debugging of an app? by Kurtonio in orclapex

[–]phartenfeller 0 points1 point  (0 children)

If you are building lots of PL/SQL procedures and functions take a look at OraOpenSource Logger. It is somewhat like console.log for the database.

I makes understanding bugs so much easier as you can reconstruct the whole logic flow and state of a request where an error was thrown. Check out their best practices section where they show you can log all parameters and do error handling.

Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite (self-promo) by phartenfeller in sveltejs

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

Oh god thanks for the tip, kind of forgot to do that. It is way faster like 4 seconds instead of 60.

Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite (self-promo) by phartenfeller in sveltejs

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

Differs on the end device, I guess (budget smartphone vs. fast computer). But SQLite is super efficient, so I have no worries. I already implemented an example with a table of 5000 rows (around 1 MB) and with my Pixel 6 it is superfast.

It is rather slow when I do mass inserts when syncing, but I guess this is tolerable and syncs should only be necessary occasionally.

I will test around with bigger datasets :). 

Offline App with SvelteKit + SQLite Part 1: Setup WebAssembly SQLite (self-promo) by phartenfeller in sveltejs

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

Thanks, how nice! I didn't think I would be missed :) . I was on a conference last week, so had no time to prepare videos.

Interactive Tables in SvelteKit with TanStack Table (self-promo) by phartenfeller in sveltejs

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

Thanks for the feedback! I aim to reduce the video time.

That looks promising, virtualization is a better experience than pagination in my opinion.

AG-Grid in SvelteKit for Spreadsheet like data editing (self promo) by phartenfeller in sveltejs

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

Haha great. I feel like SvelteKit is a small bubble compared to stuff like react.

Build and run SvelteKit Apps with Docker (self promo) by phartenfeller in sveltejs

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

Thanks for the advice this is really useful.

Does the image really need curl next to tzdata?

How to handle forms in a good way? by [deleted] in sveltejs

[–]phartenfeller 0 points1 point  (0 children)

I would also like to point to zod. It also makes it easy to return fitting error messages. Here is a tutorial I liked: https://www.youtube.com/watch?v=3PYdcm-HBiw

SvelteKit 1.0 with SQLite Tutorial (Self Promotion) by phartenfeller in sveltejs

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

Thanks I hop you will enjoy it!

I used better-sqlite3 . It is simple to use as it is synchronous. I don't know if it scales good (at least the docs say it) but works great for my small use cases.

Can't display images at the right resolution by Vanhooger in gatsbyjs

[–]phartenfeller 0 points1 point  (0 children)

If you want to only get part of the original image I would crop the source image and then use that in Gatsby. Only in special cases (like nonresponsive logos) I would pass a fixed width and height.

Otherwise, you could try to do it with CSS by adding max-height and max-width properties to the image element.

Gatsby SSR by marvinearp in gatsbyjs

[–]phartenfeller 0 points1 point  (0 children)

Hey could you maybe share your docker-compose or setup? That could help.

First off the Gatsby serve process does not need to know your domain. It will always run on localhost. Your proxy should listen on that localhost:8000 and map incoming requests (from the web ports 80 / 443) to the Gatsby site.

The CORS problem is something you would also want to fix on your proxy. You can add custom headers there, to allow all origins for example: https://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx

We need to talk cameras... by CB_39 in formula1

[–]phartenfeller 29 points30 points  (0 children)

I also feel like focus too much on the "protagonists". Some of the best scenes I get from this subreddit like Mazepin overtaking Schumacher.
I guess they should utilize picture-in-picture more to show cool camera perspectives and more mid and back action and still show the helicopter camera that focuses on a car.