Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-03 Thread Peter via fpc-pascal

Sorry, my bad.

I hadn't got Thunderbird configured right. All mail from this list just showed 
the list address in the 'From' field.
Now fixed it.

 Edit > Preferences > Advanced >
"Show only display name for people in my address book"
which was checked.


Cheers,
Pete
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-02 Thread geneb via fpc-pascal

On Thu, 2 Sep 2021, Peter via fpc-pascal wrote:




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

You can also download it as a single PDF.

g.




Thanks Dennis. Very useful refresher!


You're welcome! (My name is Gene. :D )

g.

--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-02 Thread Peter via fpc-pascal



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

You can also download it as a single PDF.

g.




Thanks Dennis. Very useful refresher!

Cheers,
Pete
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-09-01 Thread James Richters via fpc-pascal
>I guess I should just use lazarus and learn the GUI Tools. I was having a 
>problem when i was following the one of the books on the FP book wiki
> , where i went to compile my program, and the IDE threw an error about an .o 
> file not found. 
 
As others have mentioned, you can write console programs with Lazarus,  The 
advice to use Lazarus is good advice, you can write both Console and GUI 
applications with it.
 
As far as the .o file not found, 
Try File > New > Project > Simple Program
You can put something simple like:
 
Writeln('Hello World');
Readln;
 
Between the Begin and End.
 
Then immediately try to compile it… 
If you get an error about a .o file not found, then check your directories with 
Tools > Options > FilesMaybe one of the directories is not in the right 
place.
 
Or just try to re-install it.
 
Make sure to follow the installation instructions and pay close attention to 
details, as I recall Lazarus needs to know where FPC is installed, you can’t 
just run the setup program and click ok ok ok to everything until it’s done.  I 
think I had a similar problem with it once, and it was because it asked me to 
set the path to FPC and I didn’t do it right or something.. and it was the kind 
of thing that it only asked for once… either during install or the first time I 
ran it, and if you don’t answer it accurately, nothing works right.
 
There are times you just don't want or need a program to do anything other than 
sequential processing, and for those things Console applications are just 
fine.. There is defiantly a place for Console Applications.
And there are times when having an event driven program is better.. it really 
depends on the application.  Personally I find that the easiest way to learn a 
new programming language, is to have a desired task to perform and figure out 
how to get it done..  The first step should be completing this sentence, ‘I 
want to write a program to _’  .  Once you have a goal, 
then you can figure out how will the user interact with this program… when you 
figure that out, you will know if you want a console application or a GUI 
application.   If the user doesn’t need to interact with the program a lot, say 
you wan to just open a file and sort the contents and write out a sorted file, 
then a Console Program is fine, and probably less complicated.  If on the other 
hand the user needs to constantly interact with the program, than a GUI program 
is probably the best approach. 
 
I primarily use the Free Pascal IDE.  It's a little clunky for editing, so I 
use Notepad ++ for editing, but then I always use the IDE for compiling.  If I 
have an error it is pretty clear what the error is and it highlights it for me, 
and then I normally just fix it with the Free Pascal IDE.  The reason I use the 
FPC IDE is because I've tried several times to compile my largest projects with 
Lazarus and they won't even compile there, and it seemed complicated to get 
them to work...  my projects have a lot of units, some units are {$mode TP} 
others are {$mode FPC} I have very large portions of code that came straight 
from Turbo Pascal, and I'm not sure why entire projects with all their units 
compile with no problem with the FPC IDE and Lazarus produces error after 
error. for code that works fine with the FPC IDE.  Maybe I have settings in 
the FPC IDE that makes everything work, that I don’t have in Lazarus.  I’ve 
tried a few times to get it to work but while Options > Compiler is easy to 
find in the FPC IDE, I have no idea where the corresponding settings are in 
Lazarus.  I’ve tried looking under Tools > Options in Lazarus, and sure the 
directories are there, but not compiler options.   So now I have very involved 
programs with close to a hundred thousand lines of code, that won’t compile on 
Lazarus, so I keep using the FPC IDE.
 
