Best of Computing2022

  1. 1
    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.

  2. 2
    Article
    Avatar of communityCommunity Picks·4y

    How to be Better at Algorithms? | Examples for Beginners

    The design of an algorithm depends on the complexity of the problem it needs to solve. Pointer Traversal or Pathfinding: when searching a graph or network, it’s important to use a proven search algorithm. Hash Table: Hash table algorithms are used for a variety of purposes, such as collision detection and pathfinding.

  3. 3
    Article
    Avatar of towardsdevTowards Dev·4y

    useMemo and useCallback in React

    memoization or memoisation is an optimization technique used to speed up computer programs by storing the results of expensive function calls and returning the cached result when the same inputs occur again. In React, memoization has the same philosophy but it’s a little bit different but it's a bit different to memoization.

  4. 4
    Article
    Avatar of communityCommunity Picks·4y

    How to Scale Application to support Millions User

    How to Scale Application to support Millions User Designing a system that supports millions of users is a process that requires continuous improvement and refinement.

  5. 5
    Article
    Avatar of coinsbenchCoins Bench·4y

    Introduction to Blockchain

    Bitcoin is decentralized and trustless, meaning there is no trusted authority which controls updates. If any node could make updates to the database at any time, there would be conflicts, fake transactions, inconsistencies between different nodes’s copies of the database.

  6. 6
    Article
    Avatar of communityCommunity Picks·3y

    Does Async-Await and Promises Guarantee Asynchronous Code? No (and Here’s Why)

    Async-Await and Promises Guarantee Asynchronous Code? No (and Here’s Why) This article busts this myth with a few examples and tells you when your code is truly asynchronous and non-blocking. JavaScript is single-threaded.

  7. 7
    Article
    Avatar of gcgitconnected·4y

    7 Best Tools for Monitoring Node.js Servers.

    There are several tools available for monitoring servers, but few are designed specifically for Node.js. In this post, we will discover the 7 best of them. PM2 PM2 is a potent instrument to run Node applications, but it is also very good at maintaining and monitoring standalone applications in production servers.

  8. 8
    Article
    Avatar of bytebytegoByteByteGo·4y

    Message Queue and NoSQL with 10x Performance Boost

    When Apache Cassandra came out around the late 2000s, AWS EC2 instances with a few physical cores and 64GB of RAM were considered high end. In order to take full advantage of these advances, high performance software requires new designs.

  9. 9
    Article
    Avatar of honeybadgerHoneybadger·4y

    Multithreading in JavaScript with Web Workers

    Single-threaded JavaScript VM is fundamentally designed to spawn a single thread, which means that it cannot read and execute multiple instructions simultaneously. When we see a function execution hindering the following function from executing for a few seconds, wait because a singlethread is handling a blocking process.

  10. 10
    Article
    Avatar of infoworldInfoWorld·4y

    If Heroku is so special, why is it dying?

    A golden age of developer experience Heroku is back in the news because it recently announced the elimination of its free tier. Why is Kubernetes and not Heroku the increasingly default way to build and scale applications? Some suggest Heroku was simply ahead of its time.

  11. 11
    Article
    Avatar of bytebytegoByteByteGo·3y

    EP37: Process vs Thread

    OpenAI has been developing GPT (Generative Pre-Train) since 2018. GPT 1 was trained with BooksCorpus dataset (5GB), whose main focus is language understanding. On Valentine’s Day 2019, GPT 2 was released with the slogan “too dangerous to release” The training cost is $43k.

  12. 12
    Article
    Avatar of towardsdevTowards Dev·3y

    FastAPI Production hints

    FastAPI Production hints FastAPI is a modern, fast (high-performance) web framework for building APIs with Python. In the last 3 years, it has been very popular among back-end developers that are using Python. It is asynchronous and fast because of mainly uses Startlette.

  13. 13
    Article
    Avatar of bytebytegoByteByteGo·4y

    EP31: Super High-performance NoSQL and MQ

    The data platform ingests, processes, analyzes and presents data generated by different data sources. No JVM, No GC Kafka and Cassandra are written in JVM-compatible languages and usually suffer from high tail latency. Redpanda and ScyllaDB are rewritten from scratch using C++ and leverages some new frameworks.

  14. 14
    Article
    Avatar of golangGo·4y

    Go runtime: 4 years later

    The Go GC returns unneeded memory back to the operating system much more proactively, reducing excess memory consumption and the chance of out-of-memory errors. Pool, a GC-aware tool for reusing memory, has a lower latency impact and recycles memory much more effectively than before.

  15. 15
    Article
    Avatar of awstipAWS Tip·4y

    Deploy an API tool in 10 minutes

    The core idea of Serverless is to make the server as a computing resource no longer need the attention of users. FaaS (Functions as a Service) functions as a service. Later, we will use the serverless API to implement a service that uses Node to help clients send API requests and get responses.

  16. 16
    Article
    Avatar of medium_jsMedium·4y

    Five Reasons Why You Should Learn Rust

    Rust's ownership model is genuinely a new and refreshing concept for me, says Idan Zalzberg. Rust guarantees memory safety without garbage collectors or automatic reference counting. Rust expands that idea into thread safety. It's a new mental model and can take some time to learn.

  17. 17
    Article
    Avatar of discdotDiscover .NET·4y

    Introducing Project Volterra

    Project Volterra is a Windows dev kit with an Arm CPU and NPU. It will include native Arm64 Visual Studio and .NET support. The Visual Studio team will have more announcements in the next few weeks related to Visual Studio Arm64 support. It is becoming evident that the NPUs will feature in many computing devices going forward.

  18. 18
    Article
    Avatar of hnHacker News·4y

    6 Docker Compose Best Practices for Dev and Prod

    Docker Compose is a tool for defining and running multi-container Docker applications. It allows you to bring up and link multiple containers into one logical unit. If you want to use Docker containers, you create one container that listens on an unused port on your machine. The alias will give it precedence when two services could share a Dockerfile and a code base but have some slight variations.

  19. 19
    Article
    Avatar of hackernoonHacker Noon·3y

    The Best Programming Languages for Working with AI

    The most well-liked programming language for AI is Python, which is also one of the trendiest languages right now. Python is a general-purpose, dynamically semantic, interpreted programming language. Julia is a relatively new (it was released in 2012), brilliant, very fast, and flexible programming languages for technical computing.

  20. 20
    Article
    Avatar of communityCommunity Picks·3y

    Master the JavaScript Interview: What is a Pure Function?

    A pure function is a process which takes some input, called arguments, and produces some output called a return value. Pure functions are essential for a variety of purposes, including functional programming, reliable concurrency, and React+Redux apps. There may be a different way to look at them that will make functional programming easier.

  21. 21
    Article
    Avatar of medium_jsMedium·3y

    How we reduce our Streaming cost by 90% using Benthos

    Benthos is a brand new open-source data streaming service that is written in GO. It's based on GO instead of JVM, which gives it outstanding performance, native support for K8S, and all the connectors/sinks you can think of. The deployment is fully scalable and will scale up & down.

  22. 22
    Article
    Avatar of hasuraHasura·4y

    Top PostgreSQL Database Free Tier Solutions

    Neon is a company that provides fully managed serverless Postgres databases. It automatically scales your database based on the project workload and only charges you for the amount of resources used. Fly.io Fly is a global distribution platform that allows you to deploy and run applications close to the users.

  23. 23
    Article
    Avatar of communityCommunity Picks·4y

    For the love of god, stop using CPU limits on Kubernetes

    Many people think you need CPU limits to prevent one pod from interfering with another pod. The trick is to just define CPU requests, with or without requests, and the same is true for CPU requests.

  24. 24
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Improve AWS Performance Without Spending More Money

    AWS has a concept of an EC2 Compute Unit (ECU) which is their way of abstracting away having to think about the servers your application is running on. The idea is that AWS provides you with a baseline CPU utilisation beyond which you pay for the CPU time you consume.