In the 1970s, we had C and in that decade and the following one, we put together our systems in that language and its derivatives.
In the 1990s, we had Perl and in that decade and the following one, we put together our systems in that language are related ones.
In the 2010s, we'll have a wide rang ....
Programming training is much more effective if the delegates are shown how a particular program is written, rather than just the final result ... show them just the final result and they'll ask "but how did you come up with that?"
So whenever possible, I write new examples in front of my delegates ....
"In Lua, function names are first class variables." Ok - so what does that mean?
At the most direct / simplest, it means that a function can be stored in a variable - so that you can write
function oik()
print ("does the real work!")
end
and then
action = oik
action()
....
Lua ... If you refer to a table name WITHOUT square brackets, you are referring to (and will effect) the whole table ... but if you refer to a table name and put something thereafter in square brackets, you are referring to just one element of the table. Actually, an almost identical story applies t ....
"Age Concern" says the "one armed bandit" in one of our local pubs - and watching the display on the screen, it tells us that 20% of the proceeds go to the Age Concern Charity. Good for them - I suppose - if they're happy to be funded by the profits from gambling; it's probably quite a good sales l ....
With a course in London this week, I've had an opportunity in the early morning and early evening to walk across town and take a few pictures. A quiz for those of you who are at all familiar with London (most will be VERY easy for native Londoners!), can you place the pictures? ....
If you're running a web application through a number of phases , you've a choice of three ways of keeping information from one page to the next (keywords - sessions, shopping carts!).
You can use a bathtub - each time history (data) is entered, it gets added to a collection which gets passed back a ....
The "goto" statement - in languages that still support it - is regarded with disdain by Computer Scientists as it makes for spaghetti code - hard to follow and going all over the place!
In some ways, loop controls "break" and "continue" ("last", "next" and "redo" in Perl; "next", "redo", "retry" a ....
Rules for naming variables in Lua ...
* MUST start with a letter or underscore
* which MUST be followed by as many or as few letters, digits, underscores as you like
* Case sensitive (sound bite - "there are 52 letters in the alphabet"
* Variable names must NOT be Lua keywords
Suggestions for namin ....
Would you like to draw a map showing you where your visitors are coming from - all around the world? Something like this:
Last 15 minutes - visitors to www.wellho.net
I've being doing that through PHP, using the GD graphics module - source code available here if you want to do the same thing on ....