Best of RailsJuly 2024

  1. 1
    Article
    Avatar of thedevcraftThe Dev Craft·2y

    Free, Open Source Course to Learn Full Stack Development

    The Odin Project offers an incredible, free, and open source course for learning Full Stack Development. It provides two paths: Full Stack Ruby on Rails and Full Stack JavaScript, with detailed content and an active community for support.

  2. 2
    Article
    Avatar of rubylaRUBYLAND·2y

    UI Design Tips Using Tailwind CSS for Developers

    Small UI tweaks like adjusting letter-spacing, using colored shadows, adding opacity to colored elements on gray backgrounds, increasing white-space, and setting proper line-height can significantly enhance your UI design. Tailwind CSS offers various utilities to easily implement these adjustments, such as tracking classes for kerning, shadow color utilities, and smooth transitions to improve the user experience.

  3. 3
    Article
    Avatar of rubylaRUBYLAND·2y

    Use CSS' `only-child` instead of `if/else` logic

    Rails developers can leverage powerful CSS features like the `only-child` pseudo-class to handle empty states in HTML without writing custom JavaScript or complex logic. By using Tailwind CSS, the `only-child` pseudo-class can display a message only when it's the sole element in its parent container. This approach simplifies the code and maintains automatic updates when elements are removed.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Database testing with fixtures and seeding

    Database testing requires both static seeding and fixtures to ensure reliable and consistent data. Static seeding provides essential data for applications to function, while dynamic seeding offers varied data for stress testing. Fixtures offer a controlled environment for specific test scenarios. Using seeding and fixtures alongside database branching can enhance testing by providing isolated and resettable environments.

  5. 5
    Article
    Avatar of jasonfriedJason Fried·2y

    Introducing Writebook

    Publishing books on the web can be difficult with traditional methods, requiring custom solutions or repurposing blog tools. Writebook simplifies this process by providing an easy-to-use platform for creating web-based books. The software is free, easy to install, and even non-technical users can set it up quickly. It requires no maintenance and includes the complete Rails code for customization and learning purposes.

  6. 6
    Article
    Avatar of boringrailsBoring Rails·2y

    Event sourcing for smooth brains: building a basic event-driven system in Rails

    Event sourcing simplifies the handling of events in applications by focusing on the events themselves rather than complex concepts like projections and aggregates. This approach, exemplified through a basic activity feed in a Rails application, allows for scalability, easy integration of new features, and decoupled event processing. Event-driven systems can efficiently handle actions such as sending notifications, integrating external APIs, and automating workflows.