Best of JavaScriptAugust 2022

  1. 1
    Article
    Avatar of communityCommunity Picks·4y

    JavaScript Visualized: the JavaScript Engine

    JavaScript is based on the V8 engine used by Node.js and Chromium-based browsers. The engine tries to avoid parsing code that's not necessary right away. The optimized machine code can simply be re-used in order to speed things up. V8 is open source and has some great documentation on how it works under the hood.

  2. 2
    Article
    Avatar of communityCommunity Picks·4y

    JavaScript Visualized: Event Loop

    JavaScript is single-threaded: only one task can run at a time. When we invoke a function, it gets added to something called the call stack. The call stack is part of the JS engine, this isn't browser specific.

  3. 3
    Article
    Avatar of communityCommunity Picks·4y

    Use Google like a pro

    Use quotes to force an exact-match search: "what is javascript" Use the OR operator to get the results related to one of the search terms. You can use the (*) wildcards as placeholders, which will be replaced by any word or phrase.

  4. 4
    Article
    Avatar of communityCommunity Picks·4y

    Speech Recognition with JavaScript

    Speech recognition API was added to the specs and we got partial support on Chrome, Safari, Baidu, Android webview, iOS safari, samsung internet and Kaios browsers (see browser support in detail) The implementation I made currently supports English and Spanish just to showcase.

  5. 5
    Article
    Avatar of medium_jsMedium·4y

    Lodash is dead. Long live Radash.

    Lodash was created in 2009 (as Underscore) and rose to power after a fork (as Lodash) around 2012-2013. The language was too unsafe, unmaintainable, and unwieldy. The addition of optional chaining and null coalescing alone makes a large handful of Lodash functions obsolete. The source code is maintained with understandability for newcomers as a top priority.

  6. 6
    Article
    Avatar of communityCommunity Picks·4y

    How To Use Multithreading in Node.js

    Since JavaScript is single-threaded, it blocks the main thread and no other code executes until the task completes. To understand this, you will create a Node.js program with an infinite loop so that it doesn’t exit when run. Using nano or your preferred text editor, create and open the process.js file: nano process.

  7. 7
    Article
    Avatar of communityCommunity Picks·4y

    Please Stop Using Local Storage

    Local storage is just one big old JavaScript object that you can attach data to (or remove data from) Local storage provides at least 5MB of data storage across all major web browsers. This is a fairly low limit for people building apps that are data intensive or need to function offline. If the app you're using doesn't fit the above description: don't use local storage.

  8. 8
    Article
    Avatar of devgeniusDev Genius·4y

    The CSS Hack You Need To Know!

    The Attr() selector allows our CSS style sheet code to communicate with our HTML. The selector allows us to read in attribute values specific to the targeted HTML tag or element. A common practice implementation for this type of feature would be to use an additional span within an element. The span value is updated as required.

  9. 9
    Article
    Avatar of gcgitconnected·4y

    React code conventions and best practices

    React code conventions and best practices use linting and automatic formatter. Use PascalCase in components, interfaces, or type aliases. Prefer using typescript barrels A barrel is a way to roll up exports from several modules into a single convenient module.

  10. 10
    Article
    Avatar of communityCommunity Picks·4y

    JavaScript Visualized: Prototypal Inheritance

    In an extended class, we can access the parent class' constructor using the super keyword. By default, this object contains a constructor property, which is simply a reference to the chihuahua. But these chihuahuas can also do something special, they have a small bark. Now as you can imagine, the prototype chain doesn't go on forever.

  11. 11
    Article
    Avatar of honeypotHoneypot·4y

    9 Bad React Habits to Kick From Your Life

    React has become a word that developers worldwide hear on a regular basis. Too much flexibility makes it easy to pick up bad habits and poor practices. Here are some of the worst practices I’ve seen (and may or may not have done in the past) The useEffect hook is probably one of the first hooks a React developer learns.

  12. 12
    Article
    Avatar of hashnodeHashnode·4y

    Build your first Electron app

    Electron is a free and open-source framework maintained mainly by GitHub. It powers dozens of apps, including Discord, Slack, Notion, VSCode, Spotify, and many more. The framework is designed to let developers create desktop applications using web technologies such as JavaScript, HTML, and CSS.

  13. 13
    Article
    Avatar of communityCommunity Picks·4y

    5 Good practices to scale your React projects easily

    Reuse and reduce development time. Organize project and prevent project reconstructions. Show you are good developer by taking consideration of the project and other devs. Here are 5 lessons I learned from scaling my React projects.

  14. 14
    Article
    Avatar of changelogChangelog·4y

    Real world application

    Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. The Electron app is written in plain-old HTML and JavaScript. The Tauri app installer is around 2,5MB (!!!), while the Electron install is around ~85MB. Tauri has many security features built-in by default. You can even explicitly enable or disable certain APIs.

  15. 15
    Article
    Avatar of communityCommunity Picks·4y

    TypeScript - The Best Way to Use It with React

    TypeScript is a great way to improve your React code. It can help you catch errors, optimize performance and make your code more readable. It is possible to write code that is valid TypeScript but will not compile because of an error in React. This means that developers need to be aware of both TypeScript and React when they are writing their code. Test your API for free now at BLST!

  16. 16
    Article
    Avatar of communityCommunity Picks·4y

    What Is Bun.js and Why Is the JavaScript Community Excited About It?

    Bun is the third of its kind after Node.js and Deno.js, created by Jarred Sumner using the Zig programming language. Bun advances to provide new levels of speed and enhanced complexity.

  17. 17
    Article
    Avatar of communityCommunity Picks·4y

    HTML is all you need to make a website

    At the dawn of Web 1.0, there was only HTML. At the heart of every website is pure, unadulterated HTML. The first website ever is still online, and yes — it's just HTML.

  18. 18
    Article
    Avatar of hashnodeHashnode·4y

    How I got my 1st job as a developer by making simple projects seem big

    Julia is a self-taught front-end developer in his thirties who switched career into tech after studying Japanese and musicology while working part-time at a casino. She created a simple calculator using JavaScript using HTML, SCSS, JavaScript, hosted on GitHub pages to run the app. She later updated the code and created some mixins to familiarize herself with it.

  19. 19
    Article
    Avatar of hnHacker News·4y

    Astro 1.0

    Astro v1.0 is a web framework for building fast, content-focused websites. Over the last 16 months, Astro has grown from an empty repo to over 13,000 stars on GitHub and 30,000 early users around the world. Astro has already been Addy Osmani, Software Engineer, Google Chrome Astro’s fast performance is even more noticeable to end users.

  20. 20
    Article
    Avatar of communityCommunity Picks·4y

    Javascript to know for Reactjs

    React js is an open javascript library that enables us to be build fast, declarative and component driven web development. With reactjs you can build web apps, cross platform mobiles apps (react native), desktop apps (electron, node gui), progressive web apps (pwas)

  21. 21
    Article
    Avatar of communityCommunity Picks·4y

    JavaScript: V8 Engine

    The letters 'JS' within a square JavaScript: V8 Engine is a single-threaded scripting language. This means it can only do 1 thing at a time. It has 1 call stack.

  22. 22
    Article
    Avatar of chromeChrome Developers·4y

    Modern web debugging in Chrome DevTools

    Chrome DevTools has an extra setting enabled by default: Automatically add known third-party scripts to ignore list. With this setting enabled, DevTools hides any file or folder that a framework or build tool has marked as to ignore. This is a preview feature available in Chrome Canary from version 106.

  23. 23
    Article
    Avatar of communityCommunity Picks·4y

    Javascript Fundamentals

    Javascript is a high-level, object-oriented, multi-paradigm programming language. In 1995, Brendan Eich created the very first version of Javascript in just 10 days. In 1996, "Mocha" was renamed to LiveScript and then to Javascript to Conditionals In JavaScript. If break is not used, next block of code for next case will be executed automatically. If break was not used.

  24. 24
    Article
    Avatar of freekFREEK.DEV·4y

    How do database indexes work?

    Every month I send out a newsletter containing lots of interesting stuff for the modern PHP developer. Expect quick tips & tricks, interesting tutorials, opinions and packages.

  25. 25
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    Frontend Web Developer 21-Hour Bootcamp

    Frontend Web Developer 21-Hour Bootcamp will teach you the core skills you need to know to become a frontend web developer. You will learn various web development technologies and create a few projects.