Jun
16
PBS 96 of X — World Clock Challenge Solution
Filed Under Software Development, Computers & Tech on June 16, 2020 | Leave a Comment
This instalment is hosted on GitHub — Read the Show Notes Here.
Mar
22
PBS 92 of X — Currency Converter Table Challenge
Filed Under Software Development, Computers & Tech on March 22, 2020 | Leave a Comment
This instalment is hosted on GitHub — Read the Show Notes Here.
May
18
PBS 78 of X — is.js & Bootstrap Popovers
Filed Under Computers & Tech, Software Development on May 18, 2019 | 2 Comments
For boring real-life reasons this instalment is a bit of an intermission. In the previous instalment we learned about so-called call-back hell, and were all set to learn how Javascript Promises would be our liberation, but that’s going to have to wait until next time. Promises are a very important concept, and I don’t want to rush them.
What we’re going to do in this instalment is focus entirely on my sample solution to the challenge set at the end of the previous instalment, which I’ve used as an opportunity to demonstrate two new tools to add to our programming tool belt — the micro-checking library is.js, and Bootstrap Popovers.
You can download this instalment’s ZIP file here.
Read more
Mar
24
PBS 74 of X — More Mustaches
Filed Under Software Development, Computers & Tech on March 24, 2019 | 2 Comments
In the previous instalment we got our first look at Mustache templates. In this instalment we’ll finish our look at this handy little third party library with a look at some of Mustache’s more advanced features. This will set us up perfectly to finally introduce AJAX into this series. This is an extremely common technique for fetching external resources with JavaScript. We’ll learn how to use AJAX to fetch both Mustache template strings and JSON data from URLs.
You can download this instalment’s ZIP file here.
Mar
10
PBS 73 of X — Mustache Templates
Filed Under Software Development, Computers & Tech on March 10, 2019 | 3 Comments
In the previous instalment we took our first look at using templates with JavaScript to create cookie-cutter content like Toast notifications more easily than building them up piece-by-piece with jQuery. We started our exploration of the topic with a look at HTML5’s new <template>
tag. In this instalment we’ll introduce a third-party templating tool, Mustache, and see how it can take our templates to the next level with concepts like conditional and looped sections.
You can download this instalment’s ZIP file here.
Feb
23
PBS 72 of X — HTML5 Templates
Filed Under Software Development, Computers & Tech on February 23, 2019 | 2 Comments
Templating is a very important concept to get to grips with as you move from web pages to web apps. You need the ability to design some generic HTML and then easily inject data into it. Every UI popup has a standard form, but the information being displayed changes each time its invoked. Similarly, apps often use some kind of card interface to show a collection of similar items, those are basically the same piece of HTML being re-used with different data over and over again. Clearly, you want to be able to easily create a template for one card, and then re-use it over and over again.
I’ve been trying to find the perfect moment to insert this topic into the series, and it struck me that Bootstrap Toasts would make a simple but informative example around which to introduce the topic. So far we’ve been generating toasts by building them up piece-by-piece with jQuery, starting with a tag, setting the text, setting some attributes and properties, adding some classes, appending tags together, and so on. The code works, but it’s cumbersome to write, and worse still, difficult to debug and maintain. Hopefully you’ve been thinking to yourself ‘there must be a better way?’, because if you have been, you’ll be very well motivated to ingest this instalment!
You can download this instalment’s ZIP file here.
Feb
9
PBS 71 of X — Bootstrap Spinners
Filed Under Software Development, Computers & Tech on February 9, 2019 | 1 Comment
The challenge set at the end of the previous instalment was to build a simple timer web app. This was a much more substantial challenge than those I’ve been setting in the previous handful of instalments, and in involved re-familiarising yourself with concepts we’ve learned before, but not used for some time. For those reasons this instalment will primarily revolve around my sample solution to the challenge. I’ll go through it in much greater detail than I have been doing recently.
It would be a shame to go through an entire instalment without any new content though, so we also meet one very simple but very useful little Bootstrap component, the Spinner. Learning about the spinner sets us up nicely for a new challenge — two simple but important improvement to the timer web app we just built.
You can download this instalment’s ZIP file here.
Jan
27
PBS 70 of X — Bootstrap Modals & Toasts
Filed Under Software Development, Computers & Tech on January 27, 2019 | 3 Comments
In this instalment we’ll continue our recent focus on Bootstrap components primarily intended for use in web apps rather than on web pages. We’ll look at a pair of components designed to notify of something — modal dialogue boxes, and so-called toast notifications.
Different notifications require a different UI, hence there being two components, Modal, and Toast. However, both are quite similar in the sense that you will most probably be triggering them via JavaScript. Unlike the other components we’ve seen so far, these will not be visible to the user when the page loads, they’ll make their presence felt at some later time in response to some kind of event.
You can download this instalment’s ZIP file here.
Jan
13
PBS 69 of X — Bootstrap Navbars
Filed Under Software Development, Computers & Tech on January 13, 2019 | 1 Comment
In the previous instalment we learned how to use Navs for creating navigation bars, and learned how to use Dropdowns to add expandable menus to our Navs. In this instalment we’ll meet Bootstrap’s ultimate navigation component, the Navbar. This is a powerful component designed to act as the menubar at the top of websites or web apps.
You can download this instalment’s ZIP file here..
Dec
16
PBS 68 of X — Bootstrap Navs
Filed Under Software Development, Computers & Tech on December 16, 2018 | 1 Comment
In this instalment we’ll get our first look at Bootstrap’s so-call Nav component, a menu designed to facilitate navigation around a website, within a page, or within a web app. In the previous instalment we met Dropdowns for the first time, and saw how Dropdowns filled with buttons can be used within web app UIs. We ended by noting that Dropdowns come in two flavours, buttons and links. In this instalment we’ll learn how to use the link-flavour of Dropdowns within Navs. Finally, we’ll learn how to use Navs to create tabbed content regions within a web page or web app.
You can download this instalment’s ZIP file here.