Discover and read the best of Twitter Threads about #sveltejs

Most recents (3)

Someone asked me to write about using ♥️ SvelteKit with node so I made an image slider app using sharp...

...sprinkled in some Jhey Thompkins and Adam Argyle 🪄 future CSS tricks for fun.

In a followup post we’ll deploy SvelteKit to a Linode server.

#learnsvelte #sveltejs
We look at quite a few image optimisations too which get us a 💯 100 PageSpeed Insights score.

The app is responsive and for mobile, we replace Jhey’s hover effect with Adam Argyle’s bouncing overscroll effect using just CSS
Here’s the @jh3yy code the dock style :hover is based off:

Read 6 tweets
A bit more context on how we organise our #golang services at Pace.
Oto has a very simple definition format:

type Service interface {
Method(Request) Response
}

Which turns into:

func (s *Service) Method(context.Context, Request) (*Response, error) {
// todo: implementation
}
The pointer return is simply because I like returning nil in the error case:

return nil, errors.New("not today mate")
Read 8 tweets
JAVASCRIPT ON EMBEDDED DEVICES

Case Study: Svelte

(1) - Svelte is used for POS systems in Brazil. Roughly 200,000 POS devices are currently in the cities of Brazil. The device runs a very outdated WebKit on extremely memory-constraint hardware.

@sveltejs @SvelteSociety
(2) - They tried different frameworks. None of them could be used because when you press a button, it responded half a second later. Of course, users would be more likely to press it twice and may end up overcharging the customer. But when they tried Svelte, it worked smoothly.
(3) - This POS is built by Stone - A Brazilian company that specializes in integrated solutions for all types of entrepreneurs. This reveals the amazing power and potential of @sveltejs for low memory devices.

@stonepagamentos @sveltejs @SvelteSociety
Read 6 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!