Hodges' Model: Welcome to the QUAD: object oriented

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 object oriented. Show all posts
Showing posts with label object oriented. Show all posts

Thursday, August 25, 2022

Agile Visualization with Pharo: Normalizers

 INDIVIDUAL
|
 INTERPERSONAL    :     SCIENCES               
HUMANISTIC --------------------------------------  MECHANISTIC      
SOCIOLOGY  :   POLITICAL 
|
GROUP

shapes?


normalization
SHAPES


shapes?
normalization

shapes?


Agile Visualization
with Pharo

"Normalizers: Shapes may be shaped and colored in a meaningful way to represent attributes and properties of the objects represented by the shapes." p.49.


Bergel, A. (2022). Overview of Roassal. In: Agile Visualization with Pharo. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7161-2_5

Thursday, March 10, 2016

The Scope of Nursing::And other things

individual
|
INTERPERSONAL : SCIENCES
humanistic ---------------------------------------  mechanistic
SOCIOLOGY : POLITICAL
|
group

"Scope Resolution Operator (::) 
The Scope Resolution Operator (also called Paamayim Nekudotayim) or in simpler terms, the double colon, is a token that allows access to static, constant, and overridden properties or methods of a class.
When referencing these items from outside the class definition, use the name of the class.
As of PHP 5.3.0, it's possible to reference the class using a variable. The variable's value can not be a keyword (e.g. self, parent and static). 
Paamayim Nekudotayim would, at first, seem like a strange choice for naming a double-colon. However, while writing the Zend Engine 0.5 (which powers PHP 3), that's what the Zend team decided to call it. It actually does mean double-colon - in Hebrew!"
Source: http://php.net/manual/en/language.oop5.paamayim-nekudotayim.php 

Scope of Nursing: (Interpersonal, Sciences, Sociology, Political & Spiritual)  actions, procedures, responsibility, accountability, governance, whistle-blowing, transparency, competency, candour, quality, safety....

Self-care?

Spot image: http://iridia.ulb.ac.be/~cpinciroli/extra/h-414/one_spot.png

Friday, January 20, 2012

Scope, Space, Nursing, Informatics: Fusion I

Paolo Perrotta writes:

Imagine being a little debugger making your way through a Ruby program. You jump from statement to statement until you finally hit a breakpoint. Now, catch your breath and look around. See the scenery around you? That's your scope.

You can see bindings all over the scope. Look down at your feet, and you see a bunch of local variables. Raise your head, and you see that you're standing within an object, with its own methods and instance variables; that's the current object, also known as self. Further away, you see the tree of constants so clear that you could mark your current position on a map. Squint your eyes, and you can even see a bunch of global variables off in the distance. p.75.

Paolo Perrotta, (2010). Metaprogramming Ruby, The Pragmatic Bookshelf.

Saturday, February 23, 2008

Domain Specific Languages [II] + a Ruby mixin

Last year in one of those pick-it-up:put-it-down cycles, I surfed into this article on DSLs and Ruby c/o:

Artima logo

Ruby Code & Style Creating DSLs with Ruby
by Jim Freeze, March 16, 2006

Although as mentioned the other week, I'd read - and keep reading! - Chris Pine's intro Ruby book and the Thomas's Pickaxe, much of the code is hard to follow for a beginner - here's a snippet (from page 3 of 4):

[n.b. Some lines below are incomplete due to Blogger's interpretation of the characters]
Again, we update the require statement in dsl-loader.rb to load the mydsl4.rb file and run the loader:
% ruby dsl-loader.rb params.dsl
#
["@parameter", "@name"]
This is all well and good, but what if we don’t know the parameter names in advance? Depending on the use cases for the DSL, parameter names may be generated by the user. Never fear. With Ruby, we have the power of method_missing. A two-line method added to MyDSL will define a DSL attribute with dsl_accessor on demand. That is, if a value is to be assigned to a (thus far) non-existent parameter, method_missing will define the getters and setters and assign the value to the parameter.

% cat mydsl5.rb
require 'dslhelper'

class MyDSL
def method_missing(sym, *args)
self.class.dsl_accessor sym
send(sym, *args)
end

def self.load(filename)
# ... Same as before
end
end

% head -1 dsl-loader.rb
require 'mydsl5'

% ruby dsl-loader.rb params.dsl
#
["@parameter", "@name"]
Once again Olsen's - Design Patterns in Ruby has helped me (to begin to) understand  method-missing (p.184). I swear I heard some clanks as the pieces re-arranged themselves and one or two fell (almost) in place. Having copied Freeze's code into Ruby, it would not run. At least now the code is not as complex looking at it was and reading it through now it makes a lot more sense. I'm really looking forward to trying this again in Eclipse. On that first exposure I had a vague notion of the principle of method-missing, but reading Olsen's book I've a better grasp and may be able to keep hold of this and other Ruby concepts. Believe me that helps in my pick-it-up:put-it-down world.

more to follow ....