Lua's a small language - it's about a twentieth of the size of most of the others I teach - so there isn't the space for the nicities of things like expection handling. But it does very nicely, thank you!
Functions return nil (false) values if they fail, and true values (even 0 is true in Lua, wh ....
I've given the Well House Manor Hotel Site an overdue lick of paint today, and upgraded the staff facing reports from the pages too. And the changes are all about easy navigation, easily finding what you need, and leading nicely into the booking system.
Every page that's public facing now includes ....
I took a walk this afternoon - exploring paths from Shaw to Beanacre to Whitley and back to Shaw. Here are some images - 4 from 42.
All the pictures (twice the size too!) ... first half of the walk - [Beanacre] and [Whitley and Shaw]
....
In a recent article ([here]), I asked if Lua was an object oriented language - and I concluded that it supports the OO paradigm very well, even though it doesn't have keywords like "class", "private" or "extends". At the end of that article, I mentioned metatables - a subject I have carefully sides ....
Conventional Wisdom says that it's pointless to start a regular expression with ".*" or ".+", as this is implied within a match - regular expression matches are looking for strings that are contained anyway:
'/abc/' - contains abc
'/.*abc/' - contains anything or nothing, followed by abc
However - ....
Lua isn't an object oriented languages in the sense that you define classes, create objects with a new method, define interfaces and declare variables to be private or protected ... but never the less is a tool in which you can use object oriented techniques with (indeed) a freedom and flexibility t ....
I was asked how many languages I teach yesterday - and the answer's quite a few; at times, it's almost "the more the merrier" as to a very great extent they are varieties on a theme much of the way - but different balances of features make some languages especially good for some uses.
As a geek's r ....
In PHP, it sometimes feels like the answer to every question is "there's a function to do that" and in Lua, it seems the answer is always "it's a table" or "use a table"!
I'm running a Lua course this week, and I have just posted up an example in which I set up a table and showed some of the flexib ....
I first met Ruth Davis in 1996 - retired in Fort Myers, Florida, with a long, interesting and distinguished life already stretching back some 80 years behind her at that time. I got to know her better - but not as well as I would have liked - over the following years as I courted and then married h ....
Every few minutes, a spam email drops in my mailbox ... and indeed every five minutes or so throughout the day, our server rejects an email that is so obviously, undeniably spam that it doesn't even bother to notify us of its arrival. This is a long-running graph showing spam (red) and delivered to ....