Best of Rails2024

  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

    Tailwind CSS Patterns

    The author created lightweight and visually interesting layouts for Rails Designer using Tailwind CSS for background patterns. They explored and compiled various patterns into a collection for inspiration and easy integration.

  3. 3
    Video
    Avatar of fireshipFireship·2y

    Ruby on Rails in 100 Seconds

    Ruby on Rails is a powerful web framework that has been used by successful internet startups for the past 20 years. It allows developers to quickly build large-scale web applications using the Ruby programming language. Rails follows the model-view-controller (MVC) pattern and includes features like active record for modeling relationships in a SQL database. With Rails, you can easily build a full stack application by installing Ruby, Rails, and SQLite, and using the Rails CLI to scaffold your project.

  4. 4
    Article
    Avatar of dhhDavid Heinemeier Hansson·2y

    Why I retired from the tech crusades

    The post discusses the author's realization that showing something great and inspiring people is more effective in converting them to a cause than arguing with them. The author also emphasizes the importance of finding the right programming language that brings joy and passion.

  5. 5
    Article
    Avatar of bytebytegoByteByteGo·2y

    A Brief History of Airbnb’s Architecture

    Learn about the history of Airbnb's architecture, the challenges faced during their migration to a Service-Oriented Architecture, and the tools and techniques they used to support their SOA.

  6. 6
    Article
    Avatar of devtoDEV·2y

    From Next.js to Rails then Elixir: My journey through React.js burnout

    The author shares their journey through React.js burnout and their switch to different frameworks like Gatsby.js, Next.js, Remix, Ruby on Rails, and Elixir with Phoenix. They highlight the challenges and benefits of each framework, ultimately recommending Elixir and Phoenix as their preferred stack.

  7. 7
    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.

  8. 8
    Article
    Avatar of dhhDavid Heinemeier Hansson·2y

    Obsessive problem solving followed by aimless wandering

    The author reflects on the transition from using Apple products to a Linux-based system, highlighting recent achievements such as adopting Rails 8 with Propshaft and the authentication generator. Emphasizing the importance of sprints for significant progress and keeping an open mind for new opportunities, the narrative underscores their company's journey towards improved development practices and innovative solutions like Docker and the Solid Trifecta.

  9. 9
    Article
    Avatar of rubyflowRuby Flow·2y

    renuo/hotsheet: Manage your database with a simple and familiar web interface

    This gem, Hotsheet, allows you to manage your database through a simple web interface without needing to use the Rails console. It offers inline editing for database records and provides controlled access to admin users. Installation involves adding it to your Gemfile and configuring it in an initializer file to specify which models and attributes to manage.

  10. 10
    Article
    Avatar of dhhDavid Heinemeier Hansson·2y

    Capture less than you create

    The author reflects on the immense value created by companies like Shopify, GitHub, and Coinbase using the Rails framework, which he has helped evolve. Despite not becoming a billionaire, he values the satisfaction from seeing others succeed with his work. The post emphasizes embracing the open source spirit: finding joy in the success of others and recognizing 'enough' as a special kind of wealth.

  11. 11
    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.

  12. 12
    Article
    Avatar of hnHacker News·2y

    Rearchitecting: Redis to SQLite

    Wafris, an open-source web application firewall company, migrated its Rails client from Redis to SQLite to alleviate deployment issues and improve performance. The switch was driven by challenges in managing Redis, especially in cloud environments, and the advantages of SQLite's simplicity and reduced network latency. Performance tests showed a significant speed improvement with SQLite for specific use cases. The rearchitected client aims to make it easier for developers to deploy and manage web application security.

  13. 13
    Article
    Avatar of dhhDavid Heinemeier Hansson·2y

    Optimize for bio cores first, silicon cores second

    Ruby on Rails has been championed for its ability to enhance programmer productivity by trading off compute time, which has become increasingly economical compared to programmer costs. The focus should be on optimizing the expensive biological cores (programmers) over the cheaper silicon cores (computers). While optimizing software for maximum hardware efficiency can be admirable, it often doesn't make economic sense for most business software, where high-level languages and tools can drastically improve productivity and profitability.

  14. 14
    Article
    Avatar of allaboutcodingRandom Thoughts about Building Software·1y

    Create a Simple Pulsating Animation

    Learn how to create a custom pulsating animation using Tailwind CSS and integrate it into a Rails app. The post explains the steps to define keyframes for the animation, extend Tailwind with this new animation, and apply it to a menu item. Additionally, it covers creating reusable menu item components in Rails using Phlex.

  15. 15
    Article
    Avatar of systemdesigncodexSystem Design Codex·2y

    Airbnb's Migration from Monolith to Services

    Airbnb transitioned from a monolithic Ruby on Rails application, known internally as the 'monorail', to a Service-Oriented Architecture (SOA). Initially suitable for agile development, the monolith became difficult to manage as the company grew. The new architecture consists of data services, derived services, middle-tier services, and presentation services, each with specific functionalities. The migration of reads involved dual reads and response comparison, while writes used a shadow database. Key lessons from the migration include investing in common infrastructure, simplifying service dependencies, and recognizing that moving to services involves cultural as well as technical changes.

  16. 16
    Article
    Avatar of rubyflowRuby Flow·2y

    Terminalwire

    Terminalwire allows developers to ship command-line applications for web apps without needing APIs by streaming terminal commands over WebSockets. It simplifies infrastructure, reduces workload, and is compatible with existing web frameworks. Integrating with Terminalwire involves straightforward setup, and updates are seamlessly deployed to the server without requiring client-side changes.

  17. 17
    Video
    Avatar of communityCommunity Picks·2y

    A Legendary Web Framework is Reborn... In Rust

    Loco RS is a web framework inspired by Ruby on Rails, written in Rust. It promises improvements in performance and safety while maintaining a great developer experience. The framework aims to combine the best of Rails and Rust, offering features such as built-in user authentication and integrated database handling. Loco RS uses existing Rust crates to avoid reinventing the wheel, and it's created by Doan Naham, who has experience in both development and business. Benchmarks suggest it handles significantly more requests per second than Rails, potentially reducing cloud infrastructure costs for developers and smaller companies.

  18. 18
    Article
    Avatar of communityCommunity Picks·2y

    Rails is Good Enough

    Rails, despite not being the most popular framework, remains a solid choice for building SaaS applications. The post highlights Rails' monolithic nature, maturity, and productivity, arguing that its convention over configuration approach simplifies development. The author shares a personal journey of choosing Rails over fragmented JS frameworks, citing its long-standing reliability and community support as key advantages.

  19. 19
    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.

  20. 20
    Article
    Avatar of dhhDavid Heinemeier Hansson·2y

    Joining the Shopify board of directors

    Shopify's co-founder Tobi has revolutionized e-commerce by demonstrating the scalability of Ruby on Rails through the development of Shopify's platform. With over 131 contributions to Rails and the engineering of essential tools such as Active Merchant and the Liquid templating system, Tobi's innovations have enabled Shopify to support a large portion of online sales efficiently. The author eagerly joins Shopify's board to tackle challenges at a much larger scale than their current work.

  21. 21
    Video
    Avatar of typecrafttypecraft·2y

    Master Docker Compose the Way I Wish I Did – Docker for Newbs EP 2

    Learn how to use Docker Compose to create multicontainer applications where services can communicate effortlessly. This tutorial covers how to break down a Docker Compose file, set up services like a Ruby on Rails application with a PostgreSQL database, and explains the interaction between these services. The guide also includes practical steps on creating Docker volumes, running health checks, and executing commands within Dockerized environments, focusing on building and maintaining a consistent development setup.

  22. 22
    Article
    Avatar of rubyflowRuby Flow·2y

    Database Partitioning by Example

    Database partitioning involves dividing a large table into smaller, more manageable pieces called partitions, improving query performance and maintenance operations. The post provides an example of partitioning a large 'product_views' table in PostgreSQL based on the 'created_at' column using Ruby on Rails. It explains how to create partitions, insert data, and run queries efficiently, showcasing significant performance improvements after indexing partitions.

  23. 23
    Video
    Avatar of t3dotggTheo - t3․gg·2y

    Leaving Everything Behind For Elixir

    A web developer shares their journey from starting with Elixir to eventually using Phoenix and Elixir for web development. They compare their experiences with different frameworks and programming paradigms, highlighting the advantages and disadvantages of each. Ultimately, they find satisfaction with Elixir and Phoenix, but acknowledge that the perfect tech stack doesn't exist and that individual preferences play a role in choosing the right tools.

  24. 24
    Article
    Avatar of communityCommunity Picks·2y

    Event Sourcing made Simple

    Event Sourcing is to data what Git is to code, providing a complete history and enabling powerful features like time-travel and bug fixing. At Kickstarter, a minimal event sourcing framework was implemented for their Drip platform, significantly enhancing data management and application reliability. Key components include Events, Aggregates, Calculators, and Reactors, each playing a vital role in maintaining state, triggering actions, and ensuring synchronization. This approach simplifies debugging, data backfilling, and offers seamless integration with analytic platforms.

  25. 25
    Article
    Avatar of thoughbotthoughbot·2y

    Wrap your dependencies

    Using third-party libraries and tools can speed up development, but wrapping them in functions, modules, or classes can make your code more maintainable and flexible. Wrapping allows for easier updates, consistent interfaces, and effective error handling. Examples include sanitizing HTML across different environments and using HTTP clients with consistent error handling.