Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

Potluck - API Fetching × PDF Creation × tRPC × Stripe vs PayPal

In this potluck episode of Syntax, Wes and Scott answer your questions about middleman for API fetching, when to introduce SvelteKit, generating PDFs serverside, trade offs of being an entrepreneur vs employee, and more! Prismic - Sponsor Prismic is a Headless CMS that makes it easy to build website

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: Syntax delivers a potluck Q&A covering practical web dev trade-offs: caching slow APIs, SvelteKit’s pre-v1 breaking changes, server-side PDF generation, career-path comparisons, CSS upskilling, TRPC, content management, ageism in tech, Stripe reliability concerns, and personal/professional social media boundaries. The episode mixes tactical advice with candid opinions on tools, industry trends, and developer life.

Main Topics: Caching and proxying slow or rate-limited APIs: A listener asks how to avoid repeatedly waiting on a slow third-party API when data only needs daily refreshes. The hosts recommend caching in memory, using serverless function state, or moving to Redis/database/text-file storage for more control. SvelteKit before version 1 and API churn: The hosts discuss whether teams should adopt SvelteKit now given ongoing major API changes. They explain that significant routing and load-function changes are being made before v1, and advise waiting if training a team to avoid churn. Generating PDFs from web content: They outline modern PDF options: external services, asking users to print to PDF, client-side DOM-to-canvas approaches, and headless browser rendering with Puppeteer/serverless functions as the most flexible server-side route. Career paths: agency, freelancing, tech company, entrepreneurship: A listener asks about the trade-offs across work models. The hosts compare stress, autonomy, communication load, and compensation, noting agency work felt best for mental health, freelancing was hardest, and entrepreneurship most rewarding but stressful. Keeping CSS skills current: A developer who still thinks in floats asks how to catch up with Flexbox and Grid. The hosts recommend deliberate practice, small weekly learning, and building real projects; they also plug their CSS Grid and modern CSS courses. TRPC and type-safe APIs: They introduce TRPC as a way to build fully type-safe APIs without schemas/codegen overhead, positioning it as a lighter alternative to GraphQL and a promising topic for future deep dives. CMS landscape, ageism, and payment platform trust: The episode also touches on JavaScript CMSs vs PHP CMSs, the persistence of ageism in tech, and concerns about Stripe holding funds or freezing accounts, with the hosts emphasizing pragmatic trade-offs and the impact of bad actors.

Key Arguments: Caching is a common and effective fix for slow or rate-limited APIs; simple in-memory objects can store data and a timestamp for staleness checks. Serverless functions are especially suited to short-lived caching because their memory often persists across invocations for hours. For PDFs, headless browser tooling like Puppeteer is the strongest server-side option when HTML/CSS fidelity matters, though telling users to print to PDF is simpler. SvelteKit is undergoing major pre-v1 changes; adopting it now for team training may cause avoidable churn. Agency work can be mentally healthier due to variety, freelancing can be harder because of communication demands, and entrepreneurship offers the most autonomy but highest stress. Modern CSS skills require practice, not just reading; Flexbox and Grid become dramatically easier with use and materially improve layout work. TRPC is appealing because it offers type-safe API calls without GraphQL’s heavier schema/client complexity. Many JavaScript CMSs are strong, but PHP CMSs still lead in ecosystem maturity, plugin/theme convenience, and fast turn-key site building. Age does not determine ability to learn; mindset, curiosity, and practice matter more than chronological age. Stripe’s developer experience remains strong, but operational friction can arise because large payment platforms must guard against fraud and compliance issues.

Data Points: Serverless memory retention: 40–50+ minutes, sometimes a couple hours - Discussing how long cached values may remain available in a serverless function environment Currency API rate limit example: 60 hits per day - Example of a rate-limited API that should not be called on every page load Course length: 4 hours - Scott describes his CSS Grid course from fundamentals to real-world use Teacher learning cadence recommendation: 20 minutes a week - Advice on keeping up with industry changes without burning out Personal branding mix suggestion: 50% personal tweets - Rule of thumb discussed for blending personal and professional posts on Twitter Follow-up on podcast sponsor support: 14 days free - LogRocket’s trial offer mentioned in the ad read

Pivotal Quotes: "We have some issues with how load functionality works." — Wes Boss: Explaining why SvelteKit is making major pre-v1 API changes "You either die a hero or live long enough to become PayPal." — Wes Boss: Describing how large payment companies become more restrictive and frustrating over time "Once you learn Flexbox and Grid, you're going to absolutely feel the hype about them." — Scott Tolinsky: Encouraging listeners to invest time in modern CSS layout tools

Implications: Listeners should expect practical shortcuts for performance and tooling, but also recognize that some ecosystems are still in flux. The episode encourages continuous learning, skepticism toward platform lock-in, and choosing workflows that balance productivity, reliability, and sanity.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats