Feb
18
PBS 50 of x — A Worked Example (Object Explorer)
Filed Under Computers & Tech, Software Development on February 18, 2018 | 1 Comment
In this very special 50th instalment I share my screen with Allison and we build up a simple web app together. We start with the scariest thing of all, a blank screen, and take it from there.
The web app we build up together is an object visualiser. Our simple web app consists of a text area into which we can enter JavaScript code to define an object, a <div>
into which we will render a representation of the object, and a button to trigger the rendering.
Using a Screen Reader? click here.
Just about everything we use in this little exercise is revision, with one exception — we meet JavaScript’s eval()
function for the first time. The eval()
function takes as an argument a string, and executes it as JavaScript code. For more details, see the MDN documentation.
You can download the final code here.
Feb
3
PBS 49 of x — Improving Our Cellular Automata
Filed Under Computers & Tech, Software Development on February 3, 2018 | Leave a Comment
In this instalment we’re going to continue to consolidate our understanding of JavaScript classes by improving the Cellular Automaton classes we built together in previous instalments. This time we’ll make a start on improving how the classes represent and deal with cell states. The challenge will be to finish the task.
We’ll also take some time to revise the basics of JavaScript objects.
The ZIP file for this instalment contains my sample solution to the previous challenge.