Best of JavaScript β December 2023
- 1
- 2
Community PicksΒ·2y
JS Design Patterns: A Comprehensive Guide
This post explores a range of essential design patterns in JavaScript, encompassing creational, structural, and behavioral patterns. By leveraging these design patterns, JavaScript developers can improve code reusability, maintainability, and overall system performance.
- 3
DEVΒ·2y
Fetch API, do you really know how to handle errors?
Learn how to handle errors when using the Fetch API and understand the best practices for error handling. Discover different approaches, such as using try/catch and checking the response status, and how to combine them for better error handling.
- 4
Community PicksΒ·2y
Rust π¦: Why JS devs are switching to it?
Rust is gaining popularity among JavaScript and TypeScript developers. It offers a distinct memory management system, strict rules for borrowing, explicit mutability, and is a compiled language. Rust also has static and strong typing, with a focus on robust error handling.
- 5
- 6
Hacker NewsΒ·2y
You don't need JavaScript for that
The article discusses the rule of least power in web development, which advocates for choosing the least powerful language suitable for a given purpose. It highlights examples of using native HTML and CSS instead of JavaScript, such as creating custom switches, using the datalist element for autosuggest, utilizing the native color picker, implementing accordions, and using dialog modals. The article also mentions future features that will further reduce the need for JavaScript.
- 7
freeCodeCampΒ·2y
Learn JavaScript by Building 21 Projects β a Major freeCodeCamp Curriculum Update
freeCodeCamp has launched a major update to the JavaScript Algorithms and Data Structures Certification. Readers can now learn JavaScript by building 21 projects, including certification projects. The projects cover a wide range of topics and concepts, such as form validation, string and array methods, recursion, functional programming, regular expressions, object-oriented programming, and more.
- 8
- 9
DEVΒ·2y
Personal Roadmap for becoming a better software developer in 2024
Suggestions to become a better software developer: focus on building a strong foundation, learn data structures and algorithms, improve communication and writing skills, solve problems on LeetCode and HackerRank, be active on LinkedIn, enhance frontend skills, create a new portfolio, invest in courses and books, prioritize consistency and discipline.
- 10
- 11
80 LEVELΒ·2y
This Relaxing Driving Game Takes You on Endless Journey
Slow Roads is a relaxing driving game that allows players to embark on an endless journey by following the road. It offers customizable surroundings and vehicle options. The creator aims to improve the game's UI, add new features, and enhance environmental details in the future.
- 12
- 13
Community PicksΒ·2y
An Extensive Guide to JavaScript Design Patterns
JavaScript design patterns provide repeatable template solutions for frequently occurring problems in JavaScript app development. Creational, structural, behavioral, concurrency, and architectural design patterns are the major classifications of JavaScript design patterns.
- 14
DEVΒ·2y
Frontend Development in 2024: Crafting a Dynamic Skillset for Success
Explore the essential skills and technologies shaping the frontend realm in 2024. Master HTML, CSS, and JavaScript, embrace React and state management libraries, optimize web performance, understand backend environments, and prioritize Core Web Vitals. Continuous learning is crucial.
- 15
- 16
- 17
- 18
- 19
Community PicksΒ·2y
Stop nesting ternaries in JavaScript
The article discusses the issue of nested ternaries in JavaScript and argues for avoiding their use. It highlights the drawbacks of nested ternaries in terms of readability and suggests alternative approaches to make code clearer and easier to understand. It also mentions the necessity of nested ternaries in JSX and provides recommendations for minimizing nesting and prioritizing clarity over brevity.
- 20
DEVΒ·2y
Observer Pattern for Beginners
The observer pattern is a widely used behavioral design pattern that allows objects to subscribe and receive updates about events happening in the object they are observing. It achieves loose coupling between the observer and observable. The key components of the observer pattern are the observable (object being observed) and the observer (object interested in state changes of the observable).
- 21
- 22
- 23
- 24
freeCodeCampΒ·2y
innerHTML vs innerText vs textContent β What's the Difference?
Learn about the differences between innerHTML, innerText, and textContent properties in HTML and how they handle HTML markup and content. Be cautious when using innerHTML due to security risks. innerText focuses on rendered text content, while textContent ignores HTML tags and includes hidden content. Update content using all three properties.
- 25