Composing Code for Other People Tom Mullen .


45 views
Uploaded on:
Category: People / Lifestyle
Description
Outline. Psychological Psychology (Chunking and Memory)AnalogiesPsychologists DefinitionCode StructuresFundamental MetricUsing the Cognitive Model. Review. Intellectual Psychology (Chunking and Memory)AnalogiesPsychologists DefinitionCode StructuresFundamental MetricUsing the Cognitive Model. Components of Cognitive Psychology.
Transcripts
Slide 1

The obstructions and strategies of human insight are beginning to be revealed by therapists. There are wonderful parallels between the intellectual model and standards built up by programming architects. It is as though the jigsaw confound that product creators have been taking a shot at has been swung over to uncover another photo on the back, the exceptionally same picture that clinicians have been building... Composing Code for Other People Tom Mullen

Slide 2

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 3

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 4

Elements of Cognitive Psychology

Slide 5

Chunking and Memory A piece is "an accumulation of memory components having solid relationship with each other however feeble relationship with components inside different lumps" Structured Design Principle: "amplify attachment and decrease coupling"

Slide 6

Chunking and Memory STM Capacity Limit CRC Model Refactoring STM Time Limit Indirection cost

Slide 7

LTM Structure Discrimination Nets

Slide 8

Cognitive Model

Slide 9

Summary Conjecture: Current programming dialects and outline standards manage a software engineer to create code that is a direct literary representation of the memory system of the arrangement inside the mind (subject to the requirements of transient memory).

Slide 10

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 11

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 12

Analogies

Slide 13

Meeting Room Analogy

Slide 14

Gentner Classification

Slide 15

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 16

Analogy Template

Slide 17

Analogy Patterns in Software

Slide 18

Analogy Patterns in Software Attribute Only [Map] Map exchangeCountry = new HashMap(); exchangeCountry.put("CBOT","US"); trade Country .put(" LIFFE "," England "); Na Aa Nv Av

Slide 19

Analogy Patterns fit as a fiddle p rivate boolean isValid () { if ( expirationDate == invalid || !( expirationDate.getTime() > 0 ) return false; if (contractNumber == invalid || !(contractNumber.longValue() > 0) ) return false;

Slide 20

Analogical Translations

Slide 21

Analogy Patterns in Software Method Name (Prefix) open void visit Expression (Node a){}; open void visitBlock(Node a){}; open void visitFile(Node a){};

Slide 22

Analogy Patterns in Software Application Level Running Instances are Literal Similarities of each other. Setup points of interest the properties IOC components permit operations

Slide 23

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 24

Parlay? In Pirates of the Caribbean what was Captain Barbossa\'s reaction to Elizabeth Swan\'s request that the Pirate Code obliged him to put her aground securely?

Slide 26

4 less Analogies Rule The center basic metric of programming de-sign is that product ought to be lumped in components of four (or less) in the wake of taking into consideration any number of assortments of analogies.

Slide 27

The Pirate Code "… increasingly what you\'d call "rules" than genuine tenets" – Capt. Barbossa, Pirates of the Caribbean: The Curse of the Black Pearl

Slide 28

Overview Cognitive Psychology (Chunking and Memory) Analogies Psychologists Definition Code Structures Fundamental Metric Using the Cognitive Model

Slide 29

Using the Cognitive Model Can be shown utilizing educational encounters Is the establishment of programming plan standards Design standards still should be scholarly! Use to find new standards?

Slide 30

Conclusion Cognitive Psychology : Detailed the solid mapping between the psychological model and plan standards. Piecing Analogies : The two essential trains in great programming configuration are: perceiving & coding analogies lumping. Utilized these outcomes to find the " 4 less analogies " run the show. tom@tom-mullen.com Questions? http://www.chunkinganalogies.com

Recommended
View more...