[Lazarus] Teaching Pascal at College

Adrian De Armas adearmas at gmail.com
Thu Oct 13 15:37:53 CEST 2016


First of all,
Thank you all who spent your time reading and suggesting about this subject.
First, some clarifications. When I wrote "modern" my comparison was againts
console applications. Even those students who won't do a line of code
except in my class realize that console applications are not what they have
been using since they approached to a computer.

Introducing GUI is an efford to make the module more attractive to the
students (the droupout rate is high). The module is taught as a basic
science. All my students will be civil, environmental or bio engineers but
not computer engineers. So I have two modules (Introduction to programming
and advanced programming) to give them an idea of what programming is.

My main focus now is "introduction to programming". It is a four-months
course and given your advice, I will split the course in two months parts.

First part will be all console applications where I will introduce the
basics of pascal:

   - structure of a pascal program
   - variable declarations (integers, doubles, strings...)
   - read, readln, write, writeln
   - operations (+. -, *, /)
   - if, case, while, for, repeat/until
   - procedures and functions
   - algorithms like getting prime numbers, fibonacci series, etc

The second part will introduce:

   - GUI environment. Dropping components on a form and arrange them.
   Changing properties.
   - Event oriented programming
   - simple and multidimensional arrays
   - ¿files?

I will use some specific components to help the transition for example:
var
  a, b, c: integer
begin
  ...bla..bla...
c=a+b;
end;

In GUI a, b, and c will be spinedits with a "value" integer property so I
can write:

spineditc.value := spinedita.value+spineditb.value;

instead of

editc.Text := IntToStr(StrToInt(Edita.Text)+StrToInt(Editb.Text));

Comboboxes and list control will be used in case statements with the
"ItemIndex" property

Memo.Lines and arrays will be given at the same time...
etc...

What do you think?


Regards











2016-10-13 7:02 GMT-03:00 Graeme Geldenhuys via Lazarus <
lazarus at lists.lazarus-ide.org>:

> On 2016-10-13 10:04, Michael Schnell via Lazarus wrote:
> > IMHO it's a shame, but new
> > projects in Pascal seem to be declining,
>
> That's got nothing to do with the Object Pascal being modern or not (I
> think it is modern enough). The decline is about marketing and
> popularity contests, and management decisions (how easy is it to replace
> a Object Pascal developers vs a Java developer).
>
> Delphi being sold every other year doesn't help with the stability of
> Object Pascal in the marketplace either.
>
> Regards,
>   Graeme
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20161013/5d0e2d96/attachment.html>


More information about the Lazarus mailing list