Codeminer42 Dev Weekly #15

HELLO EVERYONE!!! It’s June 14, 2024, and you are reading the 15th Codeminer42’s tech news report. Let’s check out what the tech world showed us this week!

How to Use Viewing Patterns in Your Website Designs – by Ijelekhai Faith Olohijere

This useful article presents us with the importance of understanding viewing patterns in website design. It explains the origin of viewing patterns, common patterns such as the F-pattern, Z-pattern, and more. The article also covers why viewing patterns are important, how to choose a viewing pattern for a design project, and offers a practical exercise for designing a hero section on an e-commerce website. If you love reading about UX/UI like me, you will love it too. Check it out!

Super useful console.log tricks – by Dhanush N

This article presents several useful console.log tricks for debugging and developing JavaScript. It covers basic tricks like logging multiple values and using template literals and more advanced techniques like console.table and console.group.

Chrome DevTools, Extensions, and Pro Tips for Web Developers – by Hayk Simonyan

The post is highly recommended for you, web developers, as it discusses the importance of Chrome developer tools and extensions. It lists eight essential Chrome extensions, details about DevTools features, and tips to speed up the development process.

Elixir v1.17 released: set-theoretic types in patterns, calendar durations, and Erlang/OTP 27 support – Andrea Leopardi

Elixir v1.17 is between us, and provides new things like set-theoretic types, support for Erlang/OTP 27, and a new calendar-related data type called Duration. The release also includes new warnings for common mistakes and improvements to the type system.

Learning Rust: Bare Threading – by Adrian Macal

The article explores bare threading with Rust. It covers topics such as spawning threads in Linux, using raw pipes for scheduling work on a CPU, and transferring closures between threads. It emphasizes the importance of concurrency and multi-threading in system programming.

I tried React Compiler today, and guess what… 😉 – by Nadia Makarevich

In this interesting article, the author explores the new React Compiler that aims to automatically memoize components, props, and hooks’ dependencies to prevent unnecessary re-renders. She tests the Compiler on simple examples and real-world applications, finding that while it performs well on simple cases, it struggles with more complex scenarios. The author identifies manual memoization techniques that can improve the Compiler’s performance and concludes that while the Compiler is a useful tool, developers still need to understand and use memo, useMemo, and useCallback to optimize React components effectively.

Elixir: validate map and structs keys for merging at compile time! – by Jakub Lambrych

This article showcases the importance of validating map and struct keys in Elixir at compile time. It explains that while Elixir and Ecto have built-in functions for runtime validation, it is more efficient to catch key conformity errors during compilation. The article introduces the KeyValidator macro, which allows for compile-time checks of map and struct keys.

Meta Open-Sources MEGALODON LLM for Efficient Long Sequence Modeling – by Anthony Alford

Researchers from Meta, the University of Southern California, Carnegie Mellon University, and the University of California San Diego have open-sourced MEGALODON, a large language model (LLM) with unlimited context length. MEGALODON outperforms a similarly-sized Llama 2 model on various benchmarks. MEGALODON achieves impressive improvements in training perplexity and downstream benchmarks, demonstrating its ability to model sequences of unlimited length. The code for MEGALODON is available on GitHub.

Slack Combines ASTs with Large Language Models to Automatically Convert 80% of 15,000 Unit Tests – by Eran Stiller

Slack used a combination of Abstract Syntax Trees (AST) and large language models (LLM) to automatically convert 80% of 15,000 unit tests from Enzyme to React Testing Library. The transition was prompted by Enzyme’s lack of support for React 18, leading to the need for compatibility with the latest React version. By observing how human developers approached the conversion, the team adopted a hybrid approach combining AST transformations with LLM capabilities, resulting in an 80% conversion success rate.

AWS IoT Core Simplified – Part 1: Permissions – by Robert Slootjes

Our friend Robert, in this part 1 of 4 posts, presents us with AWS IoT Core, a powerful MQTT broker service that allows for bi-directional communication between clients and servers. He explains the basics of IoT Core, including topics, rules, and permissions. Check it out!

lol Apple Intelligence is dumb… – by Jeff Delaney

After the very expansive device, Apple Vision Pro, Apple announced the new "Apple Intelligence" feature that makes iPhones do "amazing" things with more intelligence like analyzing users’ photos and emails using AI. And our friend Jeff Delaney, from the Fireship channel, voices their doubts about this feature. He believes this feature is merely a marketing strategy by Apple to keep up with competitors and create FOMO (fear of missing out) among consumers.

Persist your React State in the Browser – by Ajey N

This great article talks about the problem of persisting React state in the browser and introduces the solution of using IndexedDB, which allows for storing large amounts of complex data and querying it efficiently. The use-db-state library is introduced as a custom React hook that simplifies working with IndexedDB, providing a familiar interface similar to useState. Various use cases for use-db-state are mentioned, such as persisting form data, user preferences, shopping carts, and more. Check it out!

How to Activate Debug Mode in WordPress – Joan Ayebola

Debug mode in WordPress is a valuable tool for identifying and resolving errors, warnings, and notices within the WordPress environment. Our friend, Joan Ayebola, provides detailed information about PHP errors, deprecated functions, and database queries, aiding in troubleshooting and optimization.

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!