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 treatsPotluck × Testing Animations × Tools for Learning × Coding Related Injuries
Coding with the Open AI / Chat GPT API
Supper Club × The Role Of UX Designers In Humanizing The Future with Travis Neilson
Potluck × Learning Web Dev × Video Streaming × Mono Repos
HTTPS + Tunnel Your Localhost - Cloudflare Tunnels, Ngrok, and more!
Supper Club × Next.js on AWS + Serverless with Dax Raad
New Syntax Website Brainstorm! IRL!
Web Streams Explained
Supper Club × Digital Nomad with Eric Sartorius
Fundamentals × What Makes a Website Slow?
Node in the Browser × WebContainers + NodeBox
Supper Club × Visual Coding Languages With Steve Sewell
AI and Coding with ChatGPT
Clean vs Sloppy Code
Supper Club × Astro 2.0 with Fred Schott
Warp Terminal × Next Gen Terminals
Logging
Supper Club × Solid.js with Ryan Carniato
Potluck × Native Web Components × JS Class Mixins × Application Secrets
Save us from Config File Hell
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