Best of JavaScriptSeptember 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·3y

    Bun 1.0

    Bun is a fast, all-in-one toolkit for running, building, testing, and debugging JavaScript and TypeScript. Bun's goal is to eliminate slowness and complexity without throwing away everything that's great about JavaScript. Bun is tested against test suites of the most popular Node.js packages on Node.

  2. 2
    Article
    Avatar of devtoDEV·3y

    Writing Clean Code: Best Practices and Principles

    Clean code is code that is easy to read, easy to understand, and easy to modify. Clean code follows a set of conventions and best practices that make it more consistent, making it easier for multiple developers to work on the same project seamlessly. Code that is difficult to understand is more prone to errors during modifications or enhancements.

  3. 3
    Article
    Avatar of communityCommunity Picks·3y

    Advanced TypeScript

    This is a constantly updated collection of articles you can find on this site. Each article stands on its own, as you see familiar concepts in a new light. You learn: - Union types and as types - Value types (or literal types) Symbol in JavaScript and TypeScript # Symbols are a very unique type in JavaScript.

  4. 4
    Article
    Avatar of jsPlainEnglishJavaScript in Plain English·3y

    I Bet You Don’t Use These JavaScript Tricks and Practices

    I Bet You Don’t Use These JavaScript Tricks and Practices. Using FlatMap Flat Map in javascript is a great technique which you can learn here. Not using native Javascript classes enough Javascript comes pack with native javascript classes that can help you create/instantiate things like URL, Headers and Headers.

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

    Bun vs Node.js: Everything you need to know

    Bun v1.0 is a super fast all-in-one toolkit for JavaScript and TypeScript apps. The beauty of Bun lies in its ability to streamline the development process, making it smoother and more efficient than ever. Bun is designed as a faster, leaner, more modern replacement for Node.js.

  6. 6
    Article
    Avatar of communityCommunity Picks·3y

    One Thing Nobody Explained To You About TypeScript

    Learn about the tsconfig.json file in TypeScript, how it configures the language, and its impact on modules and environments. Discover the importance of using multiple tsconfig.json files for different layers and intentions in your project.

  7. 7
    Article
    Avatar of devtoDEV·3y

    Node.js 20.6.0: Say Goodbye to 'dotenv'

    Node.js 20.6.0: Say Goodbye to 'dotenv' - DEV Community Unveiling.0. The new version has built-in support for.env files. This means you don't need to rely on third-party packages for importing and using.env variables in your code.

  8. 8
    Article
    Avatar of jsPlainEnglishJavaScript in Plain English·3y

    Some simple and amazing JavaScript tricks

    The spread syntax will copy all the properties of the object, but will only create a new object at the top level. For nested objects, the references of the inner objects will be copied and will not create new ones. You can simply do so by using the function in Array’s prototype.

  9. 9
    Article
    Avatar of devtoDEV·3y

    Discover Bun - A Faster, Modern JavaScript Runtime

    The Javascript Space is completely different from 15 years ago when NodeJS was first released. The technology behind Bun Bun is a Javascript Runtime. It starts with an Engine - The Component of a runtime that runs the Javascript code. Bun comes with built-in testing support, and so it is much faster from the other ones.

  10. 10
    Article
    Avatar of communityCommunity Picks·3y

    How To Learn TypeScript In 2023

    TypeScript is a set of tools that make writing JavaScript more pleasant. You can learn more on TypeScript's Landing Page. You'll need to install Node.js in order to use TypeScript to its fullest potential. Using TypeScript on CI is a great way to make sure your project is free of bugs.

  11. 11
    Article
    Avatar of hackernoonHacker Noon·3y

    Stop Using State for React Forms, There is a Much Better Way!

    The most popular approach to handling forms in React is to store the input values in state variables. When it comes to form, React will attempt to re-render the component every time the input (state) changes. We will use the state to manage the form inputs.

  12. 12
    Article
    Avatar of medium_jsMedium·3y

    Serverless Bun vs Node: Benchmarking on AWS Lambda

    Serverless Bun vs Node: Benchmarking on AWS Lambda. Bun promises a whole host of benefits, mostly around performance and developer experience, while boasting strong interoperability standards. Bun claims it can process logic at 3-4x the speed of NodeJS.

  13. 13
    Article
    Avatar of devtoDEV·3y

    Can self-taught programmers get jobs?

    Let’s explore some real-world success stories of self-taught programmers who have achieved remarkable careers. Many successful programmers and software developers began their careers by learning on their own. The key is having the motivation and dedication to learn at your own pace.

  14. 14
    Article
    Avatar of devtoDEV·3y

    Bun hype. How we learned nothing from Yarn

    Yarn and Bun went off to create their own competing technology. Both sold themselves on being way faster. Both went in with the goal of splitting the ecosystem. Both announced that they were officially v1.0 and ready for production!...while not actually supporting Windows. In 2023, npm is still faster than Yarn.

  15. 15
    Article
    Avatar of tilThis is Learning·3y

    Why use Vite when Bun is also a bundler? - Vite vs. Bun

    Why use Vite when Bun is also a bundler? - Vite vs. Bun? Why is Vite still needed? Vite is great for bundling client-side apps, has API's that many developers love. Bun's HMR currently has at least one open issue, which is important for fast local development.

  16. 16
    Article
    Avatar of pointerPointer·3y

    nuejs/nuejs: Build user interfaces with cleaner code. Alternative to React, Vue, and Svelte

    Nue JS is a small JavaScript library for building web interfaces with cleaner code. It offers a minimalist approach and easy-to-understand code, making it easier to scale. Nue supports server-side rendering and can be used for UI library development, progressive enhancement, static website generators, and single-page applications.

  17. 17
    Article
    Avatar of communityCommunity Picks·3y

    JavaScript is getting array grouping methods

    The new methods are part of a TC39 proposal that is currently at stage 3. Chrome 117 just launched with support for these new methods, Firefox Nightly has implemented them behind a flag. The methods are in Chrome that means they have been implemented in V8 so will be available in Node the next time V8 is updated.

  18. 18
    Article
    Avatar of dhhDavid Heinemeier Hansson·3y

    Turbo 8 is dropping TypeScript

    Turbo 8 is dropping TypeScript from the next big release of Turbo 8. Microsoft's TypeScript has been a big success for Microsoft. It's simply our good fortune that we now have such a capable JavaScript, which browsers are able to interpret without any need for a compiler at all.

  19. 19
    Article
    Avatar of devtoDEV·3y

    Web workers in ReactJs

    A web worker is a JavaScript feature that allows you to run scripts in the background. This background execution enables you to perform tasks concurrently without blocking the user interface. Web workers are particularly useful for handling computationally intensive or time-consuming operations without impacting the user's experience.

  20. 20
    Article
    Avatar of communityCommunity Picks·3y

    NueJS

    Nue is a powerful React, Vue, Next.js, Vite, and Astro alternative to React/Vue. It takes inspiration from Vue 2.0 and Riot.js. All projects will be released under the MIT license.

  21. 21
    Article
    Avatar of snykSnyk·3y

    Node.js vs. Deno vs. Bun: JavaScript runtime comparison

    Node.js vs. Bun is the latest upstart, offering blistering speed and significantly outperforming its rivals. Deno aims to improve its security via fine-grained access controls. Bun is still in beta and has some gaps to fill out to be fully production-ready.

  22. 22
    Article
    Avatar of hackernoonHacker Noon·3y

    I'm Done Typing npm: A Zsh Function for JavaScript Package Managers

    I'm Done Typing npm: A Zsh Function for JavaScript Package Managers. HackerNoon I've typed for the last time. This is a problem because typing the wrong command costs time and irritation.

  23. 23
    Article
    Avatar of hackernoonHacker Noon·3y

    Is Your Code Slow?: Avoid These 19 Common JavaScript and Node.js Mistakes

    We're spotlighting the top 19 performance pitfalls that can secretly slow down JavaScript and Node.js apps. We'll explore what causes them through illustrative examples and actionable solutions to optimize your code. The good news?

  24. 24
    Article
    Avatar of habrhabr·3y

    React Custom Hook: useScript

    This article explores the useScript custom hook in React, which allows for asynchronous script loading and improves performance and user experience. It provides examples of how the hook can be used in different scenarios.

  25. 25
    Article
    Avatar of joshwcomeauJosh W Comeau·3y

    Making Sense of React Server Components

    React Server Components is the latest paradigm shift for React. For the first time ever, React components can run exclusively on the server. It's helpful to understand how Server Side Rendering (SSR) works. If you're already familiar with SSR, feel free to skip to the next heading.