There have ben occasions where I wanted to use a unit that was made for 
Lazarus, but not FPC, and having this situations where I have huge projects 
that won’t compile in Lazarus but work fine with the FPC IDE has required me to 
work around using Lazarus units… unfortunately it’s been easier to do that than 
to fix all the issues preventing me from compiling on Lazarus.
 
But… since you have zero lines of code… perhaps starting with Lazarus and just 
write simple console applications with that would be the best advice, because 
when your projects get larger and you decide maybe using some Lazarus units 
might be a good idea, then you won’t have the compatibility issues that I have.
 
James
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Ralf Quint via fpc-pascal

On 8/31/2021 10:40 AM, joseph turco via fpc-pascal wrote:

I guess I should just use lazarus and learn the GUI Tools.


Using Lazarus doesn't mean you HAVE TO write GUI programs. Just use it 
as an IDE. And by and large, any book/resource about Object 
Pascal/Delphi will do just fine to learn the basics of FreePascal...


Ralf



--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Travis Siegel via fpc-pascal
Although not likely in this case, I am visually impaired, use a screen 
reader, and find the Lazarius IDE nearly unusable.  Of course, I've not 
touched it in years, because my first attempt at using it failed 
miserably, so for me, I simply use notpad, pico, nano, or text edit 
(depending on what platform I'm using), and simply compile from the 
command line for all of my pascal work. Possibly, the original poster is 
facing a similar challenge, and only wants to learn console programming, 
to keep things simpler. As already mentioned, OOP isn't really that 
simple to wrap your brain around, especially if you're a new programmer, 
and don't have the framework already built to understand how it all works.


I'd honestly love to use an IDE for programming, as it would cut down on 
the amount of manual work required to get things done, but there are 
precious few that work well with screen readers, and so generally we're 
reduced to using text editors, and manual compiling.  Nothing wrong with 
that method, it works, it just isn't as efficient as it might otherwise be.


Powerbasic has a decent IDE, and I'll sometimes use that when powerbasic 
is required for a project, but I've gotten so used to command line and 
text editors, I rarely even bother with IDEs, even when I know they work.


Powerbasic, FPC, java, python, gcc, and G++ are the languages I use most 
often, and I think I'd be hard pressed to find something I'd be 
comfortable with using all of them with a single IDE anyway, so I just 
don't bother.



On 8/31/2021 9:52 AM, geneb via fpc-pascal wrote:

On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote:


Plain old FreePascal is approachable. Object Pascal is deeply
intimidating, and I'm not sure it's worth the entry price.



Liam, I think you're mixing the language with the framework.

I'll be the first person to agree with you that doing a gui 
application in Delphi (and realistically, any RAD environment) can be 
intimidating if you don't know that you're looking at "event driven 
programming" vs "procedural programming"  With a Delphi/VB/Etc GUI 
application, /everything/ (for the most part) is kicked off by an 
event of some kind. A mouse movement, button click, etc.  This can be 
painfully confusing - it was for me when I started working with VB 3.0 
when it was released (I'd skipped VB DOS & 2.0).


You can easily write procedural programs in Delphi, but you have to 
create a "console" project first in order to do that.  The same holds 
true for FPC, but FPC's default is console.


For the OP, if they would like to use Lazarus, they just need to make 
sure that when they create a new project, that it's a console mode 
project.


Make sense?

g.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread joseph turco via fpc-pascal
I guess I should just use lazarus and learn the GUI Tools. I was having a
problem when i was following the one of the books on the FP book wiki
, where i went to compile my program, and the IDE threw an error about an
.o file not found.

On Tue, Aug 31, 2021 at 1:21 PM Bart via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

> On Tue, Aug 31, 2021 at 12:23 PM Liam Proven via fpc-pascal
>  wrote:
>
> > I've got Lazarus running here and it's more of the same. But I
> > discovered that I have `fpc` in the terminal and I had a "Hello world"
> > program running in 30 seconds there... something that took hours in
> > Delphi.
>
> Menu->Project->New Project->Simple program
>
> And now you have exactly the same as in the FP IDE, but with the
> additional benefits of CodeTools.
>
> I came from TP 3.0->Tp6.0, so I understand where you came frome.
> But nowadays I find the FP IDE and even TP (in my DOS VM) cumbersome
> compared to Lazarus.
> None of the things I got used to work there (nor do they do in D3 or
> D7 for that matter).
>
> --
> Bart
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Bart via fpc-pascal
On Tue, Aug 31, 2021 at 12:23 PM Liam Proven via fpc-pascal
 wrote:

> I've got Lazarus running here and it's more of the same. But I
> discovered that I have `fpc` in the terminal and I had a "Hello world"
> program running in 30 seconds there... something that took hours in
> Delphi.

Menu->Project->New Project->Simple program

And now you have exactly the same as in the FP IDE, but with the
additional benefits of CodeTools.

I came from TP 3.0->Tp6.0, so I understand where you came frome.
But nowadays I find the FP IDE and even TP (in my DOS VM) cumbersome
compared to Lazarus.
None of the things I got used to work there (nor do they do in D3 or
D7 for that matter).

-- 
Bart
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread geneb via fpc-pascal

On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote:


For those of us who don't, though, docs that focus on doing that
aren't much help.


Agreed!


I am only really interested in FPC for one thing -- targeting Ultibo,
a bare-metal runtime for the Raspberry Pi. I'm interested in trying to
emulate some old hardware in bare-metal form on RasPis, and I have no
interest in learning GUI app development at all.


I've never heard of Ultibo.  I'll have to check that out!


So whereas there may be guides, manuals and tutorials that might be
really good at explaining how to do object-oriented Pascal for GUI
purposes -- they aren't much help at all if you're not interested in
doing that.



The book that Michalis Kamburelis wrote, "Modern Object Pascal 
Introduction for Programmers" is something you might want to look into. 
It's not aimed at event driven programming or GUI interfaces.  I do think 
that it's lacking information on how to use the FreePascal toolchain 
though - that's just as important as the language itself.  You can't get 
much programming done if you don't know how to kick off the compiler. :)


g.


--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Liam Proven via fpc-pascal
On Tue, 31 Aug 2021 at 15:53, geneb  wrote:
>
> Liam, I think you're mixing the language with the framework.
>
> I'll be the first person to agree with you that doing a gui application in
> Delphi (and realistically, any RAD environment) can be intimidating if you
> don't know that you're looking at "event driven programming" vs
> "procedural programming"  With a Delphi/VB/Etc GUI application,
> /everything/ (for the most part) is kicked off by an event of some kind.
> A mouse movement, button click, etc.  This can be painfully confusing - it
> was for me when I started working with VB 3.0 when it was released (I'd
> skipped VB DOS & 2.0).
>
> You can easily write procedural programs in Delphi, but you have to create
> a "console" project first in order to do that.  The same holds true for
> FPC, but FPC's default is console.
>
> For the OP, if they would like to use Lazarus, they just need to make sure
> that when they create a new project, that it's a console mode project.
>
> Make sense?

It does, but it's not really addressing the core problem here. There
certainly was an assumption in the Delphi era that you'd be building
event-driven GUI apps. Perfectly reasonable; that's what it was for.

For those of us who don't, though, docs that focus on doing that
aren't much help.

I am only really interested in FPC for one thing -- targeting Ultibo,
a bare-metal runtime for the Raspberry Pi. I'm interested in trying to
emulate some old hardware in bare-metal form on RasPis, and I have no
interest in learning GUI app development at all.

So whereas there may be guides, manuals and tutorials that might be
really good at explaining how to do object-oriented Pascal for GUI
purposes -- they aren't much help at all if you're not interested in
doing that.

-- 
Liam Proven – Profile: https://about.me/liamproven
Email: lpro...@cix.co.uk – gMail/gTalk/gHangouts: lpro...@gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread geneb via fpc-pascal

On Tue, 31 Aug 2021, Liam Proven via fpc-pascal wrote:


Plain old FreePascal is approachable. Object Pascal is deeply
intimidating, and I'm not sure it's worth the entry price.



Liam, I think you're mixing the language with the framework.

I'll be the first person to agree with you that doing a gui application in 
Delphi (and realistically, any RAD environment) can be intimidating if you 
don't know that you're looking at "event driven programming" vs 
"procedural programming"  With a Delphi/VB/Etc GUI application, 
/everything/ (for the most part) is kicked off by an event of some kind. 
A mouse movement, button click, etc.  This can be painfully confusing - it 
was for me when I started working with VB 3.0 when it was released (I'd 
skipped VB DOS & 2.0).


You can easily write procedural programs in Delphi, but you have to create 
a "console" project first in order to do that.  The same holds true for 
FPC, but FPC's default is console.


For the OP, if they would like to use Lazarus, they just need to make sure 
that when they create a new project, that it's a console mode project.


Make sense?

g.


--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-31 Thread Liam Proven via fpc-pascal
On Sun, 29 Aug 2021 at 15:26, Bart via fpc-pascal
 wrote:
>
> So, if you're on Windows, *nix or a Mac, my advice is to use Lazarus
> as your IDE of choice.

I see where you are coming from, I think, but I can relate to the OP.

I played with Pascal at university, and in my first job -- I wrote a
Quicklife program and some fractal generators and things. TurboPascal
was a good language, approachable and easy to understand.

But Delphi was, to me, utterly impenetrable. It's not really Pascal
any more: it's a confusing forms-based 4GL which happens to have a
scripting language with Pascal syntax. I am not really interested in
writing GUI apps. I'm just an amateur playing around and all the OOPS
stuff blew my brain.

I'm sure it's good and helpful for professionals, or even for skilled
amateurs, but as a dabbler, it took a reasonably accessible language,
far more readable than C, and made it overcomplicated and obscure and
complex and basically just too damned hard for me.

I've got Lazarus running here and it's more of the same. But I
discovered that I have `fpc` in the terminal and I had a "Hello world"
program running in 30 seconds there... something that took hours in
Delphi.

Plain old FreePascal is approachable. Object Pascal is deeply
intimidating, and I'm not sure it's worth the entry price.

-- 
Liam Proven – Profile: https://about.me/liamproven
Email: lpro...@cix.co.uk – gMail/gTalk/gHangouts: lpro...@gmail.com
Twitter/Facebook/LinkedIn/Flickr: lproven – Skype: liamproven
UK: +44 7939-087884 – ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread geneb via fpc-pascal

On Mon, 30 Aug 2021, wkitty42--- via fpc-pascal wrote:


On 8/30/21 8:52 AM, geneb via fpc-pascal wrote:
[*] For those not aware of him, Jeff Duntemann was a huge figure "back in 
the 

day" in Turbo/Borland Pascal circles.  His books are phenomenal.


i have and still use several of his books... i think the first one we got was 
"Complete Turbo Pascal" - 2nd edition, revised, enlarged, and includes 
v3.0... 
(c) 1987 :)


I'm pretty sure I've still got a copy of that myself.

g.

--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread wkitty42--- via fpc-pascal

On 8/30/21 8:52 AM, geneb via fpc-pascal wrote:
[*] For those not aware of him, Jeff Duntemann was a huge figure "back in the 
day" in Turbo/Borland Pascal circles.  His books are phenomenal.


i have and still use several of his books... i think the first one we got was 
"Complete Turbo Pascal" - 2nd edition, revised, enlarged, and includes v3.0... 
(c) 1987 :)



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list where it belongs!*
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Thomas Young via fpc-pascal


