wiki:squeak_screencasts

Version 55 (modified by willi.mueller, 5 years ago) (diff)

added space between neighbouring images

The Image Concept

The image as a persistent world

Description

The image is your working environment. All your modifications are stored with its state. This video shows how you open your image how you can go back to the state before opening.

Preview

Video Toggle(begin)? Toggle(end)?Image-Introduction.m4v Download

Basic Elements of the Image

Description

In this video we take a tour around the basic UI elements and menus of the image.

Preview

Video Toggle(begin)? Toggle(end)?Image-Navigating.m4v Download

How to Recover Changes

Description

Help! My Image crashed! I lost all my changes! What should I do? .. Don't panic. There's a solution: Recover your changes.

Preview

Video Toggle(begin)? Toggle(end)?Image-RecoverFromCrash.m4v Download

Halos to access morphs

Description

Halos provide an instant access to graphical elements of the image. This video shows functions they provide.

Preview

Video Toggle(begin)? Toggle(end)?Image-Halos.m4v Download

How to update your Image

Description

---

Preview

Video Toggle(begin)? Toggle(end)?Image-Updating.m4v Download

How to modify settings and change your browser

Description

The image has a menu for editing all your preferences. Additionally you can change your standard browser by using a browser menu.

Preview

Video Toggle(begin)? Toggle(end)?Image-BrowserAndSetting.m4v Download

Demo mode – large text for using a beamer or making screenshots

In "Demo Mode" all text is large enough to be legible while using a beamer, making a screencast or taking screenshots. You can access this preference by primary (left) click, then choose "appearance", then "system fonts", then "demo mode".

Preview

Toggle(begin)? Toggle(end)?demo-mode.m4v Download

Organise your work with projects

Description

Projects are a nice way to organise different workplaces in one image. They can also be useful for prototyping.

Preview

Video Toggle(begin)? Toggle(end)?Image-Projects.m4v Download

File out file in – the image and its environment

Description This video shows how to get your code out of the image into the file system and back from the filesystem into the image.

Video Toggle(begin)? Toggle(end)?fileout-filein.mp4 Download

Preview

Brief summary

You can right click on each item in a browser – class category, class, method category or method. Then select file out (or Strg+o). The code is stored in a .st file in pathToImage/Contents/Resources/. To load a file's content into an image drag and drop the file into the image or open the "file list" browser from "Tools" and click "file in".

Things you can do with the browser

Basic usage of the class browser

Description

The class browser is the tool to access and edit source code in the image. It is your main working environment.

Preview

Video Toggle(begin)? Toggle(end)?Browser-ClassBrowser.m4v Download

How to access and edit methods

Description

---

Preview

Video Toggle(begin)? Toggle(end)?Browser-MethodsInBrowser.m4v Download

Advanced Browsing Techniques

Description

In this screencast we show how you can browse the hierachy, inheritance, senders and implementors of methods.

Preview

Video Toggle(begin)? Toggle(end)?Browser-AdvancedBrowsing.m4v Download

Modifying class variables and auto generate accessor methods

Description

You can also modify the class definitions. Furthermore the browser provides a nice function for generating accessor methods for all your instance variables.

Preview

Video Toggle(begin)? Toggle(end)?Browser-ClassStateSetterGetters.m4v Download

Exploring - Everything is observable

Workspace and Transcript

Description

You will be guided through writing and executing code the Workspace and how to use the Transcript to inspect properties of objects.

Preview

Video Toggle(begin)? Toggle(end)?Exploring-TranscriptWorkspace.m4v Download

Object Explorer and Inspector

Description

This video introduces the Object Explorer and Object Inspector, which are tools that you can use during debugging in order to comfortably inspect object properties.

Preview

Video Toggle(begin)? Toggle(end)?Exploring-ObjectExplorerInspector.m4v Download

Debugging and dealing with image failures

How to debug with the Squeak debugger

Description

This video shows how to set breakpoints and demonstrates most of the debugger features.

Preview

Video Toggle(begin)? Toggle(end)?Debug-Debugger.m4v Download

Help! i have executed an infinite loop... How to stop the image.

