-
Continue reading →: Updating Web Text Content (JavaScript)My original Countdown blog post mentioned that the JavaScript could be used to update content on a webpage (e.g. the countdown could countdown in real time and update on a page as it does so). I touched upon a method to do this, however I will expand a little bit…
-
Continue reading →: Functions (JavaScript)I am revisiting my JavaScript Countdown to turn elements of it into JavaScript functions. A function allows for parts of code to be reused easily without having to recreate the segment of code every time it is needed. For example, below I have created a basic function that prints “Hello…
-
Continue reading →: Countdown (JavaScript)JavaScript has a function called Date() which can either return todays date (24th September 2018 as I write this) or be used to set a date. August 2019 has an important event for me, so I decided to use JavaScript to create a countdown that counts how many days are…
-
Continue reading →: Tabs versus Spaces
This evening whilst setting up ESLint I was asked the question of which I preferred, tabs or spaces and instantly I thought of this: Tabs versus Spaces from HBO’s Silicon Valley Season 3 Episode 6. What is it all about? When writing code there are times when the code…
-
Continue reading →: Astro Pi (Raspberry Pi)During Autumn 2017 the Code Club I was running took part in Astro Pi 2017/18, as discussed in my blog post: https://geektechstuff.com/2018/01/31/astro-pi-mission-zero-day-2018/ . The great news is that the Astro Pi 2018/19 challenges are now live! If you want to take part please make sure to visit the official website: https://astro-pi.org…
-
Continue reading →: BlackJack Part 2 (JavaScript)I managed to finish my JavaScript console version of BlackJack which I started just over a week ago (see BlackJack V1). I got a little bit lost with the while looping and then needed to define how the player wins or loses but I think it now works as expected.…
-
Continue reading →: Binary (GTV2)
Binary is a base 2 system which uses 1s and 0s to represent on and of. All programsr are turned into binary.
-
Continue reading →: ARM Assembly Code (Raspberry Pi)On Saturday 8th September my son and I visited my local Pi Jam in Manchester, where Jack Kelly (Twitter: @SecretImbecile) was giving a workshop on ARM assembly code. Before I continue I would recommend readers to give the Crash Course Computer Science video below a quick view as it explains registers,…
-
Continue reading →: National Coding Week (17th September 2018)Monday 17th September 2018 sees the start of National Coding Week. National Coding Week is all about encouraging people to give coding a go and with that in mind, and to help encourage anyone that reads my site and has not yet tried coding I thought a pre-National Coding Week…
-
Continue reading →: BlackJack Part 1 (JavaScript)Looking for a new project in JavaScript that I have not done in Python, I got to thinking about arrays. As JavaScript allows us to generate random numbers and store variables (see “Scissor, Paper, Stone”) it should allow me to also recreate the card game of Blackjack or 21. For…



You must be logged in to post a comment.