Recent

Author Topic: Suggested books / eBooks?  (Read 6293 times)

Mitchell92

  • Newbie
  • Posts: 5
Suggested books / eBooks?
« on: May 31, 2016, 12:54:10 am »
Hello again,

Are there any suggested books or eBooks?

Would those I've seen online on Delphi still bee relevant for Free Pascal / Lazarus?

sam707

  • Guest
Re: Suggested books / eBooks?
« Reply #1 on: May 31, 2016, 01:09:16 am »
hi,
may I suggest you a cool link
http://lazplanet.blogspot.fr

sam707

  • Guest
Re: Suggested books / eBooks?
« Reply #2 on: May 31, 2016, 01:14:22 am »
If you got delphi simple examples, most of them will compile/work by specifying

{$mode delphi}

instead of {$mode objfpc}

just after the line

Program MyProg;

at the top of your 1st source file

also you need to do the same after the
Unit MyUnit;

in each unit file

regards

http://www.freepascal.org/docs-html/prog/progse74.html
« Last Edit: May 31, 2016, 01:18:02 am by sam707 »

trayres

  • Jr. Member
  • **
  • Posts: 92
Re: Suggested books / eBooks?
« Reply #3 on: May 31, 2016, 06:30:27 am »
I suggest this course:
https://www.udemy.com/learn-to-program-with-pascal/

It is currently $27, for multiple hours of video content, it comes with a book written by the course instructor, and is a *brilliant* start to Lazarus/FreePascal.

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: Suggested books / eBooks?
« Reply #4 on: May 31, 2016, 07:08:56 am »
Marco Cantu's free ebook "Essential Pascal" is still a good language introduction.
Also comes with sourcecode that is mostly FPC compatible. Note the sourcecode as is contains some errors that need fixing (also for newer Delphi versions) but most of the code compiles as is.

ebook:http://www.marcocantu.com/epascal/EssentialPascal.zip
Sources: http://www.marcocantu.com/epascal/epascal4code.zip

This ebook is also translated by volunteers in different languages.
See http://www.marcocantu.com/epascal/default.htm

Also see http://forum.lazarus.freepascal.org/index.php?topic=18132.0

On that last topic there is a link to one of the most important advanced books on Object Pascal ever written:
http://www.e-reading.org.ua/bookreader.php/142043/The_Tomes_Of_Delphi_Algorithms_And_Data_Structures.pdf

Every serious Object Pascal programmer should have that. (I am lucky enough to also have it in print).

The sourcecode for Algorithms and Data structures is here: http://www.boyet.com/Code/ToDADS_source.zip
You also need this: http://www.boyet.com/Code/PSProcs.zip because that is missing and you need to implement (or remove relevant code):
function FmtLoadStr(Ident: Integer; const Args: array of const): string;//  You can use a dummy for that, btw.
function FindStringResource(Ident: Integer): string;  // If you dummie it, you won't need this.
Because FPC doesn't know about these (yet).

And some bugreports about the code are resolved here: http://www.boyet.com/Articles/Chapters/CD-ROMSourceCode.html
I added a TDDefine.inc to replace the original one to work with FPC3. It includes an example of the required dummy code. Makes most of the code work as-is.

« Last Edit: May 31, 2016, 11:28:38 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Windsurfer

  • Sr. Member
  • ****
  • Posts: 368
    • Windsurfer
Re: Suggested books / eBooks?
« Reply #5 on: May 31, 2016, 11:52:58 am »
Thanks Thaddy, reading this will keep me occupied for a while.

Old_Dog

  • New Member
  • *
  • Posts: 28
Re: Suggested books / eBooks?
« Reply #6 on: June 01, 2016, 06:59:55 pm »
hi,
may I suggest you a cool link
http://lazplanet.blogspot.fr

Some interesting stuff there.

sam707

  • Guest
Re: Suggested books / eBooks?
« Reply #7 on: June 02, 2016, 12:12:31 am »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Suggested books / eBooks?
« Reply #8 on: June 02, 2016, 09:30:17 am »
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Suggested books / eBooks?
« Reply #9 on: June 02, 2016, 09:40:40 am »
Just curious - are these two distinct books or different editions of the same:
https://openlibrary.org/works/OL16799439W/Learn_to_Program_using_Lazarus
http://www.blaisepascal.eu/subscribers/UK/UK_Book_Department_LearnToProgramUsingLazarus.html

Edit: Obviously, different editions of the same book.
« Last Edit: June 02, 2016, 09:51:34 am by Zoran »

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Suggested books / eBooks?
« Reply #10 on: June 02, 2016, 09:58:26 pm »
Edit: Obviously, different editions of the same book.

Yes.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

 

TinyPortal © 2005-2018