Jump to content

Code snippets: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
 
Line 75: Line 75:
* [[OZPD]] - Sundry [[PD]] C routines and programs
* [[OZPD]] - Sundry [[PD]] C routines and programs
* [http://pleac.sourceforge.net/pleac_rexx/index.html PLEAC-REXX] - Collection of common REXX rutines
* [http://pleac.sourceforge.net/pleac_rexx/index.html PLEAC-REXX] - Collection of common REXX rutines
* [http://rosettacode.org/mw/index.php?title=Special%3ASearch&search=Walter+Pachl&go=Go Walter Pachl's code on rosettacode.org] - Mostly Classic [[REXX]] but also [[Object REXX]], [[NetRexx]] and PL/I.
* [http://vastgoodies.com Vastgoodies.com] - A reprisotory of VA Smalltalk functions run by Adriaan van Os , only a subset of these will work with the OS/2 version of VisualAge Smalltalk 6.x
* [http://vastgoodies.com Vastgoodies.com] - A reprisotory of VA Smalltalk functions run by Adriaan van Os , only a subset of these will work with the OS/2 version of VisualAge Smalltalk 6.x
* [http://www.wpachl.at/Rexx_Programs.html Walter Pachl's REXX code]
* [http://www.wpachl.at/Rexx_Programs.html Walter Pachl's REXX code]

Latest revision as of 21:48, 2 April 2025

EDM/2's collection of code snippets, and links to such small programs on external sites. Most of the snippets are for common scripting languages such as REXX, Tcl, PHP and so on but there is also code for traditional programming languages such as C, Modula-2, LISP and Prolog, et cetera. The idea behind such small programs is primarily to be used as educational examples that a programmer can learn from but depending on licence, they can also be taken and used in your own programs.

Code snippets are usually linked to from the Wiki page for each programming language, but it makes sense to also collect them here all together and sort them by function since they can be used in multi-language projects, it may be easier for you to call a function in another language than to rewrite it in your preferred language, and understanding it in another language even if you have not fully mastered that language can be helpful even if you intend to rewrite the function in your preferred programming tool, and so on.

The snippets here are primarily either targeting OS/2 or generic in nature, but code targeting DOS, UNIX and even more alien systems may be included especially if they have some educational value.

OS/2 system

WPS

Memory management

Aka Garbage collection, malloc etc.

Collections

Internet

WWW & HTML

E-Mail & USENET

General

Date and time operations

Files & file operations

  • PDCRC - CRC routines in C

Databases

DBF files

Graphics

Utilities & small applets

Object oriented functions

Language and system extensions

LISP
Smalltalk

Games

Collections

Sundry & collections