Learn Pascal Programming With Lazarus and Free Pascal (First Lesson)

Поділитися
Вставка
  • Опубліковано 4 лип 2024
  • You can install Lazarus and Free Pascal to write, design, debug and compile programs on multiple platforms (Windows, Linux. Mac OS). In this series I will show you how to creatre both commandline and visual (windowed) applications and how to transfer your programs to another operating system (later on, I’ll show how to write on Windows PC and run on a Raspberry Pi).
    Huw Collingbourne is author of The Little Book Of Delphi (Object Pascal) Programming. Available from:
    * Amazon.com www.amazon.com/Little-Book-De...
    * Amazon.co.uk www.amazon.co.uk/Little-Book-...
    Download Lazarus and Free Pascal: www.lazarus-ide.org/
    This series explains cross-platform programming using Lazarus and Free Pascal on Windows and the Raspberry Pi OS. It will cover everything from procedural Pascal to object orientation with Object Pascal. The Pascal language used is also closely compatible with Object Pascal for Delphi. Be sure to bookmark the series Playlist: • Cross-Platform Program...

КОМЕНТАРІ • 41

  • @gammyhorse
    @gammyhorse 5 місяців тому +21

    Modern Pascal is such an underrated language and it's a pity it doesn't get the attention it deserves. In my opinion, knocks to the ground many so called 'cool' languages, and Lazarus is great also.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +7

      Also, Pascal encourages a very clear and well-structured approach to programming which (in my opinion!) helps to build good programming habits even if you end up using a different language.

    • @GaryChike
      @GaryChike 5 місяців тому +2

      Almost all new languages use the Wirthian syntax of placing the type annotation after the identifier. So Pascal sort of lives on through all these new languages.
      var num1: Integer; vs C-based languages: Int num1;

    • @bobweiram6321
      @bobweiram6321 5 місяців тому +3

      If you really want to see an underrated language take a look at Ada. It runs air traffic control systems and rockets. It's as fast and compact than C, while as high level as Pascal. If you know Pascal, you can learn most of it in a week.

    • @GaryChike
      @GaryChike 5 місяців тому +1

      @@bobweiram6321 Ada is a great language. I've been learning it off and on for the last 3 years. When compared to the likes of C++, Ada is extremely type safe - no implicit conversions allowed.
      For example, this C construct would not pass muster in Ada:
      int num1 = 10;
      int num2 = 3;
      num3 = (float) num1/num2;
      num1 is undergoing explicit casting as where num2 is an implicit conversion.
      Ada requires both be of type 'float':
      num1: Integer := 10;
      num2: Integer := 3;
      num3: Float := float(num1)/float(num1);

    • @gammyhorse
      @gammyhorse 5 місяців тому

      @@bobweiram6321 Thanks for the info, I'll have a look.

  • @pyroMaximilian
    @pyroMaximilian 5 місяців тому +2

    I haven't wtitten a single line of Pascal in 25 years. This brought back fond memories of using Borland Turbo Pascal in school. I was partial to C back then for its brevity and flexibility, but 25 years of experience have taught me that a type-safe, verbose language is always a better option!

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +1

      I too use C (and C# and Java) but I agree with you. I still like the clarity and rigour of Pascal.

  • @ChrisPinCornwall
    @ChrisPinCornwall 5 місяців тому +3

    Brilliant! Just what I wanted. Being a geriatric systems programmer, I wanted to learn a new language and had decided upon Pascal... And lo... Here you are! Thank you so much.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому

      Glad to help. I'm sure you'll enjoy programming Pascal with Lazarus.

  • @garyhalsey7693
    @garyhalsey7693 5 місяців тому +5

    Lazarus doesn’t seem to get much love on UA-cam, so well done for creating some tutorials. I’ve been writing Pascal for at least 20+ years, starting with Delphi then moving to Lazarus. I write for both Windows & Linux but have never managed to get it working successfully on my Mac. I would be very grateful if you could do a guide on that at some stage maybe? Looking forward to the next video!

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +3

      Sadly I no longer have a Mac but I'll certainly look at Linux.

    • @garyhalsey7693
      @garyhalsey7693 5 місяців тому

      @@LearnWithHuw I write for Ubuntu/Lubuntu/Raspberry Pi OS, as well as Windows. There are few minor differences but in the whole, the code is identical. If you would like help/ideas for your videos, I’d be glad to help. I have done stuff like system tray apps and Database apps connecting to MariaDB back ends as well. My experience is GUI apps.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +1

      @@garyhalsey7693 If this series generates enough interest I may show various different projects. It's early days yet though, so I need to be sure that people are sufficiently interested. Fingers crossed!

  • @GaryChike
    @GaryChike 5 місяців тому +1

    Glad to see a renewed series on Lazarus and FPC. Thank you Huw! Michalis Kamburelis, the creator of Castle Game Engine, is always looking for basic training material for Object Pascal/Lazarus. His tutorials tend to be for more experienced programmers. I'll refer him to this series.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +2

      Thanks. I'll cover the basics of Lazarus and Pascal in the first few lessons. Then I'll move on to looking at cross-platform development.

  • @AutMouseLabs
    @AutMouseLabs 5 місяців тому +1

    A cross platform form maker is cool. I have never used Pascal, but it seems intuitive enough. Looking forward to learning more about this.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому

      Pascal is a very clear ("readable") language. I'm sure you'll have fun learning it.

  • @SweeperFlies
    @SweeperFlies 5 місяців тому +1

    I am a systems architect in my "day job" (my primary being search and rescue). I haven’t touched Pascal since the late nineties and I am overjoyed to see that it’s thriving again (and open source, with a non proprietary ide!). Thank you Huw for making and sharing these videos!
    How does modern Pascal & Lazarus compare to C++ in terms of multi-threading and overall performance? The last pascal project I worked on professionally, used Delphi and it was a multi-user large-scale administration component. It performed very well (much better than the VB6 predecessor!). Although I ended up working with C and C++, I am going to take a look at the modern version of pascal and get current again because I used to really enjoy programming in pascal. Thanks for renewing my interest in what was one of my favourite languages!

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому

      Thanks for the comment. I'm pleased to discover that so many people are interested in this! I haven't done any benchmarks but in general performance is very good. For multi-threading see here: wiki.freepascal.org/Multithreaded_Application_Tutorial

  • @vladgonzalez3325
    @vladgonzalez3325 5 місяців тому

    thank you for the series on Lazarus

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому

      I'm glad you like it! Many thanks.

  • @flugelberger
    @flugelberger 5 місяців тому

    Huw Collingbourne! Wow - a name familiar from my earliest days of interest in computers. Good to see you still going strong, and promoting this great IDE.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +1

      Ha! You have a long memory! Nice to know you remember!

  • @billb6283
    @billb6283 5 місяців тому

    This is great. I put up a little teaser video about Lazarus on Linux a few weeks ago. I've added a link to your channel in the description. Looking forward to learning more myself by watching your tutorials.

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +1

      Keep watching. There are many more videos to come in this series!

  • @sigrice
    @sigrice 5 місяців тому

    Nice, keep making them. It's "read line and write line" FYI

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому

      Never heard it pronounced that way ( in 40 years of Pascal programming! :-) ) Oh, well, you learn something new every day!

    • @GaryChike
      @GaryChike 5 місяців тому

      @@LearnWithHuw it appears that abbreviated keywords are for the most part pronounced in their 'truncated' form. The Go programmers pronounce 'fmt' "fumpt" and not "format". C++ and Rust will pronounce 'std' 'stood' and not 'standard', etc...

    • @LearnWithHuw
      @LearnWithHuw  5 місяців тому +2

      @@GaryChike Oh well, "You say tomato and I say tomato". Then again, here in Britain we program Delph-ee. In the USA people program Delph-eye. Somehow we all manage to understand one another! 🙂

    • @GaryChike
      @GaryChike 5 місяців тому

      @@LearnWithHuw Yes, I was saying that your pronunciation of 'readln' is correct.

  • @LunaticEdit
    @LunaticEdit 4 місяці тому

    I started my career programming in Delphi 7. I know over 20 programming languages now, including all the 'cool kids' ones. For some reason, it's almost impossible to write bad pascal. It's basically the polar opposite of javascript.

    • @LearnWithHuw
      @LearnWithHuw  4 місяці тому

      Pascal was originally developed as a teaching language and it's my belief that it is a much better choice of language for learning good programming practice than most of the languages that are used by colleges these days.