Rails is a "Web Framwork" that uses code written in the Ruby language to do the things that vary from one web application to another. There are a huge number of features common to many web applications, and by using a framework you can save yourself the trouble of rewriting all these common things ....
Finding clear, concise examples of how to perform a simple programming task can be surprisingly difficult. "I just want a [Rails] model that doesn't actually use a database table" was an example yesterday. Such shouldn't be difficult, but authors tend to write a simple example and then decide "Whi ....
Early programming exercises on a "learning to program in Xxxx" course involve asking the user to enter some pieces of data (usually numbers), doing a calculation using those numbers, and printing out a result. For that's a quite common requirement for a simple program - and this is the first realis ....
Which SQL Database would I advise newcomers with a new application to use?
Five years ago, MySQL would have been the obvious choice in many circumstances. But these days, MySQL has grown into a much bigger product and there are very serious licensing and other commercial issues that need to be cons ....
Ruby includes support for the SQLite3 database ... and SQLite is an excellent tool for developing and testing ("Spike solutions") your database structure and concepts before implementing a larger system. For a smaller and straightforward requirement, SQLite may be all that you require.
Towards th ....
"I'll be back in about a month - see you then" - and a cheerful wave from a departing guest. That's lovely - customers voting for us with their feet, and not unusual.
Mr "X", shall we call him, had booked late yesterday - so late, in fact, that his booking was long after most offices had closed. ....
Paperwork and Company Accounts ... Lisa's been working hard and the files have gone to the accountants. I dropped them off there earlier this week, a box so heavy that the receptionist called for a more muscular colleague to take them where they had to go.
The amount of admin and bookkeeping, the ....
Courses for newcomers to programming start with showing the mechanism of how to enter a program, how to prepare that program to be run, and how to actually run it. We then show them how to read an input (usually from the keyboard), calculate, save values into variables and resuse them a few lines ....
At Tuesday's Chamber of Commerce meeting, we were talking about pictures of Melksham for a 2014 calendar, and for the Chamber publicity ... and since then I've looked through some 8000 images I took in 2012. It's surprising how few are exactly right for what''s needed ... but I did find a sel ....
Our web site's done its best over the years to help people who enter URLs that have slight errors in them - misspellings, wrong directory names, etc ... and we have quite a number of scrips that take parameters which can be modified to give different results - for example
http://www.wel ....