Lazarus

Free Pascal => Beginners => Topic started by: gour on August 15, 2020, 09:27:57 am

Title: Object Pascal Handbook as learning resource
Post by: gour on August 15, 2020, 09:27:57 am
Hello,

I've decided to use FPC/Lazarus for my desktop project and although I was writing TurboPascal long ago when being on university, but since then I was neither doing much programming, nor using TP, so wonder if Marco Cantu's Object Pascal Handbook (https://www.marcocantu.com/objectpascalhandbook/) is good resource for learning FPC (Lazarus) or is it better to buy e.g. Lazarus Handbook (https://www.blaisepascalmagazine.eu/product/lazarus-handbook-hardcover-presales/)?
Title: Re: Object Pascal Handbook as learning resource
Post by: marcov on August 15, 2020, 10:37:11 am
I think the lazarus handbook are more topics/essays for people that want to take the next step.

If you need to start with Object Pascal, Marco Cantu seems the better of the two
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 15, 2020, 11:54:15 am
I think the lazarus handbook are more topics/essays for people that want to take the next step.

If you need to start with Object Pascal, Marco Cantu seems the better of the two

OK, it seems both can be useful - one for starting with FPC and another for Lazarus.  ;)
Title: Re: Object Pascal Handbook as learning resource
Post by: wp on August 15, 2020, 11:56:43 am
I agree that the "Lazarus Handbook" is for people who know Pascal but want to learn how to use Lazarus. Marco Cantu's book, on the other hand, focusses on Delphi so that a new user may be confused by the differences to Lazarus.

Did you look at the overview in https://wiki.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines? For beginners to Pascal I would recommend the free and well-written "Free Pascal from SquareOne" (http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf) by Jeff Dunteman or "Start Programming Using Object Pascal" (http://code.sd/startprog/) by forum user Motaz. Another good book, non-free though, is "Learn to Program using Lazarus" by Howard Page-Clark, another forum user.
Title: Re: Object Pascal Handbook as learning resource
Post by: tennis on August 15, 2020, 12:52:29 pm
I found the ancient Borland Object Pascal Language Guide very good quality.

Not sure where I downloaded the PDF, but the file name is "CB6_ObjPascalLangGuide_EN.PDF".

It is of course not up to the latest subjects like generics etc., but I found it valuable to read through.
Title: Re: Object Pascal Handbook as learning resource
Post by: winni on August 15, 2020, 03:06:59 pm
Hi!

Google is your friend:

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwi51Ky7oJ3rAhUHzKQKHQJ9BcQQFjAAegQIAxAB&url=http%3A%2F%2Fdocs.embarcadero.com%2Fproducts%2Frad_studio%2Fcbuilder6%2FEN%2FCB6_ObjPascalLangGuide_EN.pdf&usg=AOvVaw0LW62fTBn0zg6O64V75ivC (https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwi51Ky7oJ3rAhUHzKQKHQJ9BcQQFjAAegQIAxAB&url=http%3A%2F%2Fdocs.embarcadero.com%2Fproducts%2Frad_studio%2Fcbuilder6%2FEN%2FCB6_ObjPascalLangGuide_EN.pdf&usg=AOvVaw0LW62fTBn0zg6O64V75ivC)

Winni

PS Take some seconds to load!
Title: Re: Object Pascal Handbook as learning resource
Post by: marcov on August 15, 2020, 04:06:02 pm
I found the ancient Borland Object Pascal Language Guide very good quality.

If you can get a D6 or D7 manual set: always take it. Sometimes they are quite affordable on the web.

I learned it by reading both that and Marco Cantu's Mastering Delphi repeatedly.  The other thick book in the Delphi manual set is also very good to learn essentials of certain non language things, like resources, packages, translation system etc.

Of course it all requires interpretation as of FPC/Lazarus is more portable than D6/D7. But the main advantage of the manual sets, is that you see most of it, in more or less an natural order.
Title: Re: Object Pascal Handbook as learning resource
Post by: tennis on August 15, 2020, 04:41:18 pm
That was the source.
I assume it legit to download from the http://docs.embarcadero.com/ site.

Also for offline reading a professional typesetting like the Borland manual is a must.
I find it very hard to read long documents where the PDF is basically just HTML turned
into a document. Sadly that is the standard with most documentation today.

Title: Re: Object Pascal Handbook as learning resource
Post by: fabiopesaju on August 15, 2020, 05:02:34 pm
https://forum.lazarus.freepascal.org/index.php/topic,26633.0.html
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 16, 2020, 10:12:51 am
Marco Cantu's book, on the other hand, focusses on Delphi so that a new user may be confused by the differences to Lazarus.

How is Cantu's book in regard to just learning ObjectPascal?

Quote
Did you look at the overview in https://wiki.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines?

