Uncategorized

Writing a simple Bash interpreter in Python

Posted on

I wrote a blog post on how to create a bash interpreter in Javascript very recently, but we were limited since I was working in front-end Javascript, but since in Python we can create directories and files, the possibilities are wider, so on this one, we will be going more in-depth and making more commands. […]

Uncategorized

Building a simple Bash interpreter in Javascript.

Posted on

Making your own programming language/building an interpreter for another one is surprisingly easy. It can even be fun and will help you understand how interpreters work (the way I’ll show you isn’t quite how interpreters work though). We will be leaving out things like the ability to echo variables. We’ll be making two commands: echo […]

Uncategorized

To eval or not to eval?

Posted on

eval(“”) in Javascript can be useful, but it can also be harmful. When should you use eval? And should you use new Function([], “”) instead? When and why you shouldn’t use eval First off, you obviously shouldn’t use eval for things like eval(“alert(‘Hi!’)”). You also shouldn’t use eval when you’re getting code from the user, […]

Uncategorized

The side effects of Blink

Posted on

This is an article on Blink, the browser engine. Blink is a browser engine developed by Google. It uses V8 as a Javascript engine, so as a result, it’s extremely fast, and it’s the engine that powers Google Chrome. It was a fork of WebKit because the Chrome Team decided that using WebKit was too […]

Uncategorized

Local storage cat game

Posted on

LocalStorage Cat Game – A cat game made as a local storage demo I first made this game for fun, but then I ran into the problem of keeping the score, and I didn’t think of the HTML5 LocalStorage API. Then this StackOverflow question helped me out.