> On Aug 27, 2021, at 4:01 PM, joseph turco via fpc-pascal 
>  wrote:
> 
> I am a new programmer, and I thought I'd learn Pascal.


Good day Joseph,

Pascal is the language I was taught in 1986. I’m still using it.
First question to ask yourself is why and what do you need to program?
For myself, I use Pascal for automation, file I/O, parsing text and data, 
mathematical explorations and 2D/3D graphics.

Regards,
Thomas Young___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Jean SUZINEAU via fpc-pascal

I've forgotten to add the link to "Snap!" manual:

https://snap.berkeley.edu/snap/help/SnapManual.pdf

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Jean SUZINEAU via fpc-pascal

May be something like "Snap!" ?

https://snap.berkeley.edu/snap/snap.html#present:Username=trev1315=plane%202

https://snap.berkeley.edu/project?user=trev1315=plane%202

On my own, I think starting with Lazarus and GUI apps would be far easier.

If you create a new app from a template, you can get a running app 
nearly without typing anything.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread geneb via fpc-pascal


Here's a book that's aimed squarely at the non-programmer, and it's 
written for FreePascal


http://www.copperwood.com/pub/FreePascalFromSquareOne.pdf

It's written by Jeff Duntemann[*] and is a free download.
Give it a look, while "unfinished" it will get you the knowledge you want.

