Can anyone share your source code? lazarus / 8-Other ---------------------------------------------------------------------- hawk · 2009-05-06 04:44 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. ---------------------------------------------------------------------- skalogryz · 2009-05-06 05:52 there're some sources at Lazarus/Examples ---------------------------------------------------------------------- hawk · 2009-05-06 06:07 Yes,I know but that is not enough ---------------------------------------------------------------------- Ñuño_Martínez · 2009-05-06 15:59 Which kind of applications are you looking for? ---------------------------------------------------------------------- hawk · 2009-05-07 04:43 Quote from: Ñuño_Martínez on May 06, 2009, 05:59:35 pmWhich kind of applications are you looking for? I just want to study free pascal and develop some applications under windows. ---------------------------------------------------------------------- Vincent Snijders · 2009-05-07 05:53 To study free pascal, use the free pascal manuals. The unit reference manual also contains examples. ---------------------------------------------------------------------- Ñuño_Martínez · 2009-05-07 09:12 Also the wiki has some tutorials. ---------------------------------------------------------------------- hawk · 2009-05-08 04:05 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 · 2009-05-08 05:48 Quote from: hawk on May 08, 2009, 06:05:05 amOK,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] ---------------------------------------------------------------------- t321 · 2020-01-26 19:06 Is it possible for you to share your source code for Space Invaders? ---------------------------------------------------------------------- lucamar · 2020-01-26 19:25 I don't know about skalogryz's but a web search for -"space invaders" pascal- gives tons of results. Just saying ---------------------------------------------------------------------- mr-highball · 2020-01-26 22:52 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 · 2020-02-28 22:38 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.  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 · 2020-02-28 23:04 https://github.com/miselkrstovic/space-invaders-delphi/tree/master/src https://www.youtube.com/watch?v=hPmJB0mS-GA https://ralph-kokott.de/2011/space-invaders-delphi/ ..maybe this is a starting point ... ---------------------------------------------------------------------- AL · 2020-02-29 02:17 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 ---------------------------------------------------------------------- dbannon · 2020-02-29 07:25 15K lines, https://github.com/tomboy-notes/tomboy-ng feel free to fix any bugs you see ! Davo ---------------------------------------------------------------------- marcov · 2020-02-29 15:56 Quote from: skalogryz on May 06, 2009, 07:52:25 amthere're some sources at Lazarus/Examples And a very big example one directory higher:-) ---------------------------------------------------------------------- kveroneau · 2020-03-24 23:26 Today, I just found out that one of the world's most popular and most used Installer programs for the Microsoft Windows platform, Inno Setup is actually made in Delphi!  This project has been around since the late 90s. https://github.com/jrsoftware/issrc Does not seem to build on Free Pascal/Lazarus according to the README.md file, but it is an example of a production grade ObjectPascal program of which you can analyze the source code for.