Episode Summary
Executive Summary: This Syntax potluck covers practical web-dev decisions: VS Code/TypeScript navigation tricks, retaining knowledge across stacks, choosing between Netlify/Vercel/Render for different hosting needs, schema naming conventions, responsive vs adaptive design, GraphQL mutation patterns, Svelte’s future, learning habits, email templating with MJML, and marketplace/payment complexity. The hosts emphasize using real code, docs, and tooling over cheat sheets, and matching architecture to the actual app.
Main Topics: VS Code and TypeScript type exploration: How to inspect full TypeScript definitions in VS Code when IntelliSense only shows a type name. They discuss peek definition, go-to-definition, and autocomplete as practical ways to reveal fields and methods. Retaining knowledge across stacks and projects: The hosts discuss how to remember concepts when switching between technologies. They favor reading good example code, keeping markdown notes and comments, and using curated repos over relying on cheat sheets. Hosting platforms: Netlify vs Vercel vs Render: They compare modern deployment platforms and note that Vercel is strongest for Next.js, Netlify offers broader static/serverless features and analytics, and Render is a strong option for traditional Node apps, background jobs, and cron-like scheduling. Data modeling conventions and naming: A discussion of whether schemas/models should be singular or plural. Their recommendation is that models should generally be singular, with pluralization used in collection queries or relationships as needed. Responsive vs adaptive design: They contrast website and app CSS strategies, arguing that responsive design is usually the correct default. Adaptive design is only worth considering when a mobile and desktop experience are fundamentally different. GraphQL mutation best practices: They outline a workflow for GraphQL mutations: validate with HTML and input types, use create/update/delete patterns, return the right amount of data, and handle nested creates/relations carefully. Learning strategy, Svelte, and email templating: The episode closes with advice to learn by building, excitement for SvelteKit and Snowpack, and a recommendation to use MJML/React-based email tooling instead of Handlebars for server-rendered email templates.
Key Arguments: Use VS Code features like peek definition, go-to-definition, and autocomplete to inspect TypeScript types because tooltips are too small for full definitions. Cheat sheets are less useful than real code examples, comments, and markdown notes that document recurring workflows. Pick hosting based on app type: Vercel for Next.js, Netlify for broad frontend/serverless needs, and Render for long-running Node apps plus background jobs. Models should generally be singular because a schema describes one entity; pluralization belongs in collection access or relationships. Responsive design should be the default for websites; adaptive design is only justified for truly distinct mobile vs desktop apps. In GraphQL, validate via input types, create/update/delete mutations, and return complete enough payloads to avoid client merge issues. For complex nested writes, create parent records and related child records carefully, often using framework-supported nested create behavior. The best way to learn or regain fluency is to build real projects, not just watch tutorials or read about tools. MJML is preferable to Handlebars for many HTML email workflows because it simplifies responsive email rendering and inlining. Marketplace platforms must plan for fraud, chargebacks, tax handling, and legal/regulatory complexity before they worry about framework choice.
Data Points: hosting platform options discussed: 3 main platforms - FreshBooks ad read aside, the episode compares Netlify, Vercel, and Render as deployment choices automatic invoice reminders: a couple times a year - FreshBooks discussion about recurring follow-ups on invoices background functions: supported by Netlify and Render - Used as an example of a platform feature not universally available cron/scheduled jobs: supported by Render and Begin - Mentioned as an important differentiator for apps that need periodic tasks old project age example: 3 or 4 years - Wes describes not having written create-class React code for several years email workflow migration: moved to MJML - Level Up Tutorials moved from Handlebars to MJML for server-side email rendering coupon code discount: 10 bucks off - Advanced React course promotion with coupon code syntax course subscription discount: 25% - Level Up Tutorials pro annual signup promotion
Pivotal Quotes: "You don't use cheat sheets. I don't know why, they've never really benefited me." — Scott: On methods for remembering concepts when switching between technologies "Vercel is Next.js the host." — Wes: Summarizing how each platform should be mentally categorized "The best way to learn or regain fluency is to build stuff." — Scott: Advice to a listener asking how to stop relying on tutorials
Implications: Listeners are encouraged to choose tools by fit, not hype: use responsive design by default, pick the right host for runtime needs, model data clearly, and learn by shipping real projects. The episode reinforces pragmatic engineering over memorization.
About Syntax - Tasty Web Development Treats
View all episodes from Syntax - Tasty Web Development Treats