Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Notably, this already starts dry.

A less dry one would look like

def make_hawaiian_pizza(): payload = { hwaiianCrust: "thin", redSauce: "tomato", cheese: "regular", ham: true, pineapple: true, toppings: ["ham"] } requests.post(PIZZA_URL, payload)

def make_pepperoni_pizza(): payload = { pepperoniCrust: "thin", crust: "thick", sauce: "tomato", cheese: "regular", toppings: ["pepperoni"] } requests.post(PIZZA_URL, payload)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: