PDA

View Full Version : Sample Sourcecode



Majorix
August 5th, 2009, 09:24 AM
Could you please name some database with different kinds of sourcecode written in different languages?

jespdj
August 5th, 2009, 10:00 AM
Some database with different kinds of sourcecode written in different languages... that sounds quite vague.

There are several websites that host open source projects, such as SourceForge and Google Code, where you can find lots of source code written in lots of different languages.

And ofcourse the source code of almost all Ubuntu software is available.

credobyte
August 5th, 2009, 11:30 AM
HelloWorld in *almost* all know programming/scripting languages: http://roesler-ac.de/wolfram/hello.htm :D

Copernicus1234
August 5th, 2009, 11:42 AM
HelloWorld in *almost* all know programming/scripting languages: http://roesler-ac.de/wolfram/hello.htm :D

Thats actually worth a few minutes of browing. :)

The AMOS version got me nostalgia...and look at the Assembler-Z80-Console version of Hello world! And that even makes a bit of sense compared to the G-Code version that is just random letters to me.

Im glad we have come a long way since then. :)

credobyte
August 5th, 2009, 11:47 AM
This one owns them all :D

Byte Syze:

c7 3c 2a 3c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c
28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c
2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b
2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c
3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28
5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a
2b 2a 00 00 01 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 64 48 65 6c 6c 6f 2c 20 57
6f 72 6c 64 21 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Majorix
August 5th, 2009, 11:55 AM
Some database with different kinds of sourcecode written in different languages... that sounds quite vague.

There are several websites that host open source projects, such as SourceForge and Google Code, where you can find lots of source code written in lots of different languages.

And ofcourse the source code of almost all Ubuntu software is available.

I am terribly sorry for sounding unclear.

I was asking for URL's where I can find snippets of scripts, which I can study to get acquainted with the language the code is written in. Preferable languages are Python, Ruby, Java and C#.

cmay
August 5th, 2009, 12:05 PM
i use this for checking how functions is used in programs and such .
http://www.google.com/codesearch

Majorix
August 5th, 2009, 02:05 PM
i use this for checking how functions is used in programs and such .
http://www.google.com/codesearch

Looks promising.

Any other like that one?

I also came across a site called "Hot Scripts" while googling. Is it a good source?

Simian Man
August 5th, 2009, 02:15 PM
Majorix, I have to ask, are you trying to decide which programming language to learn or which to use for a certain task? Because if so, this is a horrible way to decide. A better way would be to post your project and/or goals and get recommendations from the programmers here.

If you are just curious, then disregard this :).

Majorix
August 5th, 2009, 02:29 PM
I don't think I quite understand that :confused:

.Maleficus.
August 5th, 2009, 02:34 PM
Launchpad (http://launchpad.net)
GitHub (http://github.com)
GoogleCode (http://www.google.com/codesearch)

lisati
August 5th, 2009, 02:35 PM
www.programmersheaven.com

Majorix
August 5th, 2009, 02:41 PM
Thanks guys!