r/programming • u/versesane • Apr 13 '10
Visiting card with python source code in it ...
http://www.uptosomething.in/weblog/?p=5032
Apr 13 '10
Qt is not an acronym. So, replace QT with Qt.
Your print statements are not legal syntax because you are using curly quotes instead of straight quotes.
1
u/versesane Apr 13 '10
Aware of it. The font I am using for the python code is displaying the quotes that way ... Shall pick up a different font resembling this one. Shall change the Qt text as well. Thanks for pointing out.
2
u/gosub Apr 13 '10
if __name__ == "__main__":instead of: def main():
2
u/versesane Apr 13 '10
i did think about it when designing. I wanted less text around the print statements. So I choose a simple def main(): ... Now that I think of it. I should have gone for something like def computerprogrammer():
1
1
u/cr3ative Apr 13 '10
The domain uptosomething.in just screams that it should actually have been uptosometh.in
;)
1
u/versesane Apr 13 '10
When i was booking it I did think about it. But I was like it would be over the top. uptosomething.in is wacko enough. :) ... Appreciate your comment.
1
u/zhensydow Apr 13 '10
I done something similar 2 years ago! But using Haskell, http://malcodigo.blogspot.com/2008/04/tarjeta-de-programador_15.html
1
u/versesane Apr 13 '10
just saw your post ... pretty cool ... what are the reactions from ppl who are not into programming ?
2
u/thwack Apr 13 '10
Missing commas after import. Hope you didn't get them bulk printed.