In this article we continue developing the Logo Programming language further by writing a simple TokenCollection class to help traverse the array of tokens returned from the lexer we created in part 1. This class will be used in Part 3, when we develop the parser.
Read more.
The Logo programming language was designed by Wally Feurzeig, Seymour Papert, and Cynthia Solomon in 1967 as an educational tool. The language was used to program a robotic turtle that would draw graphics given a series of instructions. In later years the physical robot was replaced by a virtual on-screen turtle. Over the years, various institutions and organizations have implemented the language with additional features. Notable major implementations are UCBLogo and MSWLogo.
Read more.
Generating Web API Keys
29 May 2020 - 7214 views
If you're building a REST API, chances are you're going to need to generate secure random API keys. You may be tempted to use a third-party library but before you do, consider using the crypto package from Node.js. The crypto module can generate random bytes, which can then be used to create your API keys.
Read more.
Port Scanner
31 January 2020 - 3142 views
NodeJs has become one of my go to tools for developing small utilities and services extremely quickly. One such tool that I've developed, is a simple port scanner to help determine which ports are being used.
Read more.
Sorting Algorithms
29 November 2019 - 2114 views
I don't often start an article asking a question, but I'll make an exception today. Can you take the following array [8,3,1,9,6,5,7,2,4] and sort it in ascending order? Fairly easy right? Many programming languages provide sorting functions that make tasks such as this a one liner.
Read more.
Simple Http Server
04 September 2019 - 2023 views
Node.js makes it remarkably simple to develop an HTTP server quickly without having to write low level socket code. In-fact all it takes is a few lines of code. In this article I'll explain how to develop a simple HTTP server and then expand on it to handle routing and serving static files.
Read more.
Reading From Console
16 July 2019 - 2558 views
Node.Js provides several ways to read user input from the terminal. This article explains how to use the process object to read user input. The
process object is a global object which is available without the need to include it using the
require() method.
Read more.
Understanding the difference between const, let and var can help you write better code and avoid errors. In this quick tutorial, I will explain the differences between each of the keywords with examples. Let's first take a lot at the const keyword.
Read more.
Reading and writing to a file is a common task most developers do. Thankfuly Node.js provides a simple to use package that can be used to read and write to a file synchronously or asynchronously.
Read more.
Introduction To Node.js
29 May 2019 - 888 views
I've been developing alot of Node.js applications lately and though I might start a new category on this blog with articles on Node.js.
Node.js is an asynchronous event driven JavaScript runtime built on Chrome's V8 JavaScript engine. It is deisnged to build scalable networking applications but can also be used to develop applications with GUI's using thrid party libraries. The Node Package Manager (npm) allows you to install third party packages either from the npm repository or install a local package from your computer.
Read more.