What is Django / What is a Web Framwork?
Many web applications have the same elements - a look and feel (the view, logic that works with the data, usually in a database (the model), something to handle incoming URLs and run the appropriate piece of logic (a router) and bespoke glue in the middle th ....
When you're being taught Object Oriented Programming, you'll usually be encouraged to access all the various elements within each object through methods rather than by going directly at the variables that hold propoerties within the object directly. And yet this will often result (depending on the l ....
An addiiton to my note on my "Oxford" Hotel .. and confirmation of why we provide Well House Manor for our guests...
One loo, one showerroom between three rooms (the 4th in en Suite). And when I took a shower, I noted:
* No loo in the bathroom.
* Going to the separate loo on the way to the bat ....
There's a differece between "the same", "equal" and "identical". I can have two identical 5p coins, but they're not the same coin. And I can have two coins which are not identical, but are equal in value. And when you're checking for equality in a program, you should know which you're looking at. Ta ....
Twenty years ago, I would have been happy with the B&B I'm writing from. The room's clean and recently decorated, the bed's comfortable and the traffic noise from outside is bearable. But, alas, times have moved on and these days people want more - indeed that's exactly why we opened Well House ....
The Customer comes first!
When you're writing code, you should be thinking of your user. That may be your end user or - if you're writing a module or classes - that might be a fellow developer, set of developers or even yourself. Whichever it is, the important thing is to get it right for them. I ....
From today's intermediate Python course - a new example of how to very quickly present the results of running an application on the web - [here].
The objective was to provide an almost-trivial way of letting results be viewed via a remote browser. No forms, no validation needed, no formatting of th ....
Python's an excellent tool for handling huge data sets and long-running programs, although some of the elements of the language that you'll use for such work aren't exactly things we teach on our Introduction to Python courses. Yesterday, however, I was teaching an Intermediate Python course, and ha ....
These days, it's the exception rather than the rule to write low level network code within your applications - and during today's Intermediate Python course, I wrote an example showing an FTP connection to retrieve data using ftplib. The first example is [here] - grabbing a file, saving it locally v ....
Question from Tom: What did you have for lunch yesterday?
Answer: A Sandwich, a piece of cake and some fruit.
Question from Dick: What did you have for lunch yesterday?
Answer: A Sandwich, a piece of cake and some fruit.
Question from Harry: What did you have for lunch yesterday?
Answer: A Sandwic ....