Category index

Cyber Security

4276 articles

4276 ARTICLES

How to write your first unit test in JavaScript
CYBERSECURITY

How to write your first unit test in JavaScript

Testing code is the first step to making it secure. One of the best ways to do this is to use unit tests, ensuring that each of the smaller functions within an app behave as they should — especially when the app receives edge-case or invalid inputs, or inputs that are potentially harmful.

1 MIN READ arrow_forward
Node.js multithreading with worker threads series: worker_threads tutorial
CYBERSECURITY

Node.js multithreading with worker threads series: worker_threads tutorial

Multi-threading can offer substantial performance improvements for CPU-bound workflows by allowing arbitrary work to be performed in parallel. Although Node.js doesn’t offer real multi-threading, you can create something similar with the worker threads module. This article will explain what it does, and show how to use it in a few real-world applications.

1 MIN READ arrow_forward