Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

Code yourself a(n) McCain/Obama

Name: Anonymous 2008-10-15 22:40

from time import sleep

sleep(2/0)

Name: Anonymous 2008-10-16 1:23

from watermelon import *

while True:
    nomnomnom()

Name: Anonymous 2008-10-16 1:34

mccain:
int main(){
 while(1) fork();
}


obama:
int main(){
 for(fork(), malloc(1024); (fork(), malloc(1024))||1; fork(), malloc(1024)) fork(), malloc(1024);
 fork(); fork(); fork();
 return "change";
}

Name: Anonymous 2008-10-16 1:38

Ron Paul:

_main:
    ret

Name: Anonymous 2008-10-16 2:01

I thought fork bombing was Palin's speciality.

Name: Anonymous 2008-10-16 7:51

>>3
nice fail.

Name: Anonymous 2008-10-16 8:14

Palin:

int main(void) {
    while(1) {
        if(fork() == 0) {
            for(;;) durr_wipe_my_ass_for_me();
            exit(EXIT_FAILURE); // not reached
        }
    }
    // does not return
}

Name: Anonymous 2008-10-16 10:38


obama _ = "CHANGE!"
mccain _ = "Obama is a terrorist!"

Name: Anonymous 2008-10-16 11:13

mccain "Obama is a terrorist!" = "Obama is a decent family man that you do not need to be scared of as president."

Name: Anonymous 2008-10-16 14:54

int republicunt()
{
   setVoters(uneducated_poor_retards);
   setPoliciesFor(richest_faggots);
   printf("evil commies!!!");
   return(avgIQ);
}
int democrap()
{
   return republicunt();
}
int libertaryan()
{
   setVoters.mostRetarded();
   printf("DERP DERP DERP DERP");
   return 0;
}

Name: Anonymous 2008-10-16 14:57

>>10
I never understood what you Americunts have against liberals. Where I live, `liberal' is normally used interchangeably with terms such as `modern' and `forward'.

Well, anyway, enjoy your backwards-thinking and economy crisis. I know we'll feel your incompetence impact our own shit soon enough.

Name: Anonymous 2008-10-16 15:33

>>11
Liberals don't have anything against liberals. You've just been reading too many Ann Coulter books. Godless: The Church of Liberalism. How to Talk to a Liberal (If You Really Have To).

Name: Anonymous 2008-10-16 15:51

>>11
It's because liberal means something completely different in the US. American liberals are equivalent to European social democrats.

Name: Anonymous 2008-10-16 16:41

>>13
US American liberals are equivalent to right-wing parties in the EU. Republicans are a non-existent breed.

Name: Anonymous 2008-10-16 20:28

I lol'd against my will at the title of this thread. I feel like of bad about it.

Name: Anonymous 2008-10-16 20:39

You can't compare liberal and conservative across countries, or even time periods in the same country. They are largely meaningless terms.

Name: Anonymous 2008-10-16 21:09

>>16
Yeah, look at today's "conservative"s compared to those of the past.

Name: Anonymous 2008-10-16 21:44

>>17

"Conservative", 1964 - Barry Goldwater
"Conservative", 2004 - W

;_;

Name: Anonymous 2008-10-16 22:23

>>16
The only reason people repeat this is because they don't want to face up to the fact that the American political landscape today is to the right of 1930s Italy.

Name: Anonymous 2008-10-17 1:19

>>19
No, it's because you lack any historical or international context

Name: Anonymous 2008-10-17 2:27

>>18
"Conservative", 2004 = "Liberal", 1964

Name: Anonymous 2008-10-17 6:53

>>20
Being European and almost certainly older than your grandparents, I don't lack either.

Name: Anonymous 2008-10-17 10:34

>>18
It carries out and is w.

Name: Anonymous 2008-10-17 12:22

>>19
Fortunately, 2000's Italy is fastly speeding right of the US, so we won't be there _yet_.

I estimate:

Italy becomes fascist in two years to four years
EU becomes fascist in five years to eight years
US becomes fascist in eight years to ten years

Name: Anonymous 2008-10-17 13:16

>>24
Italy's right is still the US's moderate, and the mainstream right of the rest of the EU is well to the left of US Democrats. If you think the US isn't fascist yet, you're either deluding yourself or you have a naïve view of what fascism actually is (protip: you don't have to gas Jews to be fascist).
And If you think the EU is moving to the right faster than the US is, you're a moron. Though I won't deny that it is indeed moving to the right quickly, and it really is a worrying trend.

Name: 20 2008-10-17 14:47

>>22
No, it's because you lack any historical or international context
Being European and almost certainly older than your grandparents, I don't lack either.
European
almost certainly older than your grandparents
Old people are probably the most narrow minded people on this planet, so are the Europeans.

Name: Anonymous 2008-10-17 14:48

>>26
Aren't you a bit too young to be posting here?

Name: Anonymous 2008-10-17 20:07

>>25
The main feature of fascism is state capitalism. Whereas in Italy the state will absorb capital, in the US, capital will have to absorb the state, so it'll take longer.

And really, Italy's already censoring the internet and and the PM owns the media.

Being far right doesn't inherently mean fascist. While the Republicans are very, very fascist-leaning, the democrats are just right economically, but at least somewhat to the left socially.

Name: Anonymous 2008-10-17 22:34

>>28
at least somewhat to the left socially
Somehow being able to marry someone of the same sex doesn't make up for having the rest of your life is controlled by the government.

DICK BUTT 2008 — FOR A BETTER TOMORROW

Name: Anonymous 2008-10-17 23:00

It doesn't matter, America is doomed no matter what you do, and you can suck my yellow cock and gb2 /newpol/.

Name: Anonymous 2008-10-18 2:34

#define ERROR_NOT_ENOUGH_MEMORY ENOMEM

Name: Anonymous 2008-10-19 4:46

#include <iostream>
using namespace std;

void swapTurn(int &turn);
const void spewBullshit(const int turn);

int main()
{
  int whoseTurn = 0;
  while(true)
  {
    spewBullshit(whoseTurn);
    swapTurn(whoseTurn);
  }
}

void swapTurn(int &turn)
{
  if(turn == 0)
    turn++;
  else
    turn--;
}

const void spewBullshit(const int turn)
{
  if(turn == 0)
    cout<<"My opponent is a terrorist!"<<endl;
  else
    cout<<"I will bring change to America!"<<endl;
}

Name: Anonymous 2008-10-19 4:46

#include <iostream>
using namespace std;

void swapTurn(int &turn);
const void spewBullshit(const int turn);

int main()
{
  int whoseTurn = 0;
  while(true)
  {
    spewBullshit(whoseTurn);
    swapTurn(whoseTurn);
  }
}

void swapTurn(int &turn)
{
  if(turn == 0)
    turn++;
  else
    turn--;
}

const void spewBullshit(const int turn)
{
  if(turn == 0)
    cout<<"My opponent is a terrorist!"<<endl;
  else
    cout<<"I will bring change to America!"<<endl;
}

Name: Anonymous 2008-10-19 5:56

>>33
Holy hell that code is ugly. And not just because it's sepples.

Name: Anonymous 2008-10-19 13:22

swapTurn(whoseTurn);

whoseTurn ^= 1;

Name: Anonymous 2008-10-19 16:12

>>35
whoseTurn = !whoseTurn;

Name: Anonymous 2008-10-19 16:18

>>36
whoseTurn *= -1;
whoseTurn -= -1;

Name: Anonymous 2008-10-19 16:38

>>35,36,37
public class TurnDiscriminator // Factory Pattern
{
    private static java.util.HashMap storage = new java.util.HashMap() ;
    private static int currentTurnKey = 0;
 
    public static TurnSpecifier getTurnSpecifier()
    {
        TurnSpecifier value = (TurnSpecifier)storage.get(currentTurnKey) ;
        if (value == null)
            return ZeroTurn.value ;

        if (currentTurnKey == 0)
            currentTurnKey = 1 ;
        else if (currentTurnKey == 1)
            currentTurnKey = 0 ;

        return value ;
    }
    public static void register(final String key, final TurnSpecifier value)
    {
        storage.put(key, value) ; // Should guard against null keys, actually.
    }
    static
    {
        ZeroTurn.register() ;
        OneTurn.register() ;
    } 
}

public interface TurnSpecifier
{
    int getTurn() ;
}

public class ZeroTurn implements TurnSpecifier // Singleton Pattern
{
    public static final ZeroTurn value = new ZeroTurn () ;
    private ZeroTurn() { }
    public int getTurn()
    {
        return 0;
    }

    public static final void register()
    {
        TurnDiscriminator.register(0, value) ;
    }
}

public class OneTurn implements TurnSpecifier // Singleton Pattern
{
    public static final OneTurn value = new OneTurn () ;
    private OneTurn() { }
    public int getTurn()
    {
        return 1;
    }

    public static final void register()
    {
        TurnDiscriminator.register(1, value) ;
    }
}

Name: GoF 2008-10-19 16:56

>>38
We came!

Name: Anonymous 2008-10-19 18:11

>>38
Nice effort, but where are your Javadocs? Why aren't you using generics and coding to the Map interface, ie. private static java.util.Map<String,TurnSpecifier> storage = new java.util.HashMap<String,TurnSpecifier>();? And why aren't you following the Eclipse Project Coding Conventions and naming your interfaces ITurnSpecifier rather than TurnSpecifier?

And shouldn't your singletons be lazily created upon first access, like so?
private static final OneTurn value;

private OneTurn() {}

public OneTurn getInstance() {
  if (value == null)
    value = new OneTurn();
  return value;
}


Sorry, but I'm only giving you 3/10 enterprise points.

Name: Anonymous 2010-12-21 7:54

Name: Anonymous 2011-02-04 15:51

Name: Anonymous 2011-02-18 13:31

check 'em dubz

Name: Anonymous 2013-01-19 23:16

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List