Feta
Jump to navigation
Jump to search
Overview
Feta is a joke programming language created by Nicholas Smith as a glitch to the BBC question about false programming languages on 30 May, 2013. It contains only one instruction: "WRITE", that prints "H3110 W0R1D" in an external text file named "0WTPWT.txt". It was designed to be an April Fools Joke on the GlobalGameDevelopersForum site.
Syntax
Syntax is very simple: The one instruction allowed "WRITE".
Example
WRITE
Implementation
Zayne was here and this is his implementation
i = input("Enter Command: ")
if i != 'WRITE':
print("")
else:
file = open("0WTPWT.txt","w")
file.write("H3110 W0R1D")
file.close()
And, User:A was here and this is his implementation(in C++):
#include <bits/stdc++.h>
int main(){
freopen("0WTPWT.txt","w",stdout);
char code[1000];
scanf("%s",&code);
if(code=="WRITE")printf("H3110 W0R1D");
fclose("0WTPWT.txt");
return 0;
}
And... User:BadBoyHaloCat presents to you... Feta.js
const fsp = require('fs').promises;
(async () => {
let code = await fsp.readFile(process.argv[2], 'utf-8');
if (code.includes("WRITE")) await fsp.writeFile('0WTPWT.txt', 'H3110 W0R1D');
})();
Here is User:masalt's Feta implementation:
while True:
i=input(">> ")
if i=='WRITE':
file=open("0WTPWT.txt","w")
file.write("H3110 W0R1D")
file.close()