This Week in Svelte, Ep. 78 - Changelog, Indeterminate checkbox, classes and actions

  Рет қаралды 539

Svelte Society

Svelte Society

Күн бұрын

Пікірлер: 2
@Lemmy4555
@Lemmy4555 Күн бұрын
classes are not bad per-se but the syntax being inspired by java is terrible, major downside is that you cannot have an async constructor and you are forced to use a custom static create function and you have to prevent people to directly use the constructor. They also play bad with typescript if you want to pass an object as param and then Object.assign(this, obj) in the constructor. I don't understand why svelte cannot auto generate getter and setter in case you return an object where one of the property is a state like: function createCount() { const count = $state(0); return { count // svelte could auto generate get/set and we can avoid classes } }
@thedelanyo
@thedelanyo Күн бұрын
TWIS
This Week in Svelte, Ep. 68 - Changelog, EATView, Capacitor
1:04:16
Svelte Society
Рет қаралды 1,3 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 20 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 10 МЛН
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 240 М.
Kubernetes 101 workshop - complete hands-on
3:56:03
Kubesimplify
Рет қаралды 1,6 МЛН
Weekly LeetCode Challenge (Week 3): Contest #416
2:32:58
Alejandro Iglesias Llobet
Рет қаралды 82
Compiler Q&A, September 2024
2:10:03
Jonathan Blow
Рет қаралды 23 М.
This Week in Svelte, Ep. 75 - Changelog, $props, $state
1:27:18
Svelte Society
Рет қаралды 1,6 М.
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
Рет қаралды 1 МЛН
Master C++ on Linux | Full Course
3:11:22
SavvyNik
Рет қаралды 21 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 20 МЛН