There’s A Donald Trump Programming Language

If programming isn’t political enough for you, maybe you need to try a new language. How about TrumpScript, which lets you create code that the great Donald Trump would be proud to execute. If he could, you know, understand it.

Created at Rice Univeristy’s HackRice last weekend in just 20 hours, its makers claim that it’s “the programming language Trump would approve of. Just like he is making America great again, we hope our efforts will make programming great again.”

Based on Python, TrumpScript contains some unique features, as its creators explain:

  • No floating point numbers, only integers. America never does anything halfway.

  • All numbers must be strictly greater than 1 million. The small stuff is inconsequential to us.

  • There are no import statements allowed. All code has to be home-grown and American made.

  • Instead of True and False, we have fact and lie.

  • All programs must end with “America is great.”

Error messages — which presumably Trump would get a lot of himself given his understanding of technology — are mostly quotes taken from the man himself. Incorrect syntax, though, will see you being told that “Trump doesn’t want to hear it.”

TrumpScript follows in the fine footsteps of the Arnold Schwarzenegger.programming language of 2014, which was equally amusing. In ArnoldC, as it was called, every program had to start with “IT’S SHOWTIME” and end with “YOU HAVE BEEN TERMINATED.”

You can download everything you need to use TrumpScript over on GitHub. Good luck.

[TrumpScript via BoingBoing]

This article originally appeared in Gizmodo Australia


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments