In my opinion yes, typescript is amazing and provides a lot of benefits over vanilla JavaScript. First, let me tell you what typescript is and then why you should be using it. What is TypeScript? TypeScript is a strict superset of JavaScript that transcompiles (source to source compiler) the code into JavaScript. It is developed by Microsoft and was first … Read More
What Are the Advantages of Functional Programming Over Imperative Programming?
What actually is functional programming? Functional programming is a programming paradigm whereby applications are written using blocks of self-contained code that performs a single action and is reusable. These are called functions. This paradigm was created to support a pure functional programming approach to problem-solving. Functional programs can use functions in much more elaborate ways. In this method of programming, … Read More
How Does a Computer Understand a Programming Language?
For this example we will be looking at the C programming language.High-level language codes are written in a form that is human readable. Computers only understand machine code – they do not understand high-level language code. Any high-level programming language code has to be converted to executable code. Executable code is also known as machine code which is a combination … Read More
Using Booleans (with some Dyalog APL examples)
Booleans are one of the most prominent data types used throughout computing. In programming, Booleans are mainly used in logic problems and can be used and manipulated in many ways. What is a Boolean? A Boolean is a data type used to identify a value which can only be true or false, sometimes represented as 1 or 0, respectively. The … Read More
Would You Survive the Titanic? – Data Visualisation in Python
There are a lot of useful tools out there that can help you see trends and patterns in your data… but how valuable is that in the real world? Recently, I have been looking into Matplotlib and Seaborn – two of Python’s best data visualisation libraries. With the knowledge of these packages (and a few other data science dependencies), you … Read More
Simulate Multithreading on a Single Thread Using Asynchronous Programming in JavaScript (Node.js)
Concurrent programming using a single thread, Asynchronous programming (Blocking IO and non-blocking IO)In computing, a thread is a sequence of execution of a program. A thread has a beginning a sequence and an end. At any point during the runtime of a thread, there is only a single point of execution. A thread is not a program it only runs … Read More
How Does a Computer Add Two Numbers Together?
Computers are fascinating when you really think about it- how is it that a piece of metal goes from a simple rock in the earth, to being able to do complex arithmetic? Or to be able to remember? In order to understand the more advanced topics, we need to start simple. How does a computer interpret a number? Again, you … Read More