Recent

Author Topic: New Arabic Lazarus book (Second step with Object Pascal)  (Read 12141 times)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
New Arabic Lazarus book (Second step with Object Pascal)
« on: November 20, 2010, 06:48:32 am »
I've released my second book about FreePascal/Lazarus/Object Pascal.
Book title is Second step with object pascal. In Arabic "الخطوة الثانية مع أوبجكت باسكال"

You can download this book from here http://code.sd/secondstep
The book also contains a lot of sample applications written in Lazarus.

Chapters:

1. Memory
2. Files management
3. Relational Databases
4. Web Applications
5. Socket programming

Contents:

Contents

Introduction ................................................ .................................................. ....... 2 ‬

Object Pascal Language ............................................ ............................................. 2 ‬

Free Pascal ............................................... .................................................. .. 2 ‬

Lazaras ................................................ .................................................. ..... 2 ‬

‫Features of Free Pascal .............................................. .............................................. 3 ‬


‬ ‫ Chapter I

‫ ‪ Memory ‬

Introduction ................................................ .................................................. ....... 9 ‬

virtual memory ............................................... ............................................ 9 ‬

Memory and programs ............................................... ............................................ 10 ‬

Memory and variables ............................................... .......................................... 12 ‬

Move Function ‫ ‪  .............................................. ................................................ 14

Pointers .............................................. ........................................ 16

Memory allocation ............................................. ...................... 19

Sharing memory locations .............................................. ........................................ 12 ‬

precautions in dealing with pointers ............................................ .............................. 22 ‬

Untyped Pointers ........................................... ................................... 25

Linked List ............................................. ........................................ 27

Linked List program ............................................. .................................... 27 ‬

Doubly linked list ‬ ‬........................................... ........................................   41

Strings and memory ............................................... .................................... 50 ‬

Short String  ............................................... ............................................ ‬ ‬50

Null terminated string ............................................... .............................. ‬ ‬51

Ansi String ............................................... ............................................. ‬ ‬52

Objects and components ‫ ‪  ....................................................... ....... 55



‬ ‫ Chapter II


‫ ‪ Files Management ‬ ‬

Introduction ................................................ .................................................. .... 57

Listing files ............................................... ........................................... 57

Listing Directory .............................................. ....................................... 58 ‬

Lines numbers program ............................................ ................................ 58 ‬

Folder Size program ‫ ‪  ............................................ ......................      60

Smart backup program .............................................. ......................................... 63



‬ ‫ Chapter III


‫ ‪ Relational Databases ‬ ‬

Introduction ................................................ .................................................. .... 96 ‬

Firebird Database ............................................. ..................................... 96

Requerements of database programs ............................................. ............................. 96 ‬

FireBird administration tools ........................................... ......................70

School library program .............................................. ...................................... 70 ‬

Searching ............................................... ................................................. 77 ‬

‫Modify the data ............................................... ................................................ 80

‫Borrow and return books .............................................. ........................................ 82 ‬

Bi Directional Record set .......................................... .......................................  ‬ ‬87

Borrowed Books report .............................................. .......................................... 91 ‬

Garage‫ program  .............................................. ...................................... 94

Reports ................................................ ...................................................  100

Journal Program (Accounting) ................................. ........................................ 104

Security in FireBird database ‪  ................................................. ........................ 118

Accounting systems .............................................. ...................................... 119 ‬


‬ ‫ Chapter IV


‫ ‪ Web Applications ‬ ‬

Introduction ................................................ ................................................... 121 ‬

Web server ‫ ‪.................................................... ............................................... 122 ‬ ‬

‫First web program .............................................. ......................................... 123 ‬

CGI protocol ‫  .................................................. ........................................... 125

Free Spider Package ‫ ‪  .............................................. ..................................... 125

First FreeSpider Program ‫ ............................................ ................................ 126

‫ Sending parameters ............................................... ........................................ 128

Using static pages .............................................. ........................................... 129

Action Component  .............................................. ........................................... 131 ‬ ‬

Books borwser application .............................................. ................................ 132 ‬

Get method .............................................. ......................................................  135

Forms    ......................................................... .................................................. 135 ‬

Post method .............................................. .......................................................  136

Spider Form ............................................. ........................................................ 138

‫CGI application Lifecycle ........................................... ................................. 141

Cookies ‫ ‪  .............................................. ....................................................... 141

News web application ........................................ ............................................ 144

Separating design from application ................................... ............................... 148 ‬



‬ ‫ Chapter V


‫ ‪ Socket programming ‬ ‬

Introduction ................................................ ..................................................  152 ‬

LNet Package ‫ ‪  .............................................. ..............................................  152

Commands Application ............................................. ................................... 153

Chat application ............................................... .......................................... 158

HTTP Protocol ‫ ‪ .............................................. ......................................... ‬ ‬ 163

HTTP Terminal program ‫ ‪ ............................................. ............................. ‬ 163

FTP Protocol ‫ ‪ .............................................. .............................................. ‬ ‬ 165

FTP CLient ‬Program ‫ ‪ .............................................. ...................................  ‬ 165

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #1 on: November 21, 2010, 10:37:05 pm »
Congratulations, motaz! I don't speak or read Arabic but the English table of contents looks good to me. Keep up the good work!
Lazarus/FPC on Linux

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #2 on: November 21, 2010, 10:54:02 pm »
Congratulations.

Chronos

  • Full Member
  • ***
  • Posts: 219
    • PascalClassLibrary
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #3 on: November 22, 2010, 05:08:41 am »
Nice, but when will someone write english book which would be readable by broader audience and possibly translated to other languages? :)

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #4 on: November 22, 2010, 05:58:52 am »
There are always English books about any programming languages, but there are always short about other than English languages.

Zaher

  • Hero Member
  • *****
  • Posts: 640
    • parmaja.org
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #5 on: November 22, 2010, 11:00:09 am »
I am reading this book, it is good for new student to start with Lazarus, i like to say Good Work :)
But i am searching for easy way to add comments or correct some mistakes if i found it.

My idea: put it in a wiki pages on your site and allow to trusted people to modified it, you can review the modifications and accept it or revert it back.
I prefer to use DokuWiki instead of MediaWiki, DokuWiki use text based file, easy to download it and commit it to svn/git REPO.

motaz

  • Sr. Member
  • ****
  • Posts: 495
    • http://code.sd
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #6 on: November 22, 2010, 11:11:10 am »
Ok, I'll check that sites (Dokuwiki, MediaWiki) in my next weekend.

darkpapu

  • Newbie
  • Posts: 1
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #7 on: December 02, 2010, 05:12:04 am »
this really would be good in English, or at least have the original to make a translation through google!

But good contribution to the community ;) :) :D

T-bear

  • Full Member
  • ***
  • Posts: 160
Re: New Arabic Lazarus book (Second step with Object Pascal)
« Reply #8 on: December 30, 2010, 09:55:49 pm »
Good work!!!!!!!!4 :-> :-> :-> :-> :->

 

TinyPortal © 2005-2018