Logo
    Search

    Podcast Summary

    • Understanding the unexpected challenges of installing light switches and exploring web development trends from the CSS almanacThe CSS almanac reveals that 92% of web pages use box-sizing: border-box, making website building more efficient by including padding and border in total dimensions. Other web development trends discussed include the rise of component-based design and the importance of accessibility.

      While installing light switches might seem like a simple home improvement project, it can come with unexpected challenges. Meanwhile, in the world of web development, the HTTP archive's CSS almanac reveals some interesting trends. One of the most notable findings is that an overwhelming 92% of web pages use box-sizing: border-box, which is not the default setting. This trend makes building websites more efficient, as it ensures that the total width and height of an element includes the padding and border. Sponsors Prismic, Sanity, and LogRocket provide tools to help developers create and optimize web pages and applications. While Scott shares his experience with the challenges of installing light switches, we delve deeper into the CSS almanac, discussing other popular trends and their implications for web development.

    • Box-sizing: border-box and CSS columnsBox-sizing: border-box simplifies calculations by including padding and border in an element's total width. CSS columns allow content to flow vertically and fit in specific dimensions.

      The use of the box-sizing: border-box property in CSS has become a standard practice due to its numerous benefits. This property, which was popularized by Paul Irish in a blog post, allows the padding and border dimensions to be included in the total width of an element, making calculations easier and more consistent. Box sizing border-box has become a staple in popular frameworks like Bootstrap and is now widely adopted. Another interesting finding is that while 44% of websites declare box-sizing on the star selector (*), it's recommended to set it on the HTML element and then inherit it to child elements for better performance. Additionally, CSS columns, which were previously thought to have limited use cases, have seen an increase in popularity, with 23% of websites now using them. They are particularly useful when content needs to fit in a specific dimension and flow vertically rather than horizontally. New properties such as column-count, column-fill, column-gap, and column-width have also been added to expand the capabilities of CSS columns. While some older properties like orphans and widows may seem outdated, they still have their uses and will be explored further in future discussions.

    • Exploring Aspect Ratio and Transitions in CSSAspect ratio and transitions add dynamic visuals to websites. Use aspect ratio with caution, especially with Safari and nested ratios. Transition smoothly on transform and maybe color for best results. New transform properties simplify animations. CSS support for these properties is improving, and longer animations are popular but should be used wisely.

      Aspect ratio and transitions are two exciting new properties in CSS that have gained significant attention from developers. Aspect ratio, used by only 2% of pages, is a new property that can cause some hiccups, especially with Safari and nested aspect ratios. Transitions, on the other hand, are widely used, with the most popular properties being "all," opacity, and transform. However, it's recommended to only transition on transform and maybe color to ensure smooth animations. The new version of transform uses the translate or rotate properties, making animations clearer and easier to animate. CSS support for these properties is improving rapidly, with Chrome, Edge, and Firefox all adopting them in the past year. The median transition duration has also increased to one second from half a second, which may be due to the popularity of longer animations. However, it's important to note that longer animations may not always be desirable, and developers should consider their audience and the specific use case before implementing them. Overall, aspect ratio and transitions offer exciting possibilities for creating dynamic and visually appealing websites.

    • Keeping animation simple and efficientAnimations often use few keyframes (2-5) and popular timing functions like ease in out and linear. CSS sprites and steps can be used as timing functions, especially for game-style animations. Pre-existing easing functions are commonly used instead of creating custom ones.

      When it comes to animation, keeping it simple and efficient is key. The speaker, an animation enthusiast, shared his preference for faster animations, with keyframes numbering as few as possible. He explained that most animations use just a few keyframes, typically between 2 and 5, and that longer animations with more keyframes are less common. He also mentioned the popularity of timing functions like ease in out and linear, and introduced the concept of CSS sprites and steps as timing functions, particularly useful for animation with sprites or keyframes in a video game style. The speaker also shared his approach to using pre-existing easing functions rather than creating custom ones. Overall, the discussion emphasized the importance of simplicity and efficiency in animation, and explored various techniques for achieving this.

    • TypeScript types and blend modes enhance design and development workflowsPrismic's TypeScript types simplify API usage, while blend modes in CSS enable text effects previously only possible with images

      Prismic provides TypeScript types for developers, making it easier to work with their APIs in various frameworks like React and Svelte. This feature enhances productivity by offering IntelliSense typing right in the text editor. Additionally, blend modes in CSS offer designers the ability to create effects that were previously only achievable through image manipulation. Blend modes allow for overlays and gradients to be applied directly to text, eliminating the need for rasterized images or complex opacity adjustments. Some commonly used blend modes include multiply, overlay, and screen, among others. While understanding the math behind these functions can be complex, experimenting with them in design tools like Figma can help developers gain a better grasp of their capabilities. Overall, these features from Prismic and CSS enhance design and development workflows, saving time and effort.

    • Understanding Real-World Usage of Design Features and BreakpointsDevelopers should consider real-world usage of design features and breakpoints, as they may differ from assumptions, with 34% of users preferring reduced motion and the most popular breakpoint being 941 pixels.

      While developers may anticipate the use of container queries in responsive web design, media queries with max and min width are currently the most common method for creating responsive designs. However, there are other features like min device pixel ratio, prefers reduced motion, and orientation that are used for feature detection and accessibility checking. The preference for reduced motion is used by 34% of users, and the most popular breakpoint is 941 pixels, which is the size of a standard iPad. It's important for developers to understand the real-world usage of various design features and breakpoints, as they can differ from what developers assume.

    • Breakpoints in web design correspond to Bootstrap's built-in sizes and grid system, not iPhone sizes.Bootstrap's breakpoints influence design choices, feature queries and at-rules offer flexibility, and tools like LogRocket provide insights into user behavior.

      The most commonly used breakpoints in web design correspond to Bootstrap's built-in sizes: extra small, small, medium, large, large, extra large, and extra extra large. These sizes are not related to iPhone sizes, but rather to Bootstrap's grid system. For instance, 768 pixels, which is a 4 by 3 presentation slide size, corresponds to Bootstrap's medium size. The web is not entirely built on Bootstrap, but it is a widely used framework that influences design choices. Another interesting finding is the use of feature queries and at-rules, such as position sticky and mask image, which offer flexibility in design and are well-supported by modern browsers. Feature queries allow checking for the availability of specific CSS features, while mask image allows masking an image with a path. These techniques enable dynamic and responsive design without the need for media queries. Additionally, tools like LogRocket provide valuable insights into user experience and product analytics, allowing developers to understand user behavior and optimize their websites accordingly.

    • New logical and physical properties in web developmentThese new properties help websites adapt to different languages and display directions, benefiting developers creating multilingual sites.

      There are new properties in web development called logical and physical properties, which aim to make websites adaptable to different display directions in various languages. These properties replace traditional top, bottom, left, and right with block and inline properties, which change depending on the language direction. For instance, in right-to-left languages, block properties become block end, and inline properties become inline start. This new approach can be beneficial for developers who need to create websites in multiple languages, but it might not be necessary for everyone. Additionally, there's a growing trend in using support queries to optimize web content based on specific browser capabilities. For example, some developers might use it to create sticky videos with rounded borders that stay in the corner when scrolling. However, the most common use cases for support queries are still being explored, and it's unclear what exactly people are using it for. Overall, these new properties and techniques can expand the capabilities of web development and make websites more accessible to users in various regions and languages.

    • CSS and JS libraries vs utility CSS frameworks debateCSS and JS libraries offer scoping capabilities but can be unwieldy for themes and design systems. Utility CSS frameworks like Tailwind provide a streamlined approach but lack the advanced features of CSS and JS libraries. Houdini, an API for advanced CSS features, is still in development.

      CSS and JS libraries, specifically style components, continue to dominate the scene with a significant market share. However, the tide is turning as more developers are exploring utility CSS frameworks like Tailwind and even smaller solutions like Goober. The debate around CSS and JS vs utility CSS revolves around their respective strengths and weaknesses. While CSS and JS libraries offer scoping capabilities and can be used effectively for specific components, they can become unwieldy when dealing with themes, design systems, and design tokens. On the other hand, utility CSS frameworks like Tailwind provide a more streamlined approach with pre-defined classes for various design elements. The speaker also mentioned the emergence of Houdini, an API that promises access to advanced CSS features, but its usage remains limited due to its current state of development. Overall, the choice between CSS and JS libraries and utility CSS frameworks depends on the specific project requirements and developer preferences.

    • The Decline of Sass and the Importance of Print CSSSass is less necessary due to CSS's evolution, print CSS remains essential for receipts, invoices, and documents, and Sanity simplifies managing structured content within React apps.

      Sass, a popular CSS extension, is becoming less necessary as CSS continues to evolve and offer features like variables, nesting, and color functions. Only 5% of desktop sites use print-specific styles, and print CSS can be challenging to debug. However, it's still essential for creating print versions of receipts, invoices, and other documents. The most popular longhand CSS property is background-size, which is used three times more often than other properties due to its forgettable shorthand. Sanity, a sponsor of this podcast, offers a platform for structured content that powers digital experiences for companies like Puma, Sonny, and Skims. Their Sanity Studio is getting a major upgrade, allowing developers to embed it directly into their React applications, reducing maintenance and offering full TypeScript coverage. When it comes to print styles, essential properties include page-break-inside and page-break-after, which determine where new pages begin. These properties can be applied to any element, making it easier to control the layout of printed documents. Print CSS can be challenging to debug, as there's no inspect feature when previewing print versions. The best approach is to preview the print version directly in the browser. In summary, Sass is becoming less essential as CSS evolves, print styles are still important for specific use cases, and Sanity offers a powerful solution for managing structured content within React applications.

    • The Mysterious 'Archetype' CSS PropertyDespite the common use of shorthand CSS properties, an unknown property called 'archetype' has emerged in 11% of cases with nonexistent properties. Its origin and purpose are unclear, likely a mistake from a server or compiler.

      Developers often use shorthand CSS properties instead of longhand ones for common styles like background, font size, and line height. However, there is a mysterious nonexistent property called "archetype" that has been appearing in an increasing number of style sheets, making up around 11% of cases with nonexistent properties. The origin and purpose of this property remain unknown, but it's likely a mistake from a server or a typography compiler. The discussion also touched upon the use of shorthand for margin properties and the most common nonexistent properties like font smoothing, behavior, and tap highlight color. The conversation ended with a light-hearted note about exploring the world of JavaScript and its common variable names.

    • Exploring Alternatives to Drilling for Car AccessoriesConsider screw-in tow bars and server racks for car accessories instead of drilling. These solutions are less damaging and more convenient.

      There are alternative solutions to drilling into a car's bumper to install certain accessories, such as tow hooks or license plate frames. The speaker shared his experience using a screw-in tow bar and a server rack to mount his audio interface and headphone hook under his desk, respectively. Both solutions were more convenient and less damaging to the car than drilling. The speaker also mentioned the importance of considering local laws regarding license plate stickers. He concluded by sharing his positive experience with a specific 1U server rack and encouraged listeners to explore such alternatives for their own needs. Additionally, he reminded listeners to consider the potential impact of moving on any permanently installed equipment and to be aware of the availability and shipping costs of certain products in different regions.

    • Exclusive Black Friday Deals from Level Up Tutorials and Westboss.comLevel Up Tutorials is having a 50% off sale on yearly subscriptions before price increase, while Westboss.com offers a $10 discount with coupon code 'syntax' on courses.

      Both Level Up Tutorials and Westboss.com are offering great deals during Black Friday. Level Up Tutorials is having a 50% off sale on their yearly subscriptions, which will be the last chance to secure this price as they plan to raise it with their new site launch. The new site will feature new content and features, making it a worthwhile investment. Westboss.com, on the other hand, will have a sale with a $10 discount using the coupon code 'syntax' for those interested in their courses. So, if you've been considering subscribing to Level Up Tutorials or purchasing a course from Westboss.com, now is the perfect time to do so and save some money. Don't miss out on these exclusive deals!

    Recent Episodes from Syntax - Tasty Web Development Treats

    788: Supabase: Open Source Firebase for Fullstack JS Apps

    788: Supabase: Open Source Firebase for Fullstack JS Apps

    Scott and CJ chat with Paul Copplestone, CEO and co-founder of Supabase, about the journey of building an open source alternative to Firebase. Learn about the tech stack, the story behind their excellent documentation, and how Supabase balances business goals with open-source values.

    Show Notes

    • 00:00 Welcome to Syntax!
    • 00:30 Who is Paul Copplestone?
    • 01:17 Why ‘Supa’ and not ‘Super’?
    • 02:26 How did Supabase start?
    • 08:42 Simplicity in design.
    • 10:32 How do you take Supabase one step beyond the competition?
    • 12:35 How do you decide which libraries are officially supported vs community maintained?
      • 15:17 You don’t need a client library!
    • 16:48 Edge functions for server-side functionality.
    • 18:51 The genesis of pgvector.
    • 20:59 The product strategy.
    • 22:25 What’s the story behind Supabase’s awesome docs?
    • 25:26 The tech behind Supabase.
    • 35:46 How do you balance business goals with open source?
    • 42:01 What’s next for Supabase?
    • 44:15 Supabase’s GA + new features.
    • 48:24 Who runs the X account?
    • 50:39 Sick Picks + Shameless Plugs.

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott: X Instagram Tiktok LinkedIn Threads

    CJ: X Instagram YouTube TwitchTV

    Randy: X Instagram YouTube Threads

    787: You Should Try Vue.js

    787: You Should Try Vue.js

    Scott and CJ dive deep into the world of Vue.js, exploring what makes this frontend framework unique and why it stands out from React and Svelte. CJ gives a comprehensive tour, covering everything from getting started to advanced features like state management and Vue’s built-in styles.

    Show Notes

    Vue.js: The Documentary.

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott: X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    786: What Open Source license should you use?

    786: What Open Source license should you use?

    Scott and CJ dive into the world of open source, breaking down its meaning, benefits, and the various types of licenses you’ll encounter. From permissive licenses like MIT and Apache 2.0 to copy-left licenses such as GNU GPLv3, they’ll help you choose and apply the right license for your project.

    Show Notes

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott: X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    785: What’s Next for NextJS with Tim Neutkens

    785: What’s Next for NextJS with Tim Neutkens

    Scott and Wes dive into the world of Next.js with special guest Tim Neutkens from Vercel. They explore the latest updates, including the React Compiler and React Server Components, discussing their impact on developer workflows and the future of Next.js development.

    Show Notes

    • 00:00 Welcome to Syntax!
    • 00:30 What does the React Compiler do?
    • 05:04 Will React Compiler help with managing Context?
    • 06:39 What happens if you’re not using a React Compiler?
    • 09:30 Will this work on any NextJS version?
    • 12:18 What are React Server Components?
    • 16:28 Shipping all the data inside an encapsulated component.
    • 20:17 Clearing up the frustrations around retrofitting server components.
    • 23:13 Handing migration.
    • 28:30 Is this just a fetch request with props?
    • 36:41 How closely are the NextJS and React teams working?
    • 41:53 Will we ever get Async Client Components?
    • 43:52 Async Local Storage API.
    • 45:31 Turbopack.
    • 57:51 Sick Picks & Shameless Plugs.

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott: X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    784: Logging × Blogging × Testing × Freelancing

    784: Logging × Blogging × Testing × Freelancing

    In this Potluck episode, Scott and Wes tackle listener questions on modern blogging, website environmental impact, and using LangChain with LLMs. They also cover CSS hyphens, unit vs. integration testing, and balancing web development with new parenthood.

    Show Notes

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott: X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    783: How We Built a Netflix Style “Save for Offline” Feature Into Syntax

    783: How We Built a Netflix Style “Save for Offline” Feature Into Syntax

    Scott and Wes dive into the world of browser caching for audio files, exploring the File System API and the Cache API. They discuss size restrictions across different browsers, how tools like Riverside.fm leverage IndexedDB, and walk through code examples for creating, retrieving, and managing cached audio data.

    Show Notes

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    782: The Developer’s Guide To Fonts with Stephen Nixon

    782: The Developer’s Guide To Fonts with Stephen Nixon

    Scott and CJ are joined by Stephen Nixon of ArrowType to delve into the world of fonts and type for developers. They explore the intricacies of font creation, the utility of variable fonts, and offer tips for making visually appealing typography on the web.

    Show Notes

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    781: Potluck - The Value of TypeScript × Vue vs Svelte × Leetcode

    781: Potluck - The Value of TypeScript × Vue vs Svelte × Leetcode

    In this potluck episode of Syntax, Scott and CJ serve up a variety of community questions, from the nuances of beginner vs. advanced TypeScript to the pros and cons of SvelteKit. They also discuss falling out of love with React, shipping private packages via NPM, and the eternal struggle of always starting but never finishing projects.

    Show Notes

    Sick Picks

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    780: Cloud Storage: Bandwidth, Storage and BIG ZIPS

    780: Cloud Storage: Bandwidth, Storage and BIG ZIPS

    Today, Scott and Wes dive into cloud storage solutions—why you might need them, how they use them, and what you need to know about the big players, fees, and more.

    Show Notes

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    779: Why SQLite is Taking Over with Brian Holt & Marco Bambini

    779: Why SQLite is Taking Over with Brian Holt & Marco Bambini

    Scott and CJ dive into the world of SQLite Cloud with special guests Brian Holt and Marco Bambini. They explore why SQLite is gaining traction, its unique features, and the misconceptions surrounding its use—let’s get into it!

    Show Notes

    • 00:00 Welcome to Syntax!
    • 01:20 Who is Brian Holt?
    • 02:26 Who is Marco Bambini?
    • 05:12 Why are people starting to talk so much about SQLite now?
    • 08:47 What makes SQLite special or interesting?
    • 09:46 What is a big misconception about SQLite?
    • 11:13 Installed by default in operating systems.
    • 12:03 A perception that SQLite is intended for single users.
    • 13:36 Convincing developers it’s a full-featured solution.
    • 15:11 What does SQLite do better than Postgres or MySQL?
    • 17:30 SQLite Cloud & local first features.
    • 20:38 Where does SQLite store the offline information?
    • 23:08 Are you typically reaching for ORMs?
    • 25:00 What is SQLite Cloud?
    • 27:29 What makes for an approachable software?
    • 29:18 What make SQLite cloud different from other hosted SQLite options?
    • 32:13 Is SQLite still evolving?
    • 34:40 What about branching?
    • 37:37 What is the GA timeline?
    • 40:04 How does SQLite actually work?
    • 41:19 Questions about security.
    • 44:28 But does it scale?
    • 45:52 Sick Picks + Shameless Plugs.

    Sick Picks

    Brian: Trainer Road
    Marco: Tennis

    Shameless Plugs

    Hit us up on Socials!

    Syntax: X Instagram Tiktok LinkedIn Threads

    Wes: X Instagram Tiktok LinkedIn Threads

    Scott:X Instagram Tiktok LinkedIn Threads

    Randy: X Instagram YouTube Threads

    Related Episodes

    Rachel Andrew on contributing to CSS and CSS Layout

    Rachel Andrew on contributing to CSS and CSS Layout
    Joy Heron talks with Rachel Andrew about CSS Layout. Rachel shares her journey as a web developer and how the web has changed over that time. They discuss Rachel’s work with the CSS working group and how developers can get involved to improve the web for the future. Rachel also talks about the current status of CSS layout and what we can expect in the near future. To wrap up, Rachel shares some practical tips and they discuss the future of the web platform.

    How to Build a Website — The Show For Beginners

    How to Build a Website — The Show For Beginners

    In this episode of Syntax, Scott and Wes talk about the basics of building a website — how to get started for beginners!

    Freshbooks - Sponsor

    Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section.

    Sentry - Sponsor

    If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

    Mux - Sponsor

    Mux Video is an API-first platform that makes it easy for any developer to build beautiful video. Powered by data and designed by video experts, your video will work perfectly on every device, every time. Mux Video handles storage, encoding, and delivery so you can focus on building your product. Live streaming is just as easy and Mux will scale with you as you grow, whether you’re serving a few dozen streams or a few million. Visit mux.com/syntax.

    Show Notes

    04:20 - HTML

    • HTML is the language you write to get text and elements to show up on the screen
    • Elements can describe the content they contain
      • p
      • img
    • Or be structural and describe the areas of the website
      • div
      • h
      • header, footer
    • Listen to our ep on HTML elements to learn more about them: Syntax 354: The Surprisingly Exciting World of HTML Elements
    • HTML elements have default styling applied to them before you write any CSS
      • This comes from the browser and can be manipulated
      • However, by default all elements are either block or inline-display

    08:11 - CSS

    • If HTML is the bones, CSS is the clothes and skin
    • CSS dictates how a website looks
      • Without CSS, you have text on a blank page and images
    • CSS stands for Cascading Style Sheets (“cascading” being the key word)
    • Adding CSS to a page
      • Link tag
      • Style tag
      • Inline styles
    • Selectors
      • You can select an element on the page via element, class, id, attribute
      • Syntax is selector, brackets, property, value
    • Property
      • A property is what you are changing (e.g. background-color)
    • Value determines how the thing looks
      • background: red;
    • Specificity
      • Specificity is a big part of the cascade. When you apply one style to something, you need to learn how to target things appropriately. This is a huge part of being good at CSS.
      • People develop systems like BEM to organize this
      • General rules - Use elements for base styling and classes for specific styling. Don’t use IDs for styling.
      • !important exists to override everything, but as a general rule, NEVER use it. Seriously.
    • Some interaction
      • Most interaction is done in JavaScript, but CSS has some basics
        • hover, active, focus
    • Pseudo selectors
    • You’ll often see people reaching for libraries to make CSS easier and more consistent
      • Common examples are Bootstrap, Foundation, and TailwindCSS
      • For the most part you’ll want to avoid these until you have a good understanding of the cascade, how CSS works, and how to write good CSS.
    • In addition to properties, you can now write your own custom properties for CSS.
      • While this could be seen as an advanced technique, I believe the new normal is CSS variables first.
      • CSS variables are indicated by —variableName: value; where variable name takes the place of a property.
      • You can then use the variable via var(—variableName) in place of a property. This allows for easy duplication of same values across your style sheet.

    37:08 - JavaScript

    • JavaScript is used to add interaction to a website
    • It makes your website dynamic

    JavaScript the Language

    • We have a base programming language that has nothing to do with HTML
    • It has things like:
      • Variables - ways to store things
      • Numbers + Math
      • Data Containers - Objects and Arrays
      • Functions - Code grouped together to achieve a certain purpose
    • It also has a “Standard Lib” which means JavaScript comes with built-in support for doing common things:
      • Formatting time + money
      • Alerting the user
      • Logging a value to developer tools
      • Capitalizing things
      • Sorting lists of things
      • Round or randomize numbers
      • Fetch data
      • Talk to a sever
    • Promises
      • Logic and flow control

    JavaScript the DOM

    • When the HTML is loaded, it’s parsed into something called the DOM (Document Object Model)
    • Events
      • JavaScript is mostly event-driven - when something happens, do something else
      • When you click something and want something else to happen
      • There are lots of events
        • mouse, touch, pointer
        • Ready
        • Forms
          • Submit, change, keyboard, etc.
    • Can be used to fetch data
      • fetch() - you’ll often hear it called Ajax, or XMLHttpRequest
    • Can be used to make more HTML
      • Whole set of APIs for creating elements
    • The DOM can be traversed

    Links

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats!

    Syntax Highlight

    Syntax Highlight

    In this episode of Syntax, Scott and Wes review your portfolios and websites including some from Harryxli, Austin Baird, Jacks Portfolio, and more!

    Linode - Sponsor

    Whether you’re working on a personal project or managing enterprise infrastructure, you deserve simple, affordable, and accessible cloud computing solutions that allow you to take your project to the next level. Simplify your cloud infrastructure with Linode’s Linux virtual machines and develop, deploy, and scale your modern applications faster and easier. Get started on Linode today with a $100 in free credit for listeners of Syntax. You can find all the details at linode.com/syntax. Linode has 11 global data centers and provides 24/7/365 human support with no tiers or hand-offs regardless of your plan size. In addition to shared and dedicated compute instances, you can use your $100 in credit on S3-compatible object storage, Managed Kubernetes, and more. Visit linode.com/syntax and click on the “Create Free Account” button to get started.

    LogRocket - Sponsor

    LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It's an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

    Tabnine - Sponsor

    Tabnine is your teams' go to AI assistant. Using a variety of machine learning models, Tabnine learns from your team's best practices, and suggests code completions based on your code.

    It supports over 30 languages and is available in most IDEs. Tabnine's universal models are trained strictly on fully permissive open source code, and can run locally, meaning that your code stays yours.

    Get the free version at tabnine.com/now or go to tabnine.com/promo/syntax to get 50% off your first 3 months of Tabnine Teams.

    Show Notes

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats

    When Borders Collapse: Inside the World of Web Standards with Eric Meyer

    When Borders Collapse: Inside the World of Web Standards with Eric Meyer

    The history and the future of CSS: this week Paul and Rich talk to Eric Meyer, an expert on HTML and CSS for more than two decades, about web design and standards. Touching on both basic and more technical aspects of CSS, topics covered include the development of the style sheet language, the incompatibility of early web browsers, accessibility (or lack thereof) in modern web design, and, of course, what the W3C CSS working group’s after-parties are like.

    See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.

    Supper Club × Polypane with Kilian Valkhof

    Supper Club × Polypane with Kilian Valkhof

    In this supper club episode of Syntax, Wes and Scott talk with Kilian Valkhof about his work on Polypane, a browser for developers. How is Polypane built? Why does he have a focus on accessibility in Polypane?

    Show Notes

    Shameless Plugs

    Tweet us your tasty treats