g.

[*] For those not aware of him, Jeff Duntemann was a huge figure "back in 
the day" in Turbo/Borland Pascal circles.  His books are phenomenal.


g.

--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-30 Thread Armin Linder via fpc-pascal

I suggest this:

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

as far as I remember there isn't a single GUI element used anywhere, 
it's all console/writeln, and it covers the "old style" (procedural) 
approach Turbo Pascal had, as well as working with more recent concepts 
like objects (old and new style) and generics.


Armin.

Am 27.08.2021 um 22:01 schrieb joseph turco via fpc-pascal:

Hello all,

I am a new programmer, and I thought I'd learn Pascal. I saw that with 
FreePascal, most users are using Lazarus. I don't want to use this and 
would rather work in the console, and use the free pascal IDE. I'm not 
really interested in using any GUI tools. I was looking for a book 
that teaches free pascal without the GUI stuff, that has a lot of 
examples in it, but i cannot find anything of the sort. This has made 
me turn to Turbo Pascal books, and i am currently reading "Learn Turbo 
Pascal in three days". When i use the free pascal IDE to write code, 
and compile it, i have no issues. When i go to run my program, any 
text i have printed, will mix in with the terminal/console text, and 
doesn't just print at the bottom like i would expect. This has made me 
turn to using emacs, and then just compiling the code in the terminal 
using "fpc -Mtp ". My question is, id like to use the 
free pascal IDE, and learn the more modern(?) form of pascal, but i 
cannot find a resource for beginners that will teach me with a lot of 
examples, and not walls of text, just for non-GUI applications. Does 
anyone know if such a book exists? Many thanks!


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread joseph turco via fpc-pascal
Thanks for the response. that book is aimed to experienced programmers. Not
for me sadly.

