Best of JavaScriptFebruary 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Advanced JavaScript Functions to Improve Code Quality

    Learn advanced JavaScript functions to improve code quality, including Debounce, Throttle, Once, Memoize, Curry, Partial, Pipe, Compose, Pick, Omit, and Zip. Boost your performance and make your code more beautiful.

  2. 2
    Article
    Avatar of builderiobuilder.io·3y

    Use Maps More and Objects Less

    Objects in JavaScript can be replaced with maps for better performance, easier iteration, and key-value manipulation. Maps are optimized for frequently adding and removing keys, unlike objects. They also solve issues of objects being polluted with built-in keys and provide better iteration methods. Maps can be easily copied, converted to objects, and vice versa. They can also be used for associating metadata with objects. Sets, another similar data structure, provide a better-performing way to create unique lists of elements.

  3. 3
    Article
    Avatar of medium_jsMedium·3y

    4 React Tips to Instantly Improve Your Code

    Tips to improve React code, including using currying in handlers, separating responsibilities in components, using object maps instead of conditions, and putting independent variables outside of React lifecycle.

  4. 4
    Article
    Avatar of communityCommunity Picks·3y

    Learn JavaScript while Playing Games — Gamify Your Learning

    Gamification is a technique of adding typical design elements from games to enhance the learning process. Gamification uses a simple strategic attempt to motivate and engage users while learning something new. This is done by leveraging people’s natural desire for socializing, learning, mastery, competition, achievement, status, or self-expression.

  5. 5
    Article
    Avatar of honeypotHoneypot·3y

    React.js: The Documentary - How it All Began

    The post explores the early days of React.js, including the initial skepticism from the JavaScript community, the engineers involved in its development, and the first major tech company to adopt it.

  6. 6
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    Create an Animated Physics Game with JavaScript

    Learn how to create an animated physics game with JavaScript in this course. Gain skills in game development, implement collision detection and physics simulation, draw environments and characters, and create artificial intelligence for player interaction.

  7. 7
    Article
    Avatar of communityCommunity Picks·3y

    JavaScript CRUD Rest API using Nodejs, Express, Sequelize, Postgres, Docker and Docker Compose

    Learn how to create a CRUD rest API using Node.js, Express, Sequelize, Postgres, Docker, and Docker Compose. Dockerize the Node.js application and test the APIs with Postman.

  8. 8
    Article
    Avatar of css_tricksCSS-Tricks·3y

    Moving Backgrounds | CSS-Tricks

    Learn how background images can provide more context or experience, how to change the position of a background image using JavaScript, and how to implement the Ken Burns effect using CSS.

  9. 9
    Article
    Avatar of communityCommunity Picks·3y

    All about Promises in JavaScript

    Promises in JavaScript are objects that represent values that may not be immediately available. They are used to handle asynchronous operations and provide benefits such as better readability, improved error handling, avoiding callback hell, ability to return a value, and better compatibility. Promises can be created using the Promise constructor and can be chained using then() and catch() methods. They can also be canceled using techniques like timeout, aborting a network request, or using a flag. Bluebird is a popular Promise library that provides advanced features like Promise cancellation. Multiple Promises can be executed in parallel using methods like Promise.all(), Promise.any(), Promise.race(), and Promise.allSettled().

  10. 10
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    How to Learn JavaScript Effectively – Tips and Learning Strategies

    Learn JavaScript effectively with tips and learning strategies. Understand programming concepts, create mind maps of related topics, practice incrementally, and connect concepts to projects.

  11. 11
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    Object-Oriented Programming in JavaScript

    Learn about object-oriented programming in JavaScript, including classes, objects, and principles of OOP. Explore how to implement prototypal inheritance in JavaScript using different methods.

  12. 12
    Article
    Avatar of medium_jsMedium·3y

    Why PHP should be renamed to HypeScript

    PHP is facing challenges as it is perceived as not cool anymore, leading to a decline in popularity among younger developers. The post suggests renaming PHP to HypeScript as a way to rebrand and attract new developers without changing the programming language.

  13. 13
    Article
    Avatar of btrprogBetter Programming·3y

    NestJS: The Good, The Bad, and The Ugly

    This post discusses the good, the bad, and the ugly aspects of NestJS, including its value for teams, potential issues, and testing complexities.

  14. 14
    Article
    Avatar of communityCommunity Picks·3y

    Debugging JavaScript Like a Pro: Tools and Techniques for Finding and Fixing Bugs

    Learn about various tools and techniques for debugging JavaScript, including the browser console, conditional breakpoints, debuggers, linters, profilers, testing frameworks, error tracking services, call stack inspection, live editing, and code review.

  15. 15
    Article
    Avatar of pointerPointer·3y

    mermaid-js/mermaid: Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

    Mermaid is a JavaScript-based diagramming and charting tool that uses Markdown-like text definitions to create and modify complex diagrams. It helps with documentation by making it easy to create detailed diagrams. Examples of diagrams that can be made using Mermaid include flowcharts, sequence diagrams, Gantt charts, class diagrams, state diagrams, pie charts, and more.

  16. 16
    Article
    Avatar of devtoDEV·3y

    Next.js vs. React: Which is the Best for Your Project

    This post compares React.js and Next.js to help readers understand the differences and decide which one to use for their projects.

  17. 17
    Article
    Avatar of asayerasayer·3y

    Create Incredible Web Presentations with Reveal.js

    Reveal.js is an open-source HTML presentation framework that allows users to create fully-featured and interactive presentations with CSS 3D transforms, nested slides, and more. It is responsive, supports interactive elements, has a simple user interface, and is open-source. Some popular alternatives to Reveal.js include Impress.js, Prezi, PhotoSwipe, Owl Carousel 2, FlexSlider, Keynote, and Haiku Deck. To create vertical slides in Reveal.js, simply nest sections within a section.

  18. 18
    Article
    Avatar of freecodecampfreeCodeCamp·3y

    Dot Notation vs Bracket Notation for Object Properties – What's the Difference?

    Learn about the difference between dot notation and bracket notation for object properties in JavaScript. Understand how to access, modify, and add properties using both approaches. Determine when to use dot notation or bracket notation based on whether the property key is static or dynamic.

  19. 19
    Article
    Avatar of asayerasayer·3y

    Creational Design Patterns in JavaScript

    Learn about design patterns in JavaScript, their benefits, and the different types of design patterns. Explore six creational design patterns with example implementations in JavaScript.

  20. 20
    Article
    Avatar of antfuAnthony Fu·3y

    Break Lines in JS

    Learn how to break lines programmatically in JavaScript using a simple one-line code solution.

  21. 21
    Article
    Avatar of logrocketLogRocket·3y

    Building a multi-framework dashboard with Astro

    Building a multi-framework dashboard with Astro can be a powerful and efficient way to create complex and versatile software. As software systems and requirements evolve, it may become necessary to migrate to a new framework or set of frameworks. Using Astro, developers can easily integrate multiple frameworks, allowing them to take advantage of the best features of each.

  22. 22
    Article
    Avatar of syncfusionSyncfusion·3y

    5 Best Practices in Handling HTTP Errors in JavaScript

    Learn about best practices for handling HTTP errors in JavaScript, including specific error messages, custom error classes, middleware, promise-based error handling, and centralized error logging and alerting.

  23. 23
    Article
    Avatar of syncfusionSyncfusion·3y

    Virtual DOM vs. Shadow DOM

    This post discusses the definitions of virtual DOM and shadow DOM, highlighting their significant differences. It explains that virtual DOM is used for solving performance issues, while shadow DOM is used for encapsulating and isolating elements. It also mentions that React.js and Vue.js are JavaScript libraries that implement virtual DOM.

  24. 24
    Article
    Avatar of hackernoonHacker Noon·3y

    Developer's Gold Mine: 8 Youtube Channels You Should Subscribe to Right Away

    Developer's Gold Mine: 8 Youtube Channels You Should Subscribe to Right Away. You learn about a new development language every day as it enters the market and gains notoriety for its novel features. The channel mostly offers extended films (up to hours long) that go into detail on each thread and topic of the languages.

  25. 25
    Article
    Avatar of asayerasayer·3y

    Getting started with SolidJS

    Solid.js is an open-source JavaScript library for building web applications that focuses on performance and simplicity. It provides a lightweight component model, a simple and flexible API, server-side rendering, and code-splitting support. This tutorial covers getting started with SolidJS, creating a new project, using SolidJS APIs, building an application that showcases characters from the Rick and Morty series, and implementing infinite scrolling. It also highlights the ease of learning and using SolidJS.