Difference between revisions of "Lazarus for education"

From Free Pascal wiki
Jump to navigationJump to search
Line 2: Line 2:
  
 
The standard Lazarus IDE is setup for professional developers. This page describes how to setup the IDE for courses and beginners.
 
The standard Lazarus IDE is setup for professional developers. This page describes how to setup the IDE for courses and beginners.
Since 0.9.29 lazarus comes with a package '''educationlaz''' which adds some extra option pages to the IDE helping teachers to setup Lazarus for students and pupils.
+
Since 0.9.29 lazarus comes with a package '''EducationLaz''' which adds some extra option pages to the IDE helping teachers to setup Lazarus for students and pupils.
  
 
== Installing the package educationlaz==
 
== Installing the package educationlaz==

Revision as of 18:47, 19 October 2009

Overview

The standard Lazarus IDE is setup for professional developers. This page describes how to setup the IDE for courses and beginners. Since 0.9.29 lazarus comes with a package EducationLaz which adds some extra option pages to the IDE helping teachers to setup Lazarus for students and pupils.

Installing the package educationlaz

  • Go to Packages / Configure installed packages. A dialog opens.
  • Select educationlaz from the right list and click below on Install selection to add it to the left list.
  • You may want to uninstall some packages that are too complex for your students.
  • Click on Save and rebuild. The IDE will ask for confirmation.
  • Restart the IDE.
  • There are now some new option pages under Environment / Options ... / Education.

Configuring the IDE

On the Environment / Options ... / Education / General page you can turn the education mode on and off.

Component palette

If you teach basic programming, then the component palette is only distracting for the students. You can hide any or all components.

Working

  • Less files: put all .lrs files of .lfm files into output directory
  • Rename a unit should rename the references in other units

ToDos

  • A designtime package should be created, that allows to easily setup the IDE for various levels. For example to hide the complex topics of the IDE like frames and packages.
  • A dialog to setup the education level, for example to hide the form editing options
  • Most beginners find the concept of 'projects' confusing. Instead they create a lot of small test programs which often contain only one file. And all these programs are stored in one directory. The solution is to use only one project and use the run/configure file options. For example the 'new form' button can be replaced with a 'new program' button.
  • When a component is created the IDE should ask for a new name immediately, because beginners have no workflow
  • When a unit is created the IDE should ask for the new name immediately (optional: save immediately), because beginners have problems with the concept of virtual files
  • 'unit not found' should show a dialog to help solving the problem
  • 'identifier not found' should show a dialog to help solving the problem
  • when exploring a foreign unit (a unit that does not belong to neither project nor package) allow to extend the SrcPath for this directory and store this info in the project session
  • F1 on an identifier in the source editor should be extended to search out of scope
  • off line help for RTL, FCL
  • less files: put auto created files into a separate directory: lrs, rc, res
  • For beginner courses a minimal IDE is needed.

Further ideas from non lazarus developers