Description

What to do if your image stopped responding because the UI process is hung up in something?

Preview

Video Toggle(begin)? Toggle(end)?Debug-StopProcessing.m4v Download

Versioning your work with Monticello

Configuring Repositories and Packages

Description

The Monticello Browser will be introduced. It's the main versioning system for Squeak, a little like Git / SVN for other languages. You will see how to set up your own repository and a new package.

Preview

Video Toggle(begin)? Toggle(end)?Monticello-Introduction.m4v Download

View Diffs and Changes

Description

As continuation of the first Monticello video, you will be shown to upload an initial version, view diffs between versions and commit changes.

Preview

Video

Toggle(begin)? Toggle(end)?Monticello-DiffingAndChanges.m4v Download

How to resolve conflicts

Description

This video shows you how to resolve a conflict during a commit to a Monticello repo.

Preview

Video

Toggle(begin)? Toggle(end)?Monticello-ResolvingConflicts.m4v Download

Working with Gemtools

Description

This video shows you how to use the Gemtools to connect to a Gemstone/S VM and how to work with them.

Video Toggle(begin)?

Error: Macro Video(ogg=attachment:Gemtools.ogg,preload=none) failed
string index out of range
Toggle(end)?Gemtools.ogg Download

Tests are your safety net

SUnit in action

Description This video shows test driven development with SUnit. It shows how to use the test runner and covers the basic assertions and how to raise a custom error.

The code used in this example can be found here: HowTo-SUnit.st Download Code (click icon, not link text).

Video Toggle(begin)? Toggle(end)?SUnit.m4v Download

Preview

Brief summary

A test suite is created by subclassing TestCase (e.g. MyTestSuite). Any method named testXYZ in the test suite is considered a unit test. Fixtures are initialized in #setUp and cleared (if necessary) in #tearDown. For code that should be run once per test suite, use MyTestSuite>>initialize. For code that should be run before and after every unit test, use MyTestSuite>>setUp and MyTestSuite>>tearDown. Custom errors (e.g. MyError) can be created by subclassing Error. To raise an error, use #signal:.

MyError signal: 'A description'.

SUnit's basic assertions are:

Expectation Method of TestCase Example
Expression should be true #assert: self assert: 1+2 > 2
Expression should be false #deny: self deny: 1+2 < 2
Expressions should be equal #assert:equals: self assert: 1+2 equals: 3
Block should raise an error #should:raise: self should: [1/0] raise: ZeroDivide
Block should not raise an error #shouldnt:raise: self shouldnt: [1/1] raise: ZeroDivide

For further information read chapter 7 "SUnit" in Squeak by Example

Test Coverage

Description This video shows how to analyse the test coverage of a package. The test coverage measures how many percent of a package's methods are called in its tests.

Video Toggle(begin)? Toggle(end)?test-coverage.mp4 Download

Preview

Brief summary

Make sure a package exists which is named like the class category before a dash. For example the class category is called "HowTo?-SUnit" the package has to be named "HowTo?". You can add a package in the "Monticello Browser" which can be found in "Tools".

To run a test coverage analysis open the test runner, click "Run Coverage" and select the package. After all tests are run you see a list of methods which aren't covered and the ratio of covered methods and all package's methods.

SwaLint? – static code analysis and metrics

Description This video shows how to find unidiomatic code and how to collect statistics about a given class or package.

Video Toggle(begin)? Toggle(end)?SwaLint.mp4 Download mp4 video SwaLint.webmhd.webm Download webm video

Preview

Brief summary

Open SwaLint? from the Apps menu to perform static code analysis, which check for idiomatic code and gather code metrics. Then select the packages and classes you want to analyze. A reporter presents the results and offers to browse the occurrences of mismatches.

Contributors

  • Eric Seckler
  • Robin Schreiber
  • Patrick Rein
  • Michael Perscheid
  • Tim Felgentreff
  • Willi Müller

Contact us: {robin.schreiber, eric.seckler, patrick.rein, willi.mueller}@student.hpi.uni-potsdam.de

http://squeakbyexample.org/

Attachments (136)