Recent

Author Topic: This is me back in Lazarus after looking at Python for 2 days  (Read 1158 times)

TBMan

  • Full Member
  • ***
  • Posts: 134
Are they kidding me? Text indentation effects execution of statements?

Handoko

  • Hero Member
  • *****
  • Posts: 5425
  • My goal: build my own game engine using Lazarus
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #1 on: April 18, 2025, 05:58:12 pm »
Me too, ever tried Python and felt weird about it. I could understand that would ensure code readability. But personally, Pascal is very readable in my eyes.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8393
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #2 on: April 18, 2025, 06:09:58 pm »
Are they kidding me? Text indentation effects execution of statements?

No: they're not kidding, and they defend that syntactic layout with the same zeal that Pascal devotees use for some of its questionable design decisions.

However over the years they've put a lot of effort into thinking through the internal semantics, and the internal documentation- which for my sins I've worked through in some detail- is good.

We might not like it, but neither can we dismiss it :-/

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 256
    • Fresh sound.
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #3 on: April 18, 2025, 07:32:37 pm »
I do not touch programming languages which are case-sensitive..... :D
Linux Mint 20.3, Lazarus 2.3, Windows 10, Delphi 10.3 Rio, Delphi 11.1 Alexandria

JD

  • Hero Member
  • *****
  • Posts: 1905
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #4 on: April 18, 2025, 08:38:12 pm »
Are they kidding me? Text indentation effects execution of statements?

 :D :D :D Nope. And they love it that way. I also had to learn Python and the text indentation matter was a problem until I started coding in IDEs (e.g. Visual Studio Code) with rainbow indentation enabled. Then you can see the indentation better than when using a plain text editor for coding.

However, Lazarus/FPC is still by far my go-to tool for creating native compiled applications and that is not likely to change since I don't have time to learn the shiny new tools like Go and/or Rust.

Cheers,

JD
« Last Edit: April 19, 2025, 09:27:10 am by JD »
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

TBMan

  • Full Member
  • ***
  • Posts: 134
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #5 on: April 18, 2025, 11:01:04 pm »
Are they kidding me? Text indentation effects execution of statements?

 :D :D :D Nope. And they love it that way. I also had to learn Python and the text indentation matter was a problem until I started coding in IDEs (e.g. Visual Studio Code) with rainbow indentation enabled. Then you can see the indentation better than when using a plain text editor for coding.

However, Lazarus/FPC is still by go-to tool for creating native compiled applications and that is not likely to change since I don't have time to learn the shiny new tools like Go and/or Rust.

Cheers,

JD

I downloaded Visual Studio Code (thanks!) and I'll keep chipping away at it. I would like to learn C as well, but the compiler and IDE I found is quirky.

dbannon

  • Hero Member
  • *****
  • Posts: 3348
    • tomboy-ng, a rewrite of the classic Tomboy
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #6 on: April 19, 2025, 02:32:17 am »
Are they kidding me? Text indentation effects execution of statements?

Try writing a makefile !  Far worse.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Handoko

  • Hero Member
  • *****
  • Posts: 5425
  • My goal: build my own game engine using Lazarus
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #7 on: April 19, 2025, 03:16:57 am »
Never try writing a makefile but what the worst to me is JavaScript:
https://www.youtube.com/watch?v=aXOChLn5ZdQ

JD

  • Hero Member
  • *****
  • Posts: 1905
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #8 on: April 19, 2025, 09:59:25 am »
I downloaded Visual Studio Code (thanks!) and I'll keep chipping away at it. I would like to learn C as well, but the compiler and IDE I found is quirky.

You're welcome. Be aware that JetBrain's PyCharm IDE also has a rainbow indentation plugin https://plugins.jetbrains.com/plugin/13308-indent-rainbow. The (limited) community version of Pycharm is still free.

I've tried free C IDEs like Code::Blocks, CodeLite and Dev C++ (which was actually written in Delphi and is now a product of Embarcadero) in the past. The funny thing is I started with Dev C++ with wxWidgets plugin to build applications. When I saw that Dev C++ was written in Delphi, it made me want to check Delphi out. I then jumped to Delphi development since it was easier to build applications in Delphi than with Dev C++/wxWidgets. Then some years later, I learned about Lazarus/FPC and I jumped ship again.  :D

The shiniest C IDEs are RAD Studio C++, JetBrains CLion and the Qt platform. Not free so the choice is yours.

Cheers,

JD

Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

TBMan

  • Full Member
  • ***
  • Posts: 134
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #9 on: April 19, 2025, 06:33:55 pm »
I downloaded Visual Studio Code (thanks!) and I'll keep chipping away at it. I would like to learn C as well, but the compiler and IDE I found is quirky.

You're welcome. Be aware that JetBrain's PyCharm IDE also has a rainbow indentation plugin https://plugins.jetbrains.com/plugin/13308-indent-rainbow. The (limited) community version of Pycharm is still free.

I've tried free C IDEs like Code::Blocks, CodeLite and Dev C++ (which was actually written in Delphi and is now a product of Embarcadero) in the past. The funny thing is I started with Dev C++ with wxWidgets plugin to build applications. When I saw that Dev C++ was written in Delphi, it made me want to check Delphi out. I then jumped to Delphi development since it was easier to build applications in Delphi than with Dev C++/wxWidgets. Then some years later, I learned about Lazarus/FPC and I jumped ship again.  :D

The shiniest C IDEs are RAD Studio C++, JetBrains CLion and the Qt platform. Not free so the choice is yours.

Cheers,

JD

I forgot that I had found Pelle C. I'd have to dive into the windows api because so far I haven't found anything like a wrapper to simulate Borland's bgi, but to learn the basics of C it's good.

Weiss

  • Full Member
  • ***
  • Posts: 209
Re: This is me back in Lazarus after looking at Python for 2 days
« Reply #10 on: April 20, 2025, 06:34:41 am »
I do not touch programming languages which are case-sensitive..... :D

It is not bad if all your languages are case-sensitive. You take it necessary evil. I remember C#, wasn't too bad. But as soon as you add Pascal to the mix...

 

TinyPortal © 2005-2018