Logo
    Search

    Podcast Summary

    • Applying Marie Kondo's tidying up method to codeRefine old and new code for better readability, maintainability, and efficiency. Delete unused imports, refactor code, ensure proper indentation, use descriptive variable names, and keep code DRY.

      Just as it's important to keep our physical spaces tidy and organized, it's equally important to maintain clean and efficient code. In this episode of Syntax, hosts Scott Tolinski and Wes Bos discussed the benefits of reviewing and refining old and new code. They emphasized the importance of making code better for yourself and your team. Scott introduced Century.io, a tool that helps developers track errors, exceptions, and bugs. Century integrates with various platforms like GitHub, Heroku, Slack, and more, making it easier to manage and address issues. He particularly appreciated the integration with GitHub, which allows for the creation of GitHub issues directly from Sentry. Drawing inspiration from Marie Kondo's "Tidying Up" Netflix special and book, the hosts applied the Japanese method to code organization. They shared tips for improving code quality during spare hours, such as: 1. Deleting unused imports and files. 2. Refactoring code for better readability and maintainability. 3. Ensuring proper indentation and spacing. 4. Using descriptive variable names. 5. Keeping code DRY (Don't Repeat Yourself). By following these tips, developers can create a cleaner, more efficient codebase that is easier to navigate and maintain. Scott encouraged listeners to check out Century.io and use the coupon code "tastytreat" for a free 2-month trial.

    • Remove Unused Code for a Leaner CodebaseRegularly review and delete commented-out code and unused CSS to keep your application lean and efficient. Tools like PurgeCSS can help automate the process.

      Keeping unnecessary code in your application, whether it's commented out or unused CSS, can clutter your codebase and make it harder to maintain. It's essential to regularly review and remove any unused or unneeded code to keep your application lean and efficient. During the discussion, the speakers highlighted the issue of commented-out code. It's a common occurrence to keep a block of code commented out, thinking that you might need it later. However, in reality, that code often sits unused, taking up space and potentially causing confusion for other developers. The solution is simple: delete the commented-out code and make a descriptive commit explaining what was removed. Another area of focus was unused CSS. Over time, CSS rules can accumulate, even if they're not being used in the application. This excess CSS can add unnecessary weight to your application and potentially impact performance. To address this issue, it's recommended to regularly review your CSS and remove any rules that are not being used. Tools like PurgeCSS can help automate this process by analyzing your code and removing unused CSS. In summary, regularly removing unused and unneeded code is a crucial aspect of maintaining a clean and efficient codebase. By keeping your codebase lean, you'll make it easier for yourself and other developers to work on the project, improve performance, and reduce potential confusion.

    • Optimize Unused CSS and JavaScript for Better Website PerformanceRegularly identify and remove unused CSS and JavaScript to reduce bundle size, improve website loading times, and maintain a lean and efficient codebase.

      Optimizing unused CSS and JavaScript in web development projects can significantly improve website performance and reduce unnecessary data transfer for users. Unused CSS and JavaScript can accumulate over time, especially in larger projects with multiple developers, making it essential to identify and remove them regularly. Tools like Chrome DevTools, extensions, and libraries can help identify unused CSS and JavaScript. However, manually checking for unused elements and thanking them for their service, as in the Marie Kondo method, can also be an amusing yet effective way to ensure a clean codebase. Using JavaScript modules, CSS modules, and importing CSS files correctly can help prevent unused elements from making it into the final build. By removing unnecessary code, developers can reduce the overall bundle size and improve website loading times. Additionally, unused functions and other JavaScript code can also contribute to larger bundle sizes. Developers should regularly review their code and remove any unused functions or unnecessary code to maintain a lean and efficient codebase. The longer unused code remains in a project, the more difficult it becomes to remove, so it's essential to address it early on. Regularly cleaning up unused code not only benefits users by reducing data transfer but also makes development more efficient and enjoyable.

    • Refactor and organize codebase for better structure and understandingRefactor and organize code for improved project structure and ease of navigation. Create index files for imports, separate functions based on functionality, and maintain tests to ensure stability during changes.

      As your project grows, it's essential to refactor and organize your codebase into a system that works best for you and your team. This might involve moving functions into different files and folders, evaluating the structure of your project, and breaking out components into new files when necessary. Having tests and a process to ensure you're not breaking anything is crucial during these changes. Additionally, consider using index files for importing and exporting related files as named imports. Remember, it's your project, and the goal is to create a system that makes your codebase easier to find, navigate, and understand. Furthermore, be mindful of when to create new components or files based on the functionality of the code. For instance, if you have a collection of functions that operate on different objects, it might make more sense to separate them into files based on those objects. Overall, the key is to continually assess and adjust your codebase to ensure it remains efficient and effective for your project's needs.

    • Maintaining and improving code qualityRefactor old code, organize files, simplify complexity, consider impact on self and others, and focus on creating a codebase that sparks joy and is a pleasure to work on.

      Maintaining and improving the quality of your codebase is crucial for efficiency and enjoyment. The process of organizing and breaking down related and unrelated parts of your code into appropriate files is a valuable skill. Refactoring old code using techniques like map, filter, and reduce can simplify complexity and reduce lines of code. Additionally, it's essential to consider the impact of your code on yourself and other developers. Keeping your codebase clean, understandable, and enjoyable to work on can lead to increased productivity and satisfaction. Refactoring and simplifying code not only makes your codebase more manageable but also reduces the risk of encountering unexpected issues. Remember, the goal is to avoid opening files that instill fear or dread, and instead focus on creating a codebase that sparks joy and is a pleasure to work on.

    • Document your code effectively with comments and toolsEffectively document code with comments and tools like Prettier, ESLint for consistency and accessibility.

      Effective coding involves adding meaningful comments to your code and using tools like Prettier and ESLint to maintain code formatting and accessibility. Comments in code are essential for documenting your thought process and explaining edge cases or unconventional choices. They help both the author and other developers understand the logic behind the code. A good commenting system, such as the one offered by the Code Obsessive extension for Visual Studio Code, can make your comments more visible and easier to understand with different color-coding for various types of comments. Moreover, using tools like Prettier and ESLint can help maintain a clean and consistent codebase. These tools can automatically format your code and check for accessibility issues, making your codebase more readable and easier to navigate. When adding these tools to a project, it's generally best to format the entire project in one commit to ensure consistency across all files. By incorporating these practices, you can create a well-documented and easily maintainable codebase that sparks joy and makes development a more enjoyable experience.

    • Maintaining code formatting and CSS stylesRegularly address formatting issues and ESLint errors file by file, refine CSS systems periodically, and adopt object-oriented CSS approaches for better management.

      Consistently maintaining code formatting and CSS styles is crucial for an efficient and effective codebase. The speaker emphasizes the importance of addressing formatting issues and ESLint errors file by file, rather than in bulk, to ensure better understanding of coding decisions and continuous improvement of personal ESLint settings. Regarding CSS, the speaker suggests periodically reevaluating and refining the system to keep file sizes small and code functioning optimally. Object-oriented CSS approaches, such as those advocated by Nicole Sullivan, can also be beneficial in organizing and managing complex CSS systems. Overall, investing time in these practices leads to a more manageable and high-performing codebase.

    • Keep your code clean and organized for a better coding experienceApplying OOCSS principles and regularly evaluating code can lead to a more enjoyable and productive coding environment

      Clean and well-organized code is essential for an enjoyable and productive work environment, as discussed by Nicole Sullivan in her 2009 article on Object-Oriented CSS. Sullivan's pioneering work laid the foundation for modern CSS methodologies like BEM. By applying these principles to our own code, we can create a more spacious and enjoyable coding environment, much like Marie Kondo's "spark joy" philosophy. This not only makes our work more enjoyable but also increases efficiency. It's important to regularly evaluate and improve our code, as cluttered and disorganized code can make the coding process feel confining and less enjoyable. So, take a cue from Sullivan and Kondo, and strive to keep your code as clean and organized as possible. For more insights on this topic, check out Nicole Sullivan's work on CSS. And remember, a little organization can go a long way in making your coding experience more enjoyable and productive.

    Recent Episodes from Syntax - Tasty Web Development Treats

    790: State of JS 2023 Reactions

    790: State of JS 2023 Reactions

    Scott and Wes dive into the 2023 State of JavaScript survey, breaking down the latest trends and pain points in front-end frameworks, build tools, and JavaScript runtimes. Tune in for their hot takes and insights on what’s shaping the JavaScript landscape this year!

    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

    789: Do More With AI - LLMs With Big Token Counts

    789: Do More With AI - LLMs With Big Token Counts

    Join Scott and CJ as they dive into the fascinating world of AI, exploring topics from LLM token sizes and context windows to understanding input length. They discuss practical use cases and share insights on how web developers can leverage larger token counts to maximize the potential of AI and LLMs.

    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

    CJ: X Instagram YouTube TwitchTV

    Randy: X Instagram YouTube Threads

    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

    Related Episodes

    News 21/22: PostgreSQL 15 // DALL-E 2 Updates // Updates zu Tailwind, ESLint Plugin for Vue & Deno

    News 21/22: PostgreSQL 15 // DALL-E 2 Updates // Updates zu Tailwind, ESLint Plugin for Vue & Deno

    Jojo präsentiert uns heute ein großes Update von PostgreSQL, das nun in der ersten Beta verfügbar ist. Neben der Performance wurde vor allem die Developer Experience verbessert.

    Winzige Updates gibt es zu Tailwind, ESLint for Vue und Deno 1.22. Zudem referenziert Sebi einen Twitter-Thread, der Web-Dev Tools mit Hautpflegeprodukten vergleicht.

    Am Ende diskutieren wir erneut über DALL-E 2. Zum einen hat Marques Brownlee ein sehr informatives und unterhaltsames Video zum Thema veröffentlicht und zum anderen gibt es ein Update von OpenAI zum Status des Projekts.


    Schreibt uns!
    Schickt uns eure Themenwünsche und euer Feedback: podcast@programmier.bar

    Folgt uns!
    Bleibt auf dem Laufenden über zukünftige Folgen und virtuelle Meetups und beteiligt euch an Community-Diskussionen.

    Twitter
    Instagram
    Facebook
    Meetup
    YouTube

    Supper Club × Nate Weinert and Tamagui

    Supper Club × Nate Weinert and Tamagui

    In this supper club episode of Syntax, Wes and Scott talk with Nate Weinert, creator of Tamagui, about what Tamagui is, how styling works in React native, building and designing the Tamagui website, and more.

    Show Notes

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats

    ESLint rules for Power Apps with Sid Gundavarapu and Jesse Parsons

    ESLint rules for Power Apps with Sid Gundavarapu and Jesse Parsons

    Daryl and Scott interview Sid Gundavarapu and Jesse Parsons from Microsoft, and chat about the ESLint rules for Power Apps model-driven apps and Dynamics 365 CE.

    Some of the highlights:

    • What is ESLint?
    • What are ESLint rules for Power Apps and Dynamics 365?
    • ESLint is like a grammar check for code
    • Power Apps ESLint npm package vs Solution Checker
    • Targeted audience for ESLint rules 
    • Security-focused ESLint rules
    • ESLint auto-fix
    • Daryl's Christmas wish
    • Recommended approach for those who are not using TypeScript yet
      Spell Checker for VS Code

    Sid's Info:

    Jesse's Info:

    Other links:

    Got questions? Have your own tool you’d like to share? Have a suggestion for a future episode? Contact Daryl and Scott at cast@xrmtoolbox.com. Follow us on LinkedIn and @XrmToolCast for updates on future episodes.

    Do you want to see us too? Subscribe to our YouTube channel to view the last episodes. Don't forget to rate and leave a review for this show at Podchaser.

    Your hosts:
    Daryl LaBar: https://www.linkedin.com/in/daryllabar | @ddlabar
    Scott Durow: https://www.linkedin.com/in/scottdurow | @ScottDurow

    Editor: Linn Zaw Win: https://www.linkedin.com/in/linnzawwin  | @LinnZawWin

    Music: https://www.purple-planet.com

    XrmToolCast
    enSeptember 11, 2022

    Supper Club × ESLint with Nicholas Zakas

    Supper Club × ESLint with Nicholas Zakas

    In this supper club episode of Syntax, Wes and Scott talk with Nicholas Zakas about his creation of ESLint, what’s coming up in ESLint, and his work as a coach and mentor for programmers.

    Show Notes

    ××× SIIIIICK ××× PIIIICKS ×××

    Shameless Plugs

    Tweet us your tasty treats

    Hasty Treat - Code Quality Tooling Part 2

    Hasty Treat - Code Quality Tooling Part 2

    In this Hasty Treat, Scott and Wes continue their discussion about code quality tooling - how to get your code extra nice and clean, and the tools that will help you along the way.

    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 replayer and a performance monitor. Get 14 days free at https://logrocket.com/syntax.

    Show Notes

    2:28

    • Typescript and Types

    5:42

    • Jest and Testing

    7:48

    • Exceptions & Error Tracking

    Links

    Tweet us your tasty treats!