I did, but obviously missed some good ones.  :(

Quote
For beginners to Pascal I would recommend the free and well-written "Free Pascal from SquareOne" (http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf) by Jeff Dunteman or
"Start Programming Using Object Pascal" (http://code.sd/startprog/) by forum user Motaz.

Thank you. I downloaded both and will see which one is more suitable...

Quote
Another good book, non-free though, is "Learn to Program using Lazarus" by Howard Page-Clark, another forum user.

How much up-to-date is that one?
 
Title: Re: Object Pascal Handbook as learning resource
Post by: julkas on August 16, 2020, 11:18:25 am
Hello,

I've decided to use FPC/Lazarus for my desktop project and although I was writing TurboPascal long ago when being on university, but since then I was neither doing much programming, nor using TP, so wonder if Marco Cantu's Object Pascal Handbook (https://www.marcocantu.com/objectpascalhandbook/) is good resource for learning FPC (Lazarus) or is it better to buy e.g. Lazarus Handbook (https://www.blaisepascalmagazine.eu/product/lazarus-handbook-hardcover-presales/)?
Yes. Object Pascal Handbook - great resource for learning.
Title: Re: Object Pascal Handbook as learning resource
Post by: Thaddy on August 16, 2020, 02:10:05 pm
Except that the very last (current) version uses a feature that FPC currently does not yet have : anonymous methods. So look for an older version and in print.
The very last version can confuse FPC beginners.

That said, it is a well written introduction into Object Pascal.
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 16, 2020, 07:48:51 pm
Except that the very last (current) version uses a feature that FPC currently does not yet have : anonymous methods. So look for an older version and in print.
The very last version can confuse FPC beginners.

Hmm, I believe I've first printed version and 'anonymous methods' are in the index?
Title: Re: Object Pascal Handbook as learning resource
Post by: Blade on August 16, 2020, 08:50:53 pm
While not as extensive as the Object Pascal Handbook or Lazarus Handbook, I thought the Modern Object Pascal Introduction for Programmers was useful for getting your feet wet, is more Free Pascal/Lazarus centric, and a relatively quick read.

https://castle-engine.io/modern_pascal_introduction.html (https://castle-engine.io/modern_pascal_introduction.html)

Downloadable PDF
https://castle-engine.io/modern_pascal_introduction.pdf (https://castle-engine.io/modern_pascal_introduction.pdf)
Title: Re: Object Pascal Handbook as learning resource
Post by: trev on August 17, 2020, 12:27:10 am
Learn to program using Lazarus by Howard Page-Clark (a forum user) is an excellent book. It's well hidden at https://www.blaisepascalmagazine.eu/product/learn-program-using-lazarus-electronic-pdf/ and not listed in the Shop Books menu (I emailed BPM to alert them). Well worth the 25 Euro/ $A 42.
Title: Re: Object Pascal Handbook as learning resource
Post by: Blade on August 17, 2020, 02:22:52 pm
I found the ancient Borland Object Pascal Language Guide very good quality.

Not sure where I downloaded the PDF, but the file name is "CB6_ObjPascalLangGuide_EN.PDF".

It is of course not up to the latest subjects like generics etc., but I found it valuable to read through.

Just to make it easier on people that might want to look at it.  One of those oldies, but goodies.  It's a downloadable PDF from Embarcadero, so legit.

http://docs.embarcadero.com/products/rad_studio/cbuilder6/EN/CB6_ObjPascalLangGuide_EN.pdf (http://docs.embarcadero.com/products/rad_studio/cbuilder6/EN/CB6_ObjPascalLangGuide_EN.pdf)
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 17, 2020, 02:54:41 pm
Learn to program using Lazarus by Howard Page-Clark (a forum user) is an excellent book. It's well hidden at https://www.blaisepascalmagazine.eu/product/learn-program-using-lazarus-electronic-pdf/ and not listed in the Shop Books menu (I emailed BPM to alert them). Well worth the 25 Euro/ $A 42.

How thick/big it is considering that Lazarus Handbook is going to be around 1k pages?
Title: Re: Object Pascal Handbook as learning resource
Post by: howardpc on August 17, 2020, 03:41:02 pm
248 pages
Title: Re: Object Pascal Handbook as learning resource
Post by: trev on August 17, 2020, 03:55:59 pm
How thick/big it is considering that Lazarus Handbook is going to be around 1k pages?

My copy of Learn to program using Lazarus has 326 pages (including index). Compare the Contents pages of it and the Handbook.

The Handbook is pretty much devoted to Lazarus itself (as you would expect) whereas Learn to program using Lazarus covers the basics of Object Pascal first (95 pages) and then Lazarus (153 pages).
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 17, 2020, 07:41:23 pm
The Handbook is pretty much devoted to Lazarus itself (as you would expect) whereas Learn to program using Lazarus covers the basics of Object Pascal first (95 pages) and then Lazarus (153 pages).

Hmm, how comprehensive is Lazarus part (153 pages) to actually learn it?

I'm asking since I own Cantu's book and there are few other very useful/free books dealing with Object Pascal part?
Title: Re: Object Pascal Handbook as learning resource
Post by: Thaddy on August 17, 2020, 08:29:30 pm
Almost the whole book (in a version that refers to a max of D2009) is valid for Lazarus too, since at least FPC is close to 100% compatible with those.
What version of print do you have?
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 18, 2020, 12:02:04 pm
Almost the whole book (in a version that refers to a max of D2009) is valid for Lazarus too, since at least FPC is close to 100% compatible with those.
What version of print do you have?

Do you reference ;D Marco Cantu's "Object Pascal Handbook" ? I've, afaik, the only edition so far, iow. 1st print.
Title: Re: Object Pascal Handbook as learning resource
Post by: Blade on August 20, 2020, 09:14:15 am
The official download link for the Object Pascal Handbook by Marco Cantu is at Embarcadero's website and below.  However, you do have to sign up for a free membership first.

https://cc.embarcadero.com/item/30586 (https://cc.embarcadero.com/item/30586)
Title: Re: Object Pascal Handbook as learning resource
Post by: Thaddy on August 20, 2020, 10:13:07 am
Do you reference ;D Marco Cantu's "Object Pascal Handbook" ? I've, afaik, the only edition so far, iow. 1st print.
The online version is updated to current Delphi and includes a feature that FPC does not currently have in some of the examples (anonymous methods -mainly threading - in the example code).
Your printed version is perfectly OK to use and every example can be compiled with FPC.
Only a global modeswitch is required in every unit. {$mode delphi}

I have the same printed version and the CD and had no problems with all of its code with very small changes.
It was given to me by the author. Review. I used to be a beta tester for Delphi (not any more ) But that was a long time ago.
Title: Re: Object Pascal Handbook as learning resource
Post by: Blade on August 20, 2020, 10:41:39 am
There is a October 2014 Draft version of the Object Pascal Handbook that is online too.
Object Pascal Handbook 2014 draft (http://webapps.me.uk/download.php?f=object%20pascal.pdf)
Title: Re: Object Pascal Handbook as learning resource
Post by: Webdrifter on August 20, 2020, 11:58:32 am
The official download link for the Object Pascal Handbook by Marco Cantu is at Embarcadero's website and below.  However, you do have to sign up for a free membership first.

https://cc.embarcadero.com/item/30586 (https://cc.embarcadero.com/item/30586)

For this one you don't need to subscribe: https://www.pdfdrive.com/object-pascal-handbook-updated-for-delphi-101-berlin-e185368681.html
Title: Re: Object Pascal Handbook as learning resource
Post by: Webdrifter on August 20, 2020, 12:09:14 pm
And maybe this could also help a bit ?

https://www.win.tue.nl/~wstomv/edu/delphi/

http://docs.embarcadero.com/products/rad_studio/
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 23, 2020, 05:13:05 pm
Your printed version is perfectly OK to use and every example can be compiled with FPC.
[...]
I have the same printed version and the CD and had no problems with all of its code with very small changes.

Is the book useful for learning only Object Pascal, or it can be somewhat used for learning Lazarus as well?
Title: Re: Object Pascal Handbook as learning resource
Post by: lucamar on August 23, 2020, 07:43:59 pm
Is the book useful for learning only Object Pascal, or it can be somewhat used for learning Lazarus as well?

As the name implies, it's useful for learning Object Pascal (in fact the "Delphi" language).

As an aside: people often confuse (Object) Pascal, the language; FPC, the Free Pascal Compiler; Lazarus. the IDE, and the LCL, the Lazarus Components Library; but they are quite different beasts, so while a book about one of them might cite any of the others it shouldn't mix them.

Thus, a "Lazarus" book should basically be like, say, a book about Word or WordPerfect, though the examples must, of course, use code written in Pascal; while a book about Pascal might cite and/or use FPC/Lazarus as the tools of choice but hte emphasis should be put in the language itself. IMHO, of course :-[
Title: Re: Object Pascal Handbook as learning resource
Post by: gour on August 23, 2020, 07:58:15 pm
s the name implies, it's useful for learning Object Pascal (in fact the "Delphi" language).

As an aside: people often confuse (Object) Pascal, the language; FPC, the Free Pascal Compiler; Lazarus. the IDE, and the LCL, the Lazarus Components Library; but they are quite different beasts, so while a book about one of them might cite any of the others it shouldn't mix them.

I understand the distinction between those, but wonder about LCL's compatibility with the Delphi since it was mentioned above that every example can be compiled with FPC ?
Title: Re: Object Pascal Handbook as learning resource
Post by: Thaddy on August 23, 2020, 08:22:40 pm
Indeed. In {$mode delphi}. But the importer does also a good job.
Title: Re: Object Pascal Handbook as learning resource
Post by: Blade on December 21, 2020, 05:59:44 pm
There is another Delphi (Object Pascal) e-book that could be great for beginners.  Though Delphi orientated, for what it's going over, much of it highly corresponds to Free Pascal/Lazarus.

Delphi Programming For Beginners
Downloadable PDF
https://www.learndelphi.org/wp-content/uploads/2020/03/DelphiProgrammingForBeginners_ENG-CreativeCommons-LearnDelphi.org_.pdf (https://www.learndelphi.org/wp-content/uploads/2020/03/DelphiProgrammingForBeginners_ENG-CreativeCommons-LearnDelphi.org_.pdf)
TinyPortal © 2005-2018