Best of MediumMay 2023

  1. 1
    Article
    Avatar of medium_jsMedium·3y

    Doing much better than your .env file

    Tony: I argue again for why we should reduce the practice of storing all environment variables in a.env file and move to a more sophisticated approach for managing them in local development. He says this article is intended for software development teams and not security and devops teams that already have this figured out.

  2. 2
    Article
    Avatar of medium_jsMedium·3y

    Must Know JavaScript API — Page Visibility API

    The Page Visibility API is a browser API that provides a way to detect if a page is visible. This article will introduce what the Page Visible API is, how it works, compatibility, and usage scenarios. In front-end development, we often need to control the use of resources and improve the performance and responsiveness of a page.

  3. 3
    Article
    Avatar of medium_jsMedium·3y

    Memoization in JavaScript

    Memoization in JavaScript is a powerful optimization technique that speeds up the execution of functions by caching their results. It involves storing the results of expensive function calls and returning the cached result when the same inputs occur again. This article explores the concepts, benefits, and different implementation approaches of memoization in JavaScript.

  4. 4
    Article
    Avatar of medium_jsMedium·3y

    Callback Refs in React

    Callback Refs are a way to set a ref to a function instead of directly to a DOM element. This function is called with the component instance or DOM element as its argument when the component is mounted or updated. Callback refs are particularly useful when you need to access properties or methods that are not directly available through props.

  5. 5
    Article
    Avatar of medium_jsMedium·3y

    Single Rust Binary with Vite+Svelte

    Single Rust Binary with Vite+Svelte can be easily packaged in a container image using docker or podman. In production you will probably want to specify a specific origin, but for our sample this will do for now. Our Rust web server is now ready to host the static web files from the directory.

  6. 6
    Article
    Avatar of medium_jsMedium·3y

    Free tech programs that can help you land roles

    Free tech programs that can help you land roles are now providing free training and programs to encourage more people to pursue careers in cybersecurity. Grace: I want to emphasize that I am not against paid programs and materials, and I encourage individuals to take advantage of them if they can.

  7. 7
    Article
    Avatar of medium_jsMedium·3y

    ES6 imports vs CommonJS imports

    ES6 imports vs CommonJS imports in Javascript vs. CommonJS Imports for Beginners and Intermediates Rahul Mishra on Unsplash. The structure and organization of code have undergone significant changes since the introduction of ES6. In this blog post, we will explore several differences between the two and examine their operational principles.

  8. 8
    Article
    Avatar of medium_jsMedium·3y

    Daily LeetCode Problems: Problem 24. Swap Nodes in Pairs

    Daily LeetCode Problems: Problem 24. Swap Nodes in Pairs: A Clever Approach to Rearrange Linked List. In this article, we’ll explore the problem statement, discuss an intuitive approach to solving it, and provide a step-by-step breakdown of the solution.

  9. 9
    Article
    Avatar of medium_jsMedium·3y

    Making a Chrome Extension with Svelte

    SvelteKit is a tool that generates websites from Notion databases. Svelte has been an excellent choice for building this Chrome Extension. It’s recommend to clone the project from the GitHub repo that can be tested directly in Chrome.

  10. 10
    Article
    Avatar of medium_jsMedium·3y

    Create a Telegram Bot in Seconds: The Ultimate Step-by-Step Guide

    Create a Telegram Bot in Seconds: The Ultimate Step-by-Step Guide. The full template includes a built-in database, administration system, and commands. When you run the bot using for the first time, the database will be automatically created. All commands must be exported as below.

  11. 11
    Article
    Avatar of medium_jsMedium·3y

    💪 New Google Bard or ChatGPT: Ultimate Comparison

    Google Bard and ChatGPT use different language models to power their chatbots. Google Bard is based on PaLM 2, which stands for ‘Pretrained Language Model 2’ GPT-4 is OpenAI’s most advanced system, which produces safer and more useful responses.

  12. 12
    Article
    Avatar of medium_jsMedium·3y

    Must Know JavaScript API — Beacon API

    Beacon API is a new browser API provided by HTML5 that can be used to send data asynchronously in the background of the browser without affecting the loading and performance of the current page. With the Beacon API, developers can send data to the server when pages are unloaded or closed, thus enabling some monitoring and logging features.

  13. 13
    Article
    Avatar of medium_jsMedium·3y

    🔮 The Future of Web 3.0 Development: Thirdweb SDK

    Thirdweb SDK is a collection of SDKs that enable web developers to integrate web 3.0 technologies into their applications with ease. Thirdweb SDK supports JavaScript, React, React Native, Python, Go, Unity and C#. It also covers various platforms such as native, mobile, console, browser and VR2.

  14. 14
    Article
    Avatar of medium_jsMedium·3y

    HTML Tags Uncovered: Prefetch vs. Preload

    Prefetch vs. Preload is a technique used to reduce the perceived load time of a web page by fetching resources in advance before they are needed. It enables browsers to download and cache external resources, such as CSS files, JavaScript files, images, or fonts, ahead of time.

  15. 15
    Article
    Avatar of medium_jsMedium·3y

    Neural Networks Mathematics: From Beginner to Pro

    A blog simplifying artificial neural network math and explaining backpropagation and stochastic gradient descent in neural networks.

  16. 16
    Article
    Avatar of medium_jsMedium·3y

    Build your own face recognition system with python in minutes

    Build your own face recognition system with python in minutes. The concept is known as one shot learning. It is different from traditional image recognition models in a sense, that you are only required to have one picture of a person whom you want to recognize, and you don't need to ‘train the model’ to recognize.

  17. 17
    Article
    Avatar of medium_jsMedium·3y

    Generators in JavaScript Explained

    A generator function is a special kind of function that can be paused and resumed during execution. This means that a generator can yield multiple values over time, rather than just returning a single value. Generators can also be used to implement lazy evaluation, where values are only computed when they are needed.

  18. 18
    Article
    Avatar of medium_jsMedium·3y

    Learn Go Programming: Fast and Easy Basics for Beginners

    Go programming is a programming language known for its simplicity, speed, and concurrency. This post provides an easy and enjoyable way to learn Go programming. It covers topics such as hello world, variables, functions, packages, control structures, arrays, slices, maps, structs, pointers, and more. If you're looking to learn Go programming, this post is a great starting point.

  19. 19
    Article
    Avatar of medium_jsMedium·3y

    useRef vs. useState in React

    Understanding the differences between useRef and useState hooks in React and knowing when to use each hook is crucial for writing effective and optimized React components. useRef is primarily used to access and manipulate the DOM or store mutable values without triggering re-renders. useState is used for managing component state, triggering re-renders when the state updates.

  20. 20
    Article
    Avatar of medium_jsMedium·3y

    Daily LeetCode Problems: Problem 934. Shortest Bridge

    LeetCode Problem 934 challenges us to connect two islands in a binary matrix by flipping the minimum number of 0’s. We will explore the problem statement, discuss the DFS+BFS approach, provide pseudocode, analyze the time and space complexity and present a comprehensive solution.

  21. 21
    Article
    Avatar of medium_jsMedium·3y

    How to Use Functional Programming to Create Better Code

    Learn how to leverage functional programming principles to create safer, more readable, and less buggy code. Discover the benefits of using pure functions, immutable data structures, recursion, and higher-order functions.

  22. 22
    Article
    Avatar of medium_jsMedium·3y

    Best of Level Up Coding (May 2023)

    In this edition, we explore amazing success stories of programmers who turned a website into a $1,650,000,000 product in two years. We also discuss the most sought-after skills in AI jobs and system design concepts to help you ace your next interview.

  23. 23
    Article
    Avatar of medium_jsMedium·3y

    The Difference Between indexOf and findIndex in JavaScript

    The Difference Between indexOf and findIndex in JavaScript provides two methods that are commonly used for searching elements in arrays or strings. In this detailed explanation, we will explore these differences and provide examples to illustrate their usage. For arrays, the method is a built-in function available for both arrays and strings in JavaScript.

  24. 24
    Article
    Avatar of medium_jsMedium·3y

    The 2023 Angular Developer Roadmap | Zero to Hero

    The 2023 Angular Developer Roadmap is a comprehensive roadmap that outlines the essential steps and resources to help you master Angular and start building impressive applications with confidence. The key to success lies in continuous learning, practice and the application of best practices as you build real-world projects.

  25. 25
    Article
    Avatar of medium_jsMedium·3y

    Javascript Operator(Part-1)

    Javascript Operator(Part-1) What is an Operator? Let us take a simple expression 4 + 5 is equal to 9. Here 4 and 5 are called operands and ‘+’ is called the operator.