Codeminer42 Dev Weekly #36

HELLO EVERYONE!!! It’s November 8th 2024 and you are reading the 36th edition of the Codeminer42’s tech news report. Let’s check out what the tech world showed us this week!

Rails 8.0: No PaaS Required – by DHH

DHH has released Rails 8.0, a new version designed to simplify web application deployment without expensive PaaS solutions. It includes Kamal 2, a streamlined Dockerfile, and the Thruster proxy. The update introduces three database-backed adapters, Propshaft for asset management, and a complete authentication system generator for secure application development.

Hanami 2.2: Persistence pays off – by Tim Riley

Hanami 2.2 is the latest update to the Hanami 2 framework, enhancing its capabilities for Ruby applications. It introduces a new database layer, a tool for organizing business logic, and supports SQLite, Postgres, and MySQL. Hanami 2.2 encourages developers to explore its features and contribute feedback. But the big question is: Which side you choose? The Rails’s ActiveRecord or Hanami’s new database layer?

Some VINTAGE TypeScript Magic – by Matt Pocock

In his new video, our friend Matt Pocok presents a merge function in TypeScript that merges an array of objects using object assign and infers the type accordingly with the array passed. Check it out! This video can give you very good insights for your TypeScript Projects.

Meta AI Introduces Thought Preference Optimization Enabling AI Models to Think Before Responding – by Daniel Dominguez

Meta AI, UC Berkeley, and NYU have developed Thought Preference Optimization (TPO), a method to improve the response quality of instruction-fine-tuned large language models (LLMs). TPO uses a modified Chain-of-Thought reasoning method, allowing models to "think before responding" during training. TPO has shown improved performance in various tasks, including marketing and healthcare.

A Friendly Introduction to Container Queries – by Josh Comeau

Container queries, a CSS feature, are now supported by all major browsers, allowing developers to apply conditional CSS based on an element’s container size. Despite their availability, many developers struggle with understanding their functionality compared to media queries. The Containment API has helped address these challenges, allowing developers to specify self-contained elements without affecting other parts of the DOM. Despite their potential, adoption of container queries remains slow due to confusion among designers.

Expedia Migrates a Massive Cassandra Cluster to ScyllaDB with Zero Downtime – by Claudio Masolo

Expedia Group successfully migrated a large Cassandra cluster to ScyllaDB, utilizing ScyllaDB’s Change Data Capture (CDC) capabilities for better data consistency and reduced operational complexity. The migration streamlined CDC processes and reduced AWS costs, meeting stringent data availability and latency requirements.

A Practical Approach to Building Advanced RAG Pipelines with Confidence! – by Pavan Belagatti

Pavan Belagatti’s article highlights the importance of Retrieval-Augmented Generation (RAG) pipelines in AI, which combine retrieval mechanisms with generative models for accurate and contextually relevant responses. He introduces Vectorize, a platform for creating and evaluating RAG pipelines. Check it out!

Understanding Git Stages: Developer’s Guide – by Samar Jaffri

Samar Jaffri’s article explains the three main stages in Git: the Working Directory, the Staging Area, and the Git Repository. The Working Directory stores files and makes changes, while the Staging Area temporarily stores changes before being committed. It is always good to learn new tricks and remember how things work on this important tool for us developers.

Component-based Approach. Organizing Navigation with the Decompose Library – by Artur Artikov

Artur Artikov’s article on Android application navigation using the Decompose library outlines the creation of app flows, management of complex navigation, and bottom navigation. The article uses real-world examples from an employee portal app for Sever Minerals, focusing on creating flows, component management, navigation methods, bottom navigation, app-wide navigation, and scalability and complexity management. It emphasizes the importance of defining component interfaces, implementations, and UI, and encourages further exploration of related topics like data loading, error management, and testing within a component-based architecture.

How to Write Clean Code – Tips for Developers with Examples – by Programming with Shahan

The article emphasizes the importance of writing clean, organized code. It highlights two coding approaches: "Quick & Dirty Code" and "Thoughtful & Clean Code." The article outlines 10 essential tips for writing clean code, including using meaningful names, following the Single Responsibility Principle, avoiding unnecessary comments, and more.

How to Integrate Tailwind with Django – With Code Examples – by Abhijeet Dave

Abhijeet Dave’s article provides a detailed guide on integrating Tailwind CSS with Django, highlighting its benefits for modern web development. It covers installation, configuration, and build scripts for a Django project, and demonstrates creating a chat bubble application.

RubyGems 3.5.23 Released – by David Rodríguez

RubyGems has released version 3.5.23, incorporating enhancements, bug fixes, performance improvements, and documentation updates. Check it out!

And that’s all for this week! Wish you all a great weekend and happy coding!

We want to work with you. Check out our "What We Do" section!