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

Python sucks

Name: Anonymous 2011-05-19 22:57

``If you can do exactly what you want with Python 3.x, great! There's a few downsides, such as comparatively limited library support and the fact that current Linux distributions and Macs are still shipping with 2.x by default, but as a language Python 3.x is definitely ready." - Python Official Website

They really go out of their way to try and apologize for a shitty language.  3.x is awful and NO ONE will ever adopt it.  Python is going to die when 2.7 becomes too old to be useful since Python is just a novelty language that represent an idea that will actually be polished and efficient at some point down the road.

Name: Anonymous 2011-05-21 0:35

Lisp

yoba
  -> Ns:["foo" "bar" "baz"]
  -> {-> "$(rand Ns)($([3,rand+1++"$(rand [y n] |> rand Ns :: r)"]
                       | infix "," | fold sconc))"}


C/C++

#include <stdio.h>
#include <stdlib.h>
#define p printf
#define r rand
char*g="foobarbaz";
char*h(){return(g+abs(r()%3)*3);}
int y(int v){for(int a=abs(r()%5)+3;a;z(++v),p(--a?", ":""));}
int z(int v){(r()%3==0&&v<=4||v==0)?p("%.3s(",h()),y(v),p(")"):p("%.3s",h());}
int main(){srand(time(0)),z(0);}



Python:

import sys,random
 
wordsL=3
words=['foo','bar','baz']
maxI=10
maxA=3
 
def shmjak(i):
 j=random.randint(0,wordsL-1)
 sys.stdout.write(words[j])
 if i<=maxI:
  k=random.randint(0,maxA)
  sys.stdout.write('(')
  for m in range(k-1):
   shmjak(i+1)
   sys.stdout.write(',')
  shmjak(i+1)
  sys.stdout.write(')')
 
shmjak(0)

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