Codeminer42 Dev Weekly #21

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

Why you should try React Query? – by Gautam Vaja

The popular React Query, now called TanStack Query, is a robust data-fetching library for React applications. It simplifies the process of fetching, caching, synchronizing, and updating server state. It offers features like data fetching, caching, and synchronization, among others. React Query enhances performance and user experience, reduces boilerplate code, and improves the developer experience in React applications. If you haven’t used it yet, it’s worth checking out!

Zuck’s new Llama is a beast – by Fireship

In this video, our friend Jeff Delaney talks about Mark Zuckerberg’s work at Meta, the release of their latest and most advanced language model, Llama 3.1. With 405 billion parameters and available for free (with some restrictions), Llama 3.1 was trained on 16,000 Nvidia H100 GPUs and consumed a substantial amount of electricity. Despite the high cost and resources, Llama 3.1 is considered an improvement over OpenAI’s GPT 4 and Claude 3.5 Sonet on certain benchmarks. However, the true capabilities of the model can only be fully assessed through usage. Meta is commended for maintaining a realistic approach in the AI sphere, but concerns about their underlying intentions persist.

Grokking DynamoDB with TypeScript – by Camilo Reyes

DynamoDB is a fully managed NoSQL database service provided by AWS, ideal for handling large amounts of data with low latency. It is schema-less and serverless, making it highly available and scalable. In this take, the article author will model data in DynamoDB using TypeScript, starting with simple and composite primary key tables, and exploring secondary indexes and conditional expressions.

What’s Coming in Ruby on Rails 7.2: Database Features in Active Record – by Andrew Atkinson

Ruby on Rails is currently in version 7.1 and is working towards the release of Rails 8. Before Rails 8, there will be a significant version, Ruby on Rails 7.2, which will bridge the gap. This version will include noteworthy changes, particularly in the support for database changes in Active Record. This post will focus on these changes and provide opportunities to work with the new features. If you are a Rails fan, check it out!

CSS font-size-adjust is now in Baseline – by Rachel Andrew

The CSS font-size-adjust property is now available in all major browsers, helping prevent layout shifting and improving legibility of fallback fonts. This property adjusts the fallback font to better match the original font, improving the overall user experience. It is recommended to test your site with fallback fonts and use font-size-adjust to enhance readability.

5 crucial facts about React Rendering – by Armstrong Olusoji

The post talks about crucial facts about React rendering, including what triggers a re-render, the diffing and reconciliation process, the impact of parent, and more. It also emphasizes the importance of using pure functions without side effects in React to avoid unexpected behavior. The post provides detailed explanations, examples, and code snippets to help understand these concepts better.

Advanced Deployment Strategies – by Josephine Eskaline Joyce & Srikanth Murali

The article talks about the importance of advanced deployment strategies such as feature flags and centralized configuration management in improving software delivery. It explains the principles and benefits of Feature Flag Driven Development (FFDD) and Centralized Configuration Management (CCM), and how they enable rolling updates, canary releases, A/B testing, dark launching, and user segmentation.

Understanding Pointers in GO: Devops Guide – by Vaibhav Thukral

This interesting article talks about pointers in Go, explaining that they are variables that store memory addresses instead of values. Pointers can be used to avoid unnecessary value copies and directly mutate values. In Go, Pointers are safe and limited, providing benefits such as creating data structures, improving performance and more. Check it out, maybe you can finally understand how pointers work in C too.

Building Your Own GPU Ready GitHub Actions Runner: A Dockerfile Guide – by Alex Pliutau

Our friend, Alex Pliutau, provides a guide on building a custom GitHub Actions runner that uses GPU. He explains the reasons for creating a custom runner, such as specific software requirements, enhanced security, cost optimization, and access to specialized hardware. Alex emphasizes the importance of balancing flexibility and maintainability in customizing the runner.

How to Implement Pagination with JavaScript – by Eric Hu

The article explains how to implement pagination with JavaScript using different strategies. It starts by explaining the benefits of pagination and then goes on to demonstrate how to implement JavaScript pagination using three different methods. It explains how to implement pagination using the easy way, offset-based pagination, and infinite scroll in JavaScript. The text concludes by discussing the pros and cons of the offset and cursor strategies and provides additional resources for creating pagination systems with different ORM frameworks.

Learn CSS Flexbox, the easy way – by Agunwa Calistus

The article explains the benefits of using CSS Flexbox for creating layouts, making tasks like vertically centering content, equalizing width or height of children, and maintaining column height easier. Check it out if you are a beginner playing with CSS.

How To Think Simple In Java – by Reza Ganji

The article is a guide on how to think simply in Java, focusing on clean, readable, and maintainable code without sacrificing the power and capabilities of the language. It covers principles such as applying SOLID principles, using descriptive naming conventions, avoiding premature optimization, and more. Overall, the text encourages Java professionals, as well as professionals from different programming languages such as Ruby, JavaScript, PHP, etc., to embrace simplicity in their coding practices to improve code quality and productivity.

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!