Hodges' Model: Welcome to the QUAD: #scotruby

Hodges' model is a conceptual framework to support reflection and critical thinking. Situated, the model can help integrate all disciplines (academic and professional). Amid news items, are posts that illustrate the scope and application of the model. A bibliography and A4 template are provided in the sidebar. Welcome to the QUAD ...

Showing posts with label #scotruby. Show all posts
Showing posts with label #scotruby. Show all posts

Saturday, April 09, 2011

Nursing ideas somewhere between Drupal & Ruby

It's been a busy week:

  • getting ready for the Scottish Ruby Conference [SRC] three fascinating days 7 - 9 April.
  • checking with the client of the Drupal site, confirming that the following CSS3 adornments are not required: coloured lettering : 3D text : and others. KISS - OK!
SRC started with the charity day a day long tutorial from Chad Fowler author of The Passionate Programmer and Keavy McMinn. They delivered too - indeed it's all great! The venue - The Royal College of Physicians is quite amazing, full of history in its architecture and the portraits of esteemed members. Whether or not I attend a session in there today I must visit the library. The charity day covered:
  • Blocks and bindings
  • The Ruby object model
  • Meta-programming
  • Hooks, callbacks, and reflection.
When it came to the exercises I let the experts do their thing and followed the solutions. I missed last year's Ruby bash so it's good to be back.

Swapping to Ruby while tinkering with Drupal is not a help and yet there is overlap. GIT is the must-do within both communities. PHPNW's meeting on Wednesday on OOP with Lorna Mitchell highlighted some common aspects. I'm probably getting a lot of this (as in 'all' plain) wrong but Lorna's mention of $this and static methods sent me on a reverie. ...

Abstract classes are apparently incomplete and $this is not available to them. Suddenly I'm thinking well that's different. In nursing our abstractions on nursing care are complete - in the idealised sense. It's the concrete / practical (dynamic) delivery that sadly falls short.

PHPNW - the conference in October, a Saturday event in prospect and being here in Edinburgh reminds me I have this itch. Dave Hoover's keynote spoke about his career and finding his technical groove from a therapeutic role as a psychologist.

One thing I do know: from the books he mentioned I ain't got 10,000 hours. That's why I am trying to leverage Drupal and in Ruby - the Rails framework. There's an IDE I have just learned of JetBrain's Ruby Mine.

(Despite that) I'm reading Martin Fowler's book on Domain Specific Languages. Not because I'm going to write one (or like rashes), but because I'm totally intrigued and wondering about a research question. What question(s) can I ask that I might also be able to answer (or not)?

method_missing, meta programming and DSLs are still here in Edinburgh. No longer the latest and greatest (Jim Weirich suggested that was c.2006), but then neither are models of nursing. ;-)

In his book, Fowler identifies 'illustrative programming'. Spreadsheets are the key example and quite remarkable in how they are used and the niche they occupy from a programming, DSL, and an everyday tool perspective.

Hodges' model is a spreadsheet; or a decision table of sorts. Basically, does the patient have a problem in each of the care domains? Fowler writes:
The key benefits of a DSL - greater productivity and communications with domain experts - really kick in when you are using an alternative computational model. Domain experts often think about their problems in a nonimperative way, such as via a decision table. An Adaptive Model allows you allows you capture their way of thinking more directly in a program and the DSL allows you to communicate that representation more clearly to them (and yourself). p.116.
I'm really taking liberties with definitions. My domain experts might actually be student nurses.

I know book titles are intended to sell, but I look at the title of Chad Fowler's book above and wonder about the Compassionate Care Programmer and what alternative computational models may be needed to achieve that?

Fowler, M. (2010) Domain Specific Languages: Addison-Wesley Signature Series, Addison-Wesley Professional.

Sunday, March 16, 2008

BASIC, Ruby, DATA and Scotland On Rails

This weekend reading more of Hal Fulton's The Ruby Way, there was a blast from the past in the form of '10.1.25 Reading Data Embedded in a Program' and a reminder of all those DATA statements typed in from magazines.

Ruby not only supports the industry database and SQL standards, but other approaches such as embedded data and KirbyBase. Fulton's book is designed for 'random access' and yet I'm reading it through. There are jewels in the texts on Ruby. Sentences that while fairly obvious still serve to catch my breathe '... They differ in the amount of context they copy. ...'

10.4.7 Object-Relational Mappers discusses ActiveRecord and Og (object graph). Apparently Og can generate a database schema from Ruby class definitions (rather than vice-versa). This is a useful and powerful ORM 'especially if you design your database after your objects.' p. 384.OK ....

With all this reading on databases whatever happened to the Associative Data Model? Still alive and very well I believe, yet more Sentences to figure out.

In order to try and make some headway, next month I'm heading for Edinburgh and the Scotland On Rails conference.

I can't attend the full event, but plan to make sure the trip is well worthwhile. While I hope all the speakers stay in fine fettle, there is a speaker for Saturday whom I pray stays in finest lustre - a presentation on DSLs! Just one highlight of what should be a great talk. [Stay well Joe!]