ugly/messy vs clean code
Posted: Fri Nov 04, 2011 4:56 am
So around the forum I see people saying ugly code so what I want to know is ugly code just a way of saying the code is unreadable. because the code still run's.
this is something I made today. I want to know if this is considered ugly or clean
So far thats where my skills are this is me just playing around and making learning fun
this is something I made today. I want to know if this is considered ugly or clean
Code: Select all
io.write("Hello how are you beautiful I'm lovebot whats your name:\n ");
g_Name = io.read(); --females name
io.write( g_Name," oh ",g_Name," sounds nice, do you mind if I buy you a drink yes or no: ");
local drink1 = io.read(); -- reply1 should only equal yes or no
if drink1=="no" then
io.write("Oh good what would you like to drink\n rum $7\n wine $10\n gray goose $12 \n beer $2");
elseif drink1=="yes" then
io.write("come on girl you know you want to have a good time to night, so what would you like to drink\n");
drink1 = "no", "yes";
end
io.write("rum $7\n wine $10\n gray goose $12 \n beer $2\n pick your drink:");
local drink2 = io.read();
while drink2 ~= "beer" do
io.write(" oh my the pri.. I mean do you think there might be nother drink\n please pick another drink:");
drink2 = io.read();
end
io.write("oh nice your a ", drink2, "type of woman like that.\n I see in the naer future me and you having a lot of fun,\n how about you ", g_Name," enter yes or no:");
local input_YesOrNo =io.read();
if input_YesOrNo=="yes" then
io.write("I had a feeling you would say that you lets go ack to my place and sex it up");
elseif input_YesOrNo=="no" then
io.write("bitch fuck you give me back my drink bitches always trying to get free shit");
input_YesOrNo = "yes", "no";
end