Recent

Author Topic: Can anyone share your source code?  (Read 7190 times)

hawk

  • Newbie
  • Posts: 4
Can anyone share your source code?
« on: May 06, 2009, 06:44:00 am »
 Hi,everybody :)
I'm new to lazarus,and new to free pascal.
I need lots of source codes to study.I have google "free pascal source",but i could not find any.
So can anybody share your source codes.
I think it is a good idea if there is a forum doing this as "http://www.autoitscript.com/forum/index.php?showforum=9" do .
If there are some forums do that .Please tell me.
Sorry for my poor english.
« Last Edit: May 06, 2009, 06:51:02 am by hawk »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2420
    • havefunsoft.com
Re: Can anyone share your source code?
« Reply #1 on: May 06, 2009, 07:52:25 am »
there're some sources at Lazarus/Examples
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

hawk

  • Newbie
  • Posts: 4
Re: Can anyone share your source code?
« Reply #2 on: May 06, 2009, 08:07:36 am »
Yes,I know but that is not enough

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 998
    • Burdjia
Re: Can anyone share your source code?
« Reply #3 on: May 06, 2009, 05:59:35 pm »
Which kind of applications are you looking for?
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

hawk

  • Newbie
  • Posts: 4
Re: Can anyone share your source code?
« Reply #4 on: May 07, 2009, 06:43:20 am »
Which kind of applications are you looking for?
I just want to study free pascal and develop some applications under windows.
« Last Edit: May 07, 2009, 06:46:34 am by hawk »

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Can anyone share your source code?
« Reply #5 on: May 07, 2009, 07:53:09 am »
To study free pascal, use the free pascal manuals. The unit reference manual also contains examples.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 998
    • Burdjia
Re: Can anyone share your source code?
« Reply #6 on: May 07, 2009, 11:12:09 am »
Also the wiki has some tutorials.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

hawk

  • Newbie
  • Posts: 4
Re: Can anyone share your source code?
« Reply #7 on: May 08, 2009, 06:05:05 am »
OK,thanks.i will use the free pascal manuals.
But I still think it's a good idea if there are some forums like that.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2420
    • havefunsoft.com
Re: Can anyone share your source code?
« Reply #8 on: May 08, 2009, 07:48:12 am »
OK,thanks.i will use the free pascal manuals.
But I still think it's a good idea if there are some forums like that.
[imho]
it's not possible to learn a programming language, just by studying other's sources.

Studying sources is usefull for experience programmers only. It's of pretty useless (and can be even dangerous) for unexperience programmers. Larger programs are created using advanced language features, like OOP or Interfaces. A lot of system features might be used like threads, that are not easy to understand for the newbie.

Learning a programming language require a big piece of practice first.
I'd suggest to learn the programming by creating small aps, using some basic tutorials.
When i started to learn Turbo Pascal, the first thing i wanted is to code simple Tetris game. When i came to delphi, the first thing i coded was the VCL-based Tetris game either :) After i moved to Lazarus, my first project was cross-platform (Win,Linux,OSX) Space Invaders (the difference from delphi is {$mode objfpc})

Creating smaller apps is fun and makes one to understand the language better.
[/imho]
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

t321

  • Newbie
  • Posts: 1
Re: Can anyone share your source code?
« Reply #9 on: January 26, 2020, 08:06:27 pm »
Is it possible for you to share your source code for Space Invaders?

lucamar

  • Hero Member
  • *****
  • Posts: 2831
Re: Can anyone share your source code?
« Reply #10 on: January 26, 2020, 08:25:35 pm »
I don't know about skalogryz's but a web search for -"space invaders" pascal- gives tons of results. Just saying 8)
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.6/FPC 3.0.4 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

mr-highball

  • Full Member
  • ***
  • Posts: 153
    • Highball Github
Re: Can anyone share your source code?
« Reply #11 on: January 26, 2020, 11:52:54 pm »
Here's my repos
https://github.com/mr-highball

Also, you can search github for repos written just in pascal
https://github.com/search?utf8=%E2%9C%93&q=language%3Apascal&type=

kveroneau

  • Jr. Member
  • **
  • Posts: 95
Re: Can anyone share your source code?
« Reply #12 on: February 28, 2020, 11:38:36 pm »
Here's a few ObjectPascal programs which I know about which are open sourced, some mine, some made by others.  Now if only Microsoft would share the original Skype code built in Delphi....  But that's only a pipe dream.

WinFF:  https://github.com/WinFF/winff

My Gopher client(first published OBJPAS program of mine): https://bitbucket.org/kveroneau/gopherclient/src/default/

I have some examples in my kDocs: http://tech406.com/kdocs/sockets.xml

In fact my kDocs do have some very useful code snippets, such as Networking, like grabbing a document over HTTP and such, along with many other examples.

Oh, and I have my Cardiac program here: https://bitbucket.org/kveroneau/cardiac/src/default/

I go into detail on how I built it in this kDocs: http://tech406.com/kdocs/cardiac.xml

And yes, these kDocs are actual XML documents, not HTML documents.  8)

Hope these help you enter the wonder world of Write once, compile anywhere!  It is a true testament, as I was able to port my Gopher client over to Windows and MacOS with almost 0 code changes, MacOS was the only one which required a bit of UI tweaking, only because of how they present a menu bar to the user.

RAW

  • Hero Member
  • *****
  • Posts: 827
Windows 7 Pro (x64 Sp1) And Windows XP Pro (x86 Sp3) - LAZARUS 2.0.8 FPC 3.0.4 - TRUNK 2.1.0 FPC 3.3.1
// This is polarity (hell) and hell is reigned by lies, nothing but lies. Be careful what you believe ...
// There are 10 types of people in this world, those who understand mind control and ...

AL

  • Full Member
  • ***
  • Posts: 149
Re: Can anyone share your source code?
« Reply #14 on: February 29, 2020, 03:17:27 am »
A few sites with source codes:

https://wiki.lazarus.freepascal.org/Components_and_Code_examples
http://www.pp4s.co.uk/index.html
https://sourceforge.net/directory/language:lazarus/os:windows/

If you search you will find quite a lot.
You can also search for Delphi, most of the Delphi code is compatible/adaptable to Lazarus, but this is more after you are familiar with the Laz environment.
Good Luck
Laz 2.1.0, fpc 3.3.1, Win10
Laz 2.1.0, fpc3.3.1, Mac OS Mojave running on VMWare

 

TinyPortal © 2005-2018