Code

Started by Peace Alliance, February 25, 2008, 10:31:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Peace Alliance

nobody ever uses the code style, so how's PA sposed to style it?!?

testy mctest test. Check 1, 2, 3. I am a Teardrop, I am a Lion. Flight is not what you think it is, and health is an illusion. Forget the past. What did i just say! no seriously what did i just say? i forgot the past....

bjornredtail

Okay... Let us see here...

<html>
<!-- First we try some HTML -->
<head>
   <title>
        The Lords of Foo
    </title>
</head>
<body>
Fooo!!!
</body>
</html>



import java.lang.*;

public class foo
{
    //Okay, now for some Java
    private String foo;
    /**
    With some javadoc too
    This is the default constructor, BTW
    */
    public foo()
    {
         foo = new String("Yes, indeed this is a string");
    }

    public String getFoo()
    {
         return foo;
    }

    public static void main(String[] Args)
    {
          foo localFoo = new foo();
          System.out.println(localFoo.getFoo());
     }
}



#include <stdio.h>

//And now for some C

int main()
{
    while(1)
    {
          printf("Infinite loop\, very funny");
     }
     /* We all know C is awesome like that */
}


0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

bjornredtail

Awww... No Syntax highlighting....
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

The Lady Shael

~The Lady Shael Varonne the Benevolent of the Southern Islands, First Empress of Mossflower Country, and Commandress of the Daughters of Delor

RWLers, your wish is my command...as long as it complies with the rules.


Peace Alliance

Wow, C looks like the most confusing thing ever...

bjornredtail

Java... Ikkk... I particularly dislike that language. And to a lesser extent, object orientation in general.

Pity I don't know assembly, Peace :).
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

windhound

Hah..  have I got just the thing
old LC3 code...  maybe two years ago..  still had homework 1 on my university space

Line # (?) / Hex / Bin / Step # / ASM


(0000) 3000  0011000000000000 (   1)                 .ORIG x3000
(3000) 5260  0101001001100000 (   2)                 AND   R1 R1 #0
(3001) 5920  0101100100100000 (   3)                 AND   R4 R4 #0
(3002) 192A  0001100100101010 (   4)                 ADD   R4 R4 #10
(3003) E4FC  1110010011111100 (   5)                 LEA   R2 x3100
(3004) 6680  0110011010000000 (   6) LOOP            LDR   R3 R2 #0
(3005) 14A1  0001010010100001 (   7)                 ADD   R2 R2 #1
(3006) 1243  0001001001000011 (   8)                 ADD   R1 R1 R3
(3007) 193F  0001100100111111 (   9)                 ADD   R4 R4 #-1
(3008) 03FB  0000001111111011 (  10)                 BRP   LOOP
(3009) F025  1111000000100101 (  11)                 TRAP  x25

A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

bjornredtail

#7
A whole bunch o' numbers. And, yes, I don't know assembly. Windhound, are you a CPE?
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

windhound

Nayope
I'm EE, Electrical Engineering
and I'm fairly sure that those 11 lines are used to add two numbers together...
fun stuff
A Goldfish has an attention span of 3 seconds...  so do I
~ In the beginning there was nothing, which exploded ~
There are only 10 types of people in the world: Those who understand binary, and those who don't

The Lady Shael

Ew, I learned some of that stuff last semester.
~The Lady Shael Varonne the Benevolent of the Southern Islands, First Empress of Mossflower Country, and Commandress of the Daughters of Delor

RWLers, your wish is my command...as long as it complies with the rules.


bjornredtail

I'm finally taking my intro to systems class. Yay for assembly language. Not quite as useful for operation omnispam though.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!

Shadow

Omnispam was just owned by Shadow. So were all forms of coding.
<=holbs-.. ..-holbs=> <=holbs-..

bjornredtail

Nahhh... Op Omnispam would have much better luck at total pwnage if we had access to a simple declarative language known as SQL. PL/SQL would be nice too, but not necessary.
0==={=B=J=O=R=N=R=E=D=T=A=I=L==>
AKA, Nevadacow
First person to ever play RWL

"Program testing can be used to show the presence of bugs, but never to show their absence!"-Edsger W. Dijkstra

Visit http://frostnflame.org today!