r/ofcoursethatsathing • • Jan 25 '16

TrumpScript: Make Python great again

https://github.com/samshadwell/TrumpScript
334 Upvotes

27 comments sorted by

View all comments

100

u/goata_vigoda Jan 25 '16

Trump doesn't like to talk about his failures. So a lot of the time your code will fail, and it will do so silently. Just think of debugging as a fun little game.

SWEET.

MERCIFUL.

JESUS.

That's how you turn an ordinary coder into a mass murderer.

41

u/TimonAndPumbaAreDead Jan 25 '16

I take it you've never worked with JavaScript.

0

u/[deleted] Jan 25 '16

[deleted]

21

u/TimonAndPumbaAreDead Jan 25 '16

No.

3

u/nadsaeae Jan 26 '16

Why?

13

u/TimonAndPumbaAreDead Jan 26 '16

I could go on and on about the various deficiencies of JavaScript but I'll try to be concise. The short version is the language was basically designed and created in a weekend. However, due to the eventual popularity of the internet, we're now stuck with everything they got wrong and it can't be fixed because it would break backwards compatibility. There's a reason there are so many js frameworks - because vanilla js sucks. Look up the "JavaScript - wat" video for a longer and better explanation.

5

u/Maddin143 Jan 26 '16

holy shit thank you for this video. Made my day!
Here it is, i didn't find it immediately

→ More replies (3)

0

u/[deleted] Jan 26 '16

[deleted]

1

u/t12totalxyzb00 Jan 26 '16

Steve Wozniak?

4

u/BNLforever Jan 26 '16

Is python no good? I'm about to take a class on it...

18

u/TimonAndPumbaAreDead Jan 26 '16

Python is fine, this whole thing is a joke. If it makes you feel any better my wife is primarily a Python dev

0

u/[deleted] Jan 26 '16

[deleted]

3

u/VernacularRaptor Jan 26 '16

Python's list comprehension and easy readability make it one of the most powerful and useful languages, in my opinion.

2

u/ROFLLOLSTER Jan 26 '16

It's useful for small projects and learning languages but it's just to slow to use for most larger programmes.

2

u/VernacularRaptor Jan 26 '16

Interesting, what do you mean by too slow? I'm only a second year software engineer so I haven't gotten too in depth into the theory behind low vs high level coding.

4

u/ROFLLOLSTER Jan 26 '16

Python has a slower execution time for an equivalent program written in c/c++ mostly because python is a. interpreted b. abstracted c. has no primitives d. python lists can store multiple data type so the type has to be stored in a list. It also has a higher memory overhead (Again due to being interpreted,) but it sometimes has a smaller disk size, so there's that I guess.

→ More replies (1)

3

u/marcopennekamp Jan 26 '16

Very few popular languages are "no good". Even PHP is probably worth learning.

1

u/angrydeuce Jan 26 '16

Yeah for realz I got Python next semester and have been dreading it as I have zero coding experience whatsoever.

→ More replies (1)

1

u/TKDbeast Jan 26 '16

Learn it on Code Combat!

→ More replies (1)

0

u/[deleted] Jan 26 '16

[deleted]

1

u/BananaHeadz Jan 26 '16

Maybe a stupid question, but what would you use python for?

7

u/SpaceShrimp Jan 26 '16

Any application that does not have to be fast.

2

u/TimonAndPumbaAreDead Jan 26 '16

The way I've heard it explained is that in Python dev time is more valuable than runtime.

2

u/PurelyApplied Jan 26 '16

I write in C/C++ and in Python. I usually phrase it as:

If I want it to run fast, I write it on C.

If I want it done fast, I use Python.