Create a website shopping script in a fake language. Here mine:
create checkOutStart:
localize item
do.math(itemCost) = @itemTotal + @itemTax
if userCurrency(do.math) @itemCost > @userTotal
say "Sorry. You do not have sufficient funds to make this transaction."
else do checkOutEnd
end;
end;
create checkOutEnd:
say "Are you sure you want to make this transaction?" .function. "checkOutOption"
checkOutOption(userDefine) "Yes" . "No" # Creates two links: Yes(http://site.com/shop.ext?checkout=yes), and opposite.
if userDefine(yes)
do transactionScript
else return(url_referer)
end;
end;
create transactionScript
grab itemCost
if coupons = true
itemcost (substract(itemCost(couponAmount))) = new itemCost
else #1# too lazy to finish script
end;
There is a lot of shit missing from it, I know. Please refer to #1.
Name:
Anonymous2009-06-15 4:29
module ShoppingScript where
import ShopLib
main = ShopLib.performShopping
Name:
Anonymous2009-06-15 4:31
why not use a real language instead?
Name:
Anonymous2009-06-15 7:34
BILL
CONTAINS FIXED .2 TOTAL
ADDTOBILL PRICE
SET TOTAL SUM TOTAL PRICE
LLIBOTDDA
LLIB
ITEM
CONTAINS STRING NAME
CONTAINS FIXED .2 PRICE
PURCHASE
TELL "THANKS FOR BUYING THIS" NAME
ADDTOCART
ADDTOBILL PRICE
ESAHCRUP
METI
SHOPPINGCART
CONTAINS ARRAY ITEM ITEMS
CONTAINS BILL RECEIPT
ADDTOCART X
APPEND ITEMS X
TRACORDDA
TRACGNIPPOHS
SESSION
CONTAINS SHOPPINGCART CART
NOISSES
Name:
Anonymous2009-06-15 9:53
from paul_graham import [b]paul_graham[/b]
def make_shopping_site():
apply(paul_graham, LISP, shopping_site)
Name:
Anonymous2009-06-15 10:18
from paul_graham import [b]paul_graham[/b]
def make_shopping_site():
eval(apply(paul_graham, LISP, shopping_site))
Name:
Anonymous2009-06-15 10:19
from paul_graham importpaul_graham
def make_shopping_site():
eval(apply(paul_graham, LISP, shopping_site))
Name:
Anonymous2009-06-15 10:23
from paul_graham importpaul_graham
def make_shopping_site():
eval(`apply(paul_graham, LISP, shopping_site)')
from bbcode importbbcode_fail
def code_tag_failure():
eval(`apply(code_tag, bold_tag, post)')
Name:
Anonymous2009-06-15 14:12
from English importproper_spacing
def spacing_failure():
eval(```apply(proper_spacing, importbbcode_fail)''')
Name:
Anonymous2009-06-15 14:58
from CSS importcoloured_text
Name:
Anonymous2009-06-15 15:31
>>1
Um, would kind of help to know what the site is
Name:
Anonymous2009-06-17 6:16
no
Name:
Anonymous2009-06-17 9:39
check the price of what the shopper has selected;
if he wants to checkout, check card balance and write "not enough dollas" if checkout sum is greater than the balance, else write "purchased"; afterwards update the database with changed quatity numbers
WHILE LOOP A SWITCH OR BREAK OUT OF A word on the internet and just scribble a few weeks and I CORRUPTED MY FILESYSTEM JESUS CHRIST WHAT TEH f k DID IT DO loop if f then exit else exit .