Best of Frontend DevelopmentSeptember 2024

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Cheatsheets for Developers

    Cheatsheets for developers are quick reference guides summarizing key concepts, commands, and syntax for various programming languages and technologies. Resources like OverAPI.com, Awesome-Cheatsheets, and Bootstrap 4 Cheat Sheet offer aggregated and detailed cheatsheets for technologies like JavaScript, Python, HTML, CSS, and more. These tools assist developers in enhancing their productivity and understanding of complex concepts.

  2. 2
    Article
    Avatar of devtoDEV·2y

    Get Screen Size in Pure CSS

    Learn how to use pure CSS to get screen size measurements, define custom properties, and perform mathematical operations on those properties. This method updates in real-time without JavaScript, utilizing new CSS features like @property, atan2, and tan functions.

  3. 3
    Article
    Avatar of logrocketLogRocket·2y

    Types vs. interfaces in TypeScript

    Types and interfaces in TypeScript are tools used to define the shape of data, and each has specific use cases and capabilities. While interfaces define contracts for objects, types offer more flexibility, allowing for union types, conditional types, and more. Interfaces support declaration merging and extending other interfaces, but types are preferred for complex type manipulations due to advanced features. In many scenarios, the choice between the two can depend on personal preference.

  4. 4
    Article
    Avatar of mememondayMeme Monday·2y

    Frontend v/s Backend Dev

    Backend developers often work behind the scenes, ensuring systems run smoothly and efficiently, while their contributions may not always be visible to others.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Tailwind CSS Page Creator

    Tails V2 is a design tool for TailwindCSS developers, enabling the creation of beautiful websites with a comprehensive site builder, design library, and built-in code editor. It features project organization, multiple page settings, and usage of Tailwind V3 with JIT mode. Users can sign up for a free account or upgrade to a Pro plan for additional features and unlimited projects.

  6. 6
    Article
    Avatar of learn_javascriptLearn JavaScript·2y

    Javascript: Event loop visualizer for learners

    Albert, a software engineer, introduces a pet project called 'Event Loop Explorer' designed to help learners grasp the fundamentals of the JavaScript event loop. The tool visualizes various aspects of the event loop, including web APIs, request animation frames, macro and micro tasks, and the call stack. Users can modify code in the editor or choose from existing examples.

  7. 7
    Article
    Avatar of devtoDEV·2y

    Why React Won the Front-End Race

    React has won the front-end race due to its powerful backing by Meta, flexibility as a library rather than a framework, component-based architecture with JSX, the impressive Virtual DOM, multiple state management options, and the introduction of hooks. Its vast ecosystem and the capabilities of React Native further solidify its dominance, making it a go-to tool for modern web development despite its inherent complexities.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    15 Useful CSS Properties You Should Know About 🎨

    Discover 15 often overlooked but incredibly useful CSS properties that can enhance the design, performance, and user experience of websites. These properties include caret-color for changing text cursor color, accent-color for form controls, pointer-events to manage mouse activity, backdrop-filter for background effects, and scroll-snap-type for smooth scrolling transitions, among others.

  9. 9
    Article
    Avatar of communityCommunity Picks·2y

    Shadcn Form Builder

    Quickly create forms using Shadcn along with react-hooks-form and Zod for efficient form building and validation.

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    New React 19 Features You Should Know – Explained with Code Examples

    React 19 focuses on simplifying the development process by automating performance optimizations and removing the need for manual memoization hooks like `useMemo` and `useCallback`. The new compiler transforms React code into optimized JavaScript, and features like the `use()` hook streamline data fetching and context handling. Simplified ref handling and form management enhancements also contribute to cleaner and more efficient code.

  11. 11
    Article
    Avatar of asayerasayer·2y

    6 Tips: Why Front-End Developers should be Entrepreneurs

    An entrepreneurial mindset significantly enhances front-end developers' impact and career success. It facilitates a user-centered approach, innovation, and creativity, aligning their work with broader company goals. Key benefits include leveraging unique technical skills, gaining creative freedom, achieving financial independence, building a personal brand, and driving innovation. While this approach offers extensive growth potential and market differentiation, common challenges include balancing technical and business skills, financial management, market competition, and maintaining a healthy work-life balance.

  12. 12
    Article
    Avatar of piccalilliPiccalilli·2y

    How I build a button component

    Learn how to build a versatile button component in HTML and CSS with multiple variants including a ghost button and one with hard edges. The guide emphasizes using semantic elements instead of <div> and JavaScript handlers, outlines the use of custom properties for maintainable styles, and incorporates best practices for accessibility using ARIA attributes.

  13. 13
    Article
    Avatar of communityCommunity Picks·2y

    Leave useEffect Alone!

    Frontend development can be as intricate as backend work, especially when managing state and optimizing performance in React applications. The popular useEffect hook, while useful for synchronizing components with external factors, can often lead to issues like unnecessary re-renders and race conditions if misused. This post outlines common mistakes and best practices to avoid such pitfalls, offering solutions for proper cleanup, efficient data flow, and minimizing redundant renders. Guidance is provided on when it's appropriate to use useEffect, including initialization, managing external resources, and handling unmounted components without fear of memory leaks.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    Why do React components need to start with capital letters?

    React components must start with capital letters for Babel to distinguish them from native HTML elements. When a name starts with a capital letter, Babel converts it to a React Fiber object, essential for React's rendering system. Lowercase names are treated as strings, not components.

  15. 15
    Article
    Avatar of devtoDEV·2y

    7 Old-School Practices in HTML Should Be Avoided

    Avoid using outdated HTML practices like specifying type attributes for <script> and <style>, using frameborder on <iframe>, and including support for IE 8. Utilize semantic elements like <header> and <footer> properly within sections, and choose heading tags based on page structure rather than design. Lastly, simplify boolean attributes by omitting unnecessary values.

  16. 16
    Article
    Avatar of webaccidentsWeb Accidents·2y

    Building a SOLID Pokémon Game in React: A Developer’s Adventure!

    This post explores how to build a Pokémon game in React by applying SOLID principles. It provides examples of breaking down components for Single Responsibility, using Higher-Order Components for Open/Closed, a base component for Liskov Substitution, and context for Dependency Inversion. The post includes a cheatsheet summarizing each SOLID principle with practical tips.

  17. 17
    Video
    Avatar of youtubeYouTube·2y

    Next.js School Management Dashboard UI Design Tutorial | React Next.js Responsive Admin Dashboard

    Learn how to design a responsive school management dashboard using Next.js and Tailwind CSS. The dashboard displays different views for admin, student, parent, and teacher roles. Key features include animated charts, user-specific views, and a customizable form using React Hook Form. This project helps in understanding the latest versions of React and Next.js and improving frontend design skills.

  18. 18
    Article
    Avatar of ishadeedAhmad Shadeed·2y

    CSS display contents

    The post explains the CSS display: contents property, demonstrating its ability to remove the box element of a parent container while keeping its children in the DOM. This can be useful for ungrouping elements, styling generated HTML, and adjusting layouts without altering the actual HTML structure. Various examples illustrate how display: contents can simplify complex layouts, enhance flexibility, and solve common design issues such as repositioning elements and creating responsive designs.

  19. 19
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Create a Reusable Modal Component in React

    Learn how to create a reusable modal component in React using principles like DRY (Don't Repeat Yourself) and the atomic design pattern. The guide covers component creation, state and callback function integration, and additional improvements. It emphasizes the use of React hooks like useEffect for better management of component behavior. The modal component is designed for flexibility, with options for custom content and actions.

  20. 20
    Article
    Avatar of freecodecampfreeCodeCamp·2y

    How to Use CSS to Improve Web Accessibility

    CSS can significantly enhance web accessibility by updating focus styles, avoiding content shifts, reducing motion for users with vestibular disorders, and customizing contrast options. Techniques such as using the :focus pseudo-class, prefers-reduced-motion, prefers-contrast media queries, and enabling dark mode help create a more inclusive user experience. CSS animations can also enhance UX by visually guiding users and providing feedback. Ensure purposeful and user-friendly implementation to support assistive technologies and improve overall accessibility.

  21. 21
    Article
    Avatar of communityCommunity Picks·2y

    coolshapes demo for coolshap.es

    The post demonstrates how to use the coolshapes-react library to add a 'flower' shape to a React component. Two methods are shown: one importing the 'Coolshape' component and specifying the type as 'flower', and the other directly importing the 'Flower' component. Both methods include customizable parameters for index, noise, and size.

  22. 22
    Article
    Avatar of hnHacker News·2y

    Building the Same App Using Various Web Frameworks

    The author explores migrating from a current web app stack (FastAPI, HTML, CSS, and JavaScript) to modern web frameworks like FastHTML, Next.js, and Svelte by building the same web app using each one. The app allows users to upload a CSV file, view and update the table in the browser, and download the updated data. While the author found the FastAPI implementation straightforward, they learned various tricks and optimizations while building with FastHTML, Next.js, and Svelte. The experiment also highlighted how coding assistants might favor established frameworks over newer ones due to training data biases, impacting their effectiveness.

  23. 23
    Article
    Avatar of communityCommunity Picks·2y

    Creating 3D effects in CSS

    CSS can be used to create impressive 3D effects by leveraging properties like transform and perspective. This guide explains how to manipulate 3D dimensions and positions of elements with operations such as translateX(), translateY(), and translateZ(). Additionally, it covers creating visual illusions with shadows and light to enhance the 3D effect. The post includes practical examples like text reflections, shadows, 3D text animations, image tilts, interactive buttons, and how to create tilt effects using vanilla-tilt.js.

  24. 24
    Article
    Avatar of asayerasayer·2y

    Building a CSS Sprite Generator

    A CSS sprite generator tool combines multiple images into a single file, reducing HTTP requests and improving website performance. CSS sprites enhance user experience by minimizing latency, simplifying CSS, and ensuring consistent appearance. This tutorial provides step-by-step instructions for creating a sprite generator tool that automates sprite sheet creation and its associated CSS code, thus saving server bandwidth and improving SEO.

  25. 25
    Article
    Avatar of communityCommunity Picks·2y

    Laravel & Tailwind CSS UI Component Library

    Build elegant and responsive user interfaces effortlessly with the Turbine UI library. With 34 customizable Laravel Blade and Tailwind CSS components, Turbine UI saves you time and reduces code complexity. The library includes themeable styles and flexible customization options, enabling you to create unique designs without the hassle of extensive coding.