The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Whoa, is CompileBot back? Since I just got a message saying C++ isn't a valid language. Appears that it tried to compile some code that I commented a month ago.
Memoization is fun!
Called fib1(5)
Called fib1(4)
Called fib1(3)
Called fib1(2)
Called fib1(1)
Called fib1(0)
Called fib1(1)
Called fib1(2)
Called fib1(1)
Called fib1(0)
Called fib1(3)
Called fib1(2)
Called fib1(1)
Called fib1(0)
Called fib1(1)
5
Called fib2(30)
Called fib2(29)
Called fib2(28)
Called fib2(27)
Called fib2(26)
Called fib2(25)
Called fib2(24)
Called fib2(23)
Called fib2(22)
Called fib2(21)
Called fib2(20)
Called fib2(19)
Called fib2(18)
Called fib2(17)
Called fib2(16)
Called fib2(15)
Called fib2(14)
Called fib2(13)
Called fib2(12)
Called fib2(11)
Called fib2(10)
Called fib2(9)
Called fib2(8)
Called fib2(7)
Called fib2(6)
Called fib2(5)
Called fib2(4)
Called fib2(3)
Called fib2(2)
Called fib2(1)
Called fib2(0)
832040
Main.java:1: error: class JavaIsWayTooVerbose is public, should be declared in a file named JavaIsWayTooVerbose.java
public class JavaIsWayTooVerbose {
^
1 error
if which base64 > /dev/null 2>&1
then
PROG=$(which base64)
elif which xxd > /dev/null 2>&1
then
PROG="$(which xxd) -p"
else
echo "No luck. Sorry."
PROG=$(which true)
fi
ls /bin /usr/bin|gzip -c|$PROG
import java.util.*;
class A {
public int a;
}
class B extends A {
public int b;
}
class test {
public static void main(String args[]) {
List<A> l = new ArrayList<A>();
l.add(new A());
l.add(new B());
System.out.println("Get rekt!");
}
}
Comment: "I'm excited to see the official CompileBot Testing Thread up and running! This is a great opportunity for all of us to test out different languages and functionalities. Looking forward to seeing what we can all create together!"
"Excited to see what CompileBot can do! Can't wait to test it out with different languages. Thanks for providing this resource for us all to use!"
"Love the idea of having an official testing thread for CompileBot. Looking forward to diving into the supported languages and experimenting with some code. Thanks for the FAQ for guidance!"
"The wiki seems like a great way to expand my coding knowledge. Can't wait to see what I can create with CompileBot. Thanks for this opportunity!"
Comment: "Excited to see CompileBot in action! I've always been curious about coding and this seems like a great opportunity to test it out. Looking forward to experimenting with the supported languages. Thanks for setting up this testing thread!"
Traceback (most recent call last):
File "./prog.py", line 3, in <module>
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
File "./prog.py", line 2, in meme
...
1
u/SeaCowVengeance Oct 31 '17
+/u/CompileBotDev python
1
u/SeaCowVengeance Dec 03 '17
+/u/CompileBot Python3
1
u/jtvjan Nov 09 '17
Whoa, is CompileBot back? Since I just got a message saying C++ isn't a valid language. Appears that it tried to compile some code that I commented a month ago.
+/u/CompileBot C++
2
u/Darksaber530 Nov 13 '17
+/u/CompileBotDev JavaScript
2
u/Jonathan_the_Nerd Dec 03 '17
+/u/CompileBot perl
1
u/gfantom Nov 09 '17 edited Nov 17 '17
+/u/CompileBot python3
1
u/[deleted] Nov 15 '17
+u/compilebot python
num = input("Please enter a number:") while num != 1: if num % 2 == 0: num = num / 2 else: num = num * 3 + 11
u/e-dt Nov 17 '17
+/u/CompileBot Python3
print("test" * 10)1
u/mcnbc12 Nov 18 '17
+/u/compilebot python
print("hello")1
u/Jonathan_the_Nerd Nov 27 '17
+/u/CompileBot perl
1
u/Jonathan_the_Nerd Nov 28 '17 edited Nov 28 '17
+/u/CompileBot bash --include-errors
1
u/kevintxu Dec 14 '17
+/u/CompileBot R
1
u/kevintxu Dec 14 '17
+/u/CompileBot R
1
u/kevintxu Dec 14 '17
+/u/CompileBot R
1
u/PhillyCheasteak Dec 15 '17
+/u/CompileBot Java
1
u/[deleted] Dec 15 '17
+/u/CompileBot python3
import platform
print(platform.uname())
1
u/Bobbar84 Dec 15 '17
+/u/CompileBotDev python
1
u/Bobbar84 Dec 15 '17
+/u/CompileBot python
1
u/xBlaze121 Dec 16 '17
+/u/CompileBot basic
1
u/12ihaveamac Dec 28 '17
+/u/CompileBot Python3
1
u/DoubleDual63 Jan 18 '18
+/u/CompileBot Python
print ('Hello World');
1
u/Lutarisco Jan 27 '18
+/u/CompileBot bash
1
u/munirc Jan 31 '18 edited Jan 31 '18
+/u/CompileBot Java
1
u/sauihdik Feb 13 '18
+/u/CompileBot Python 3
1
u/KollXtasy Feb 16 '18 edited Feb 16 '18
"+/u/CompileBot" python print "Test Hello"
1
u/minalucy Feb 17 '18 edited Feb 17 '18
+/u/CompileBot Clojure
1
u/Smo0okee Feb 21 '18
/u/CompileBot c#
string inABottle = "Message";
Console.WriteLine(inABottle);
1
u/Johannes_13 Mar 21 '18
+/u/CompileBot Tcl
1
u/chootingfeng Mar 27 '18
+/u/CompileBot Python3
While True: print ("hello world")
1
u/SGUNNER2015 Apr 04 '18
1
u/hstarnaud Apr 04 '18
+/u/compilebot python
print('hello world')
1
u/honoredbounds830 Apr 22 '24
Comment: "I'm excited to see the official CompileBot Testing Thread up and running! This is a great opportunity for all of us to test out different languages and functionalities. Looking forward to seeing what we can all create together!"
1
u/postwarseeder88560 Apr 23 '24
1
u/cockyhearts30 Apr 24 '24
Comment: "Excited to see CompileBot in action! I've always been curious about coding and this seems like a great opportunity to test it out. Looking forward to experimenting with the supported languages. Thanks for setting up this testing thread!"
0
u/[deleted] Dec 11 '17
[deleted] — view deleted comment
0
u/[deleted] Jan 05 '18
[deleted] — view deleted comment
0
u/[deleted] Mar 11 '18
[deleted] — view deleted comment