Syntax - Tasty Web Development Treats
Technology
In this Hasty Treat, Scott and Wes talk about whether decorators are finally here, what the uses cases are for decorators, how to define a decorator, and what auto accessor is.
Show Noteson classes
@loggged class C {}on fields
class C { @logged x = 1; }Auto Accessor
class C { accessor x = 1; }sugar for below
class C { #x = 1; // # means private get x() { return this.#x; } set x(val) { this.#x = val; } }Can be decorated and decorator can return new get and set and init functions
function logged(value, { kind, name }) { if (kind === "accessor") { let { get, set } = value; return { get() { console.log(`getting ${name}`); return get.call(this); }, set(val) { console.log(`setting ${name} to ${val}`); return set.call(this, val); }, init(initialValue) { console.log(`initializing ${name} with value ${initialValue}`); return initialValue; } }; } // ... } Tweet us your tasty treats674: A11y Treats - Heading Design
673: Getting Hired, Interviewing, and Why Recruiters Suck with Taylor Desseyn
Reacting to State of CSS Survey
Tauri Vs Electron - Desktop Apps with Web Tech
Anxiety and Uncertainty with Dr. Courtney Tolinski
The Svelte + SvelteKit Show
Hacking the Tonal - Proxying, Intercepting + Debugging Traffic?
Supper Club × How To Get Your First Dev Job With Stuart Bloxham
Hackweek Projects - Realtime Markdown Editor and a Hardware Recording Button
CSS Nesting is Here!
Supper Club × What's New With Astro with Fred Schott
Potluck × Soft Skills × Release Notes × Headless CMS × Organizing Code × Inet CSS?
JavaScript Closures & Scope Explained
Supper Club × Shipping ESM with Mark Erikson
Anything but Coding - Landscaping, Fitness, and more!
OG Image Options
Supper Club × Make React 70% Faster! Million.js with 18 Year Old Aiden Bai
Rust for JS Devs — Part 2
8 Tricks When Using the Fetch() API
Supper Club × How Descript Built A Next Gen Video Editor In The Browser With Andrew Lisowski
Create your
podcast in
minutes
It is Free
Insight Story: Tech Trends Unpacked
Zero-Shot
Fast Forward by Tomorrow Unlocked: Tech past, tech future
The Unbelivable Truth - Series 1 - 26 including specials and pilot
Acquired