On Sun, Aug 29, 2021 at 12:43 PM geneb via fpc-pascal <
fpc-pascal@lists.freepascal.org> wrote:

> On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote:
>
> > On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal
> >  declaimed
> > the following:
> >
> >> question is, id like to use the free pascal IDE, and learn the more
> >> modern(?) form of pascal, but i cannot find a resource for beginners
> that
> >
>
> This is a very well written manual.  He did an excellent job and you
> should give it a look.
>
> https://castle-engine.io/modern_pascal_introduction.html
>
> You can also download it as a single PDF.
>
> g.
>
>
> --
> Proud owner of F-15C 80-0007
> http://www.f15sim.com - The only one of its kind.
> http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
> Some people collect things for a hobby.  Geeks collect hobbies.
>
> ScarletDME - The red hot Data Management Environment
> A Multi-Value database for the masses, not the classes.
> http://scarlet.deltasoft.com - Get it _today_!
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Yann Mérignac via fpc-pascal
http://code.sd/startprog/

Le dim. 29 août 2021 à 18:43, geneb via fpc-pascal <
fpc-pascal@lists.freepascal.org> a écrit :

> On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote:
>
> > On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal
> >  declaimed
> > the following:
> >
> >> question is, id like to use the free pascal IDE, and learn the more
> >> modern(?) form of pascal, but i cannot find a resource for beginners
> that
> >
>
> This is a very well written manual.  He did an excellent job and you
> should give it a look.
>
> https://castle-engine.io/modern_pascal_introduction.html
>
> You can also download it as a single PDF.
>
> g.
>
>
> --
> Proud owner of F-15C 80-0007
> http://www.f15sim.com - The only one of its kind.
> http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
> Some people collect things for a hobby.  Geeks collect hobbies.
>
> ScarletDME - The red hot Data Management Environment
> A Multi-Value database for the masses, not the classes.
> http://scarlet.deltasoft.com - Get it _today_!
> ___
> fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread geneb via fpc-pascal

On Sat, 28 Aug 2021, Dennis Lee Bieber via fpc-pascal wrote:


On Fri, 27 Aug 2021 16:01:38 -0400, joseph turco via fpc-pascal
 declaimed
the following:


question is, id like to use the free pascal IDE, and learn the more
modern(?) form of pascal, but i cannot find a resource for beginners that




This is a very well written manual.  He did an excellent job and you 
should give it a look.


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

You can also download it as a single PDF.

g.


--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Bart via fpc-pascal
On Sat, Aug 28, 2021 at 3:21 PM joseph turco via fpc-pascal
 wrote:

> I am a new programmer, and I thought I'd learn Pascal.

You're very welcome.

> I saw that with FreePascal, most users are using Lazarus. I don't want to use 
> this and would rather work in the console,
> and use the free pascal IDE.I'm not really interested in using any GUI tools.

Assuming that you have modern hardware that you do your programming on:
Even if you only want to write console programs, using Lazarus as your
IDE hase advantages over using the FP IDE.
The Lazarus IDE comes with CodeTools which has code completion and
much, much more features that you cannot do without once you're used
to having them, even if you only use a few of them.
I know: I came from D3 Pro, which at that time was a better compiler
and a more stable IDE than Lazarus 0.9.something.
But every time I came back to D3 (even just for testing something), I
ended up trying to do Ctrl-Click on an identifier (to see it's
definition: the IDE opens the source file at the position where it is
declared), Ctrl+C on a variable in a new line of code, (just to
declare it in the relevant var section) and of course that does not
work.

So, if you're on Windows, *nix or a Mac, my advice is to use Lazarus
as your IDE of choice.

-- 
Bart
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Guillermo via fpc-pascal
Hi Joseph,

Besides all other answers, once you have a (Turbo) Pascal basis you can
read "Modern Object Pascal Introduction for Programmers"
[https://castle-engine.io/modern_pascal_introduction.html].  It will
show you old and new stuff.

Regards,
Guillermo "Ñuño" Martínez

El Fri, 27 Aug 2021 16:01:38 -0400
joseph turco via fpc-pascal  escribió:
> Hello all,
> 
> I am a new programmer, and I thought I'd learn Pascal. I saw that with
> FreePascal, most users are using Lazarus. I don't want to use this and
> would rather work in the console, and use the free pascal IDE. I'm not
> really interested in using any GUI tools. I was looking for a book
> that teaches free pascal without the GUI stuff, that has a lot of
> examples in it, but i cannot find anything of the sort. This has made
> me turn to Turbo Pascal books, and i am currently reading "Learn
> Turbo Pascal in three days". When i use the free pascal IDE to write
> code, and compile it, i have no issues. When i go to run my program,
> any text i have printed, will mix in with the terminal/console text,
> and doesn't just print at the bottom like i would expect. This has
> made me turn to using emacs, and then just compiling the code in the
> terminal using "fpc -Mtp ". My question is, id like to
> use the free pascal IDE, and learn the more modern(?) form of pascal,
> but i cannot find a resource for beginners that will teach me with a
> lot of examples, and not walls of text, just for non-GUI
> applications. Does anyone know if such a book exists? Many thanks!

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread James Richters via fpc-pascal
I write almost all console programs with FreePascal and also use the Freepascal 
IDE a lot.
It is compatible with Turbo Pascal and that is what I learned to program with … 
because it was modern at the time    So turbo pascal books are a good way to 
learn Pascal in general, as I had no problem using advanced Free Pascal things 
with a Turbo Pascal background… however I should point out that I am biased 
toward Turbo Pascal because I have been using it since the mid 80’s, but Object 
Pascal which is an extension of Pascal is quite a bit more popular and provides 
Object oriented features like classes and methods… so while Turbo Pascal is a 
good way to get started with general pascal syntax and understanding the 
general way things work in Pascal, it would be a good idea to move into Object 
Pascal and get familiar with that as well.  
 
There is a tutorial here:
https://wiki.freepascal.org/Basic_Pascal_Introduction
The above tutorial has this link: 
https://wiki.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines
Which does have some links to books for Free Pascal without Lazarus
 
Free Pascal has some compiler options to make it compatible with various forms 
of Pascal, one of them is Turbo Pascal, but if you compile the program with the 
wrong one, you may ger unexpected errors.   So if you want to use a Turbo 
Pascal book, you should put {$Mode TP} at the top of your program to instruct 
the compiler to compile it as a Turbo Pascal program.  You can see the other 
modes here:
https://www.freepascal.org/docs-html/user/userse33.html
If you do not specify a mode and did not change the default in the 
configurations, I believe you will get {$Mode FPC} 
 
As far as screen output goes,  if you put Uses CRT at the top of your program 
(under the {$Mode TP})  then you will be using the CRT unit, that handles the 
screen much the way Turbo Pascal does.. but it didn’t need the unit because 
that’s all there was…  with that, you can use the ClrScr; command to clear the 
screen first thing, then your program output is the only thing to see… When 
using the IDE I also put something like a ReadLn; at the end of my program so I 
can see the results before it switches back to the IDE.. Although pushing 
ALT-F5 will also show you the output if you don’t have the ReadLn;
 
{$Mode TP}
Uses CRT;
Begin
   ClrScr;
   WriteLn('Hello World');
   ReadLn;
End.
 
James
 
 
From: fpc-pascal  On Behalf Of joseph 
turco via fpc-pascal
Sent: Friday, August 27, 2021 4:02 PM
To: fpc-pascal@lists.freepascal.org
Cc: joseph turco 
Subject: [fpc-pascal] Hello, new Pascal programmer. had a question!
 
Hello all,
 
I am a new programmer, and I thought I'd learn Pascal. I saw that with 
FreePascal, most users are using Lazarus. I don't want to use this and would 
rather work in the console, and use the free pascal IDE. I'm not really 
interested in using any GUI tools. I was looking for a book that teaches free 
pascal without the GUI stuff, that has a lot of examples in it, but i cannot 
find anything of the sort. This has made me turn to Turbo Pascal books, and i 
am currently reading "Learn Turbo Pascal in three days". When i use the free 
pascal IDE to write code, and compile it, i have no issues. When i go to run my 
program, any text i have printed, will mix in with the terminal/console text, 
and doesn't just print at the bottom like i would expect. This has made me turn 
to using emacs, and then just compiling the code in the terminal using "fpc 
-Mtp ". My question is, id like to use the free pascal IDE, and 
learn the more modern(?) form of pascal, but i cannot find a resource for 
beginners that will teach me with a lot of examples, and not walls of text, 
just for non-GUI applications. Does anyone know if such a book exists? Many 
thanks!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Hello, new Pascal programmer. had a question!

2021-08-29 Thread Michael Van Canneyt via fpc-pascal



On Fri, 27 Aug 2021, joseph turco via fpc-pascal wrote:


Hello all,

I am a new programmer, and I thought I'd learn Pascal. I saw that with
FreePascal, most users are using Lazarus. I don't want to use this and
would rather work in the console, and use the free pascal IDE. I'm not
really interested in using any GUI tools. I was looking for a book that
teaches free pascal without the GUI stuff, that has a lot of examples in
it, but i cannot find anything of the sort. This has made me turn to Turbo
Pascal books, and i am currently reading "Learn Turbo Pascal in three
days". When i use the free pascal IDE to write code, and compile it, i have
no issues. When i go to run my program, any text i have printed, will mix
in with the terminal/console text, and doesn't just print at the bottom
like i would expect.


That's how TP did it in days long past, so this is normal behaviour.
The CRT unit allowed you to write on any part of the screen, so the output
of the program was written in a separate screen.


This has made me turn to using emacs, and then just
compiling the code in the terminal using "fpc -Mtp ". My
question is, id like to use the free pascal IDE, and learn the more
modern(?) form of pascal, but i cannot find a resource for beginners that
will teach me with a lot of examples, and not walls of text, just for
non-GUI applications. Does anyone know if such a book exists? Many thanks!



To my knowledge there are no recent books like that.
The most recent book I know of was 'Learning to program using Lazarus', but
as you see from the title, it uses lazarus.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal