
During the 2016's U.S. presidential candidate campaigns, a team of coders has released a new library on Github that contains a programming language made to tribute Donald Trump, the president candidate from Republican Party. The team named it "TrumpScript."
The language was created by junior computer science majors Sam Shadwell, Chris Brown and Dan Korn at a Rice University "HackRice " hackathon. What the programming language does, is to mimic, think and act like Donald Trump.
As for its core, the programming language is based on Python which is considered by many one of the languages good for beginner coders as their introduction to the world of programming languages. But the team added some particular syntax and rules.
Like for example, a mistake in coding will give you a quote (criticism) from Trump instead of typical error message. Another example is the "True" or "false" messages that are replaced with "fact" or "lie."
Below is a complete list of its features from its GitHub page:
- 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
TrueandFalse, we havefactandlie. - Only the most popular English words, Trump's favorite words, and current politician names can be used as variable names.
- Error messages are mostly quotes directly taken from Trump himself.
- All programs must end with
America is great. - Our language will automatically correct Forbes' $4.5B to $10B.
- In its raw form, TrumpScript is not compatible with Windows, because Trump isn't the type of guy to believe in PC.
- The language is completely case insensitive.
- If the running computer is from China or Mexico, TrumpScript will not compile. We don't want them stealing our American technological secrets.
- Warns you if you have any Communists masqeurading as legitimate "SSL Certificates" from China on your system.
- Won't run in root mode because America doesn't need your help being great. Trump is all we need.
Because the programming language is released on GitHub, the community is joining in to contribute to its development. But user be warned: "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."
To code in TrumpScript, programmers need to write in malformed sentences consisting of only pre-approved words because the team behind it has stripped out the remaining. They only include a small number of logical operators which are also used in other programming languages.
TrumpScript takes its venture as a programming language based on Python, inspired by Trump, but doesn't take Python as an ease of reference.
TrumpScript is "the programming language Trump would approve of. Just like he is making America great again, we hope our efforts will make programming great again," said Sam Shadwell.