ProfStef

AbstractTutorial
Parent class of all ProfStef tutorials.
To create your own tutorial:
- subclass AbstractTutorial
- implement a few methods which returns a Lesson instance
- implement tutorial which returns a Collection of selectors to the methods you've created.
For example, see MockTutorial (minimalist) and SmalltalkSyntaxTutorial (default ProfStef one).
See ProfStef comment to execute your own tutorial.
lessonAt:
size
Primitive. Answer the number of indexable variables in the receiver.
This value is the same as the largest legal subscript. Essential. See Object
documentation whatIsAPrimitive.
tutorial
Should return an Array of selectors which returns Lesson instances.
See SmalltalkSyntaxTutorial.
AbstractTutorialTestAbstractMethods
An AbstractTutorialTestAbstractMethods is xxxxxxxxx.
Instance Variables
testTutorialRaisesShouldBeImplemented
HowToMakeYourOwnTutorial
A HowToMakeYourOwnTutorial is xxxxxxxxx.
Instance Variables
createLessonFactoryMethods
implementTutorial
runYourTutorial
subclassAbstractTutorial
tutorial
Should return an Array of selectors which returns Lesson instances.
See SmalltalkSyntaxTutorial.
Lesson
See class side messages #welcome, #doingVSPrinting....
lesson
lesson:
title
title:
title:lesson:
LessonTestInstanciation
A LessonTestInstanciation is xxxxxxxxx.
Instance Variables
testNewLessonHaveEmptyStringForTitleLesson
testTitleLessonCreation
LessonView
A LessonView displays a Lesson instance
close
menu
open
shoutMorph
shoutMorphFillMenu:
showLesson:
showLesson:withTitle:
text
window
LessonViewTest
A LessonViewTest is xxxxxxxxx.
Instance Variables
lessonView: <Object>
lessonView
- xxxxx
setUp
tearDown
testShowLessonWithTitle
LessonsTestWithMockTutorial
A LessonsTestWithMockTutorial is xxxxxxxxx.
Instance Variables
player: <Object>
player
- xxxxx
setUp
testCurrentLessonIsFirstOneAtCreation
testNavigation
testResetTutorialGoBackToFirstLesson
testSizeReturnsThree
MockLessonView
A MockLessonView is xxxxxxxxx.
Instance Variables
lesson: <Object>
title: <Object>
lesson
- xxxxx
title
- xxxxx
lesson
showLesson:withTitle:
title
MockTutorial
A MockTutorial is xxxxxxxxx.
Instance Variables
firstLesson
secondLesson
thirdLesson
tutorial
Should return an Array of selectors which returns Lesson instances.
See SmalltalkSyntaxTutorial.
ProfStef
A PrStef is the Smalltalk teacher. To start the tutorial, evaluate:
PrStef go.
To go to the next lesson evaluate:
PrStef next.
To execute your own tutorial:
ProfStef goOn: MyOwnTutorial
close
default
go
goOn:
initialize
Subclasses should redefine this method to perform initializations on instance creation
lessonView
lessonView:
next
open
player
player:
previous
showCurrentLesson
tutorialPositionString
tutorialSizeString
ProfStefTestGo
A ProfStefTestGo is xxxxxxxxx.
Instance Variables
tearDown
testGoOnMockTutorial
testGoOpenSmalltalkSyntaxTutorial
ProfStefTestNavigation
A ProfStefTestNavigation is xxxxxxxxx.
Instance Variables
mockView: <Object>
prof: <Object>
mockView
- xxxxx
prof
- xxxxx
setUp
testNextOpenSecondLesson
testSequenceNextNextOpenThirdLesson
testSequenceNextNextPreviousOpenSecondLesson
testShowFirstLessonOnGo
testTitleIncludesProgression
SmalltalkSyntaxTutorial
The default ProfStef tutorial to learn Smalltalk syntax
basicTypesArray
basicTypesCharacters
basicTypesDynamicArray
basicTypesNumbers
basicTypesString
basicTypesSymbol
blocks
blocksAssignation
conditionals
doingVSPrinting
iterators
loops
mathematicalPrecedence
messageSyntaxBinary
messageSyntaxCascade
messageSyntaxCascadeShouldNotBeHere
messageSyntaxExecutionOrder
messageSyntaxExecutionOrderParentheses
messageSyntaxKeyword
messageSyntaxUnary
printing
theEnd
tutorial
Should return an Array of selectors which returns Lesson instances.
See SmalltalkSyntaxTutorial.
welcome
SmalltalkSyntaxTutorialTestTutorial
A SmalltalkSyntaxTutorialTestTutorial is xxxxxxxxx.
Instance Variables
tutorial: <Object>
tutorial
- xxxxx
setUp
testEachSelectorExists
testEachSelectorReturnsALesson
testLessonAtReturnsCorrespondingLesson
testNotEmpty
testSizeReturnsNumberOfSelectors
TutorialPlayer
I can navigate through an AbstractTutorial subclass. With #next and #previous you can go forward and backward through the tutorial.
currentLesson
first
next
previous
rewind
size
Primitive. Answer the number of indexable variables in the receiver.
This value is the same as the largest legal subscript. Essential. See Object
documentation whatIsAPrimitive.
tutorial
tutorial:
tutorialPosition
TutorialPlayerTestTutorialAccessor
A TutorialPlayerTestTutorialAccessor is xxxxxxxxx.
Instance Variables
testDefaultsToSmalltalkSyntaxTutorial
testWithMockTutorial