3 ms·
not necessarly. First of all, this function pizza(boolean pepperoni, boolean bacon, boolean mushroom, boolean artichoke) breaks down when you want to add
by peoplefromibiza 5y ago
not necessarly.
First of all, this
function pizza(boolean pepperoni, boolean bacon, boolean mushroom, boolean artichoke)
breaks down when you want to add ham, potatoes and sausages to the pizza.
Secondly, you can optimize for the common case:
fn pizza() # -> default pizza e.g. margherita
fn pizza(list_of_ingredients) # -> your custom pizza
if you we are talking of simple functions and not more complex patterns, such as piping, in Elixir I would do
pizza |> add_ham |> add_mushroom |> well_done
when using boolean parameters you are also passing down a lot of useless informations (a pizza with pepperoni would include 3 false just to remove the ingredients from the pizza and only one true) and confining yourself to a fixed set of options, that could possibly also represent an impossible state.
- stephenr 5y agoWhat kind of monster puts potatoes on a pizza?
- PretzelPirate 5y agoI love potatoes on pizza and order it at multiple pizza places. They add flavor and creaminess. The secret is to cook the potatoes properly and not just throw some french fries on the pizza.
- peoplefromibiza 5y agoYou don't know what you're talking about :) In the image: pizza with potatoes, a typical roman recipe https://i0.wp.com/www.puntarellarossa.it/wp/wp-content/uploads/2014/09/copertina-ok1.jpg https://i0.wp.com/www.puntarellarossa.it/wp/wp-content/uploa...
- stephenr 5y agoI don't care who invented it. It sounds fucking terrible. You might as well put some mashed potatoes in your rice and some pasta in a sandwich while you're at it. It's like someone said "what type of carbs would you like with this meal" and the answer was "yes".
- peoplefromibiza 5y ago> I don't care who invented it. It sounds fucking terrible. Sorry, but why should people care about what sounds terrible to you? > put some mashed potatoes in your rice and some pasta in a sandwich while you're at it If you weren't too obsessed with yourself, you'll know that that pasta actually exists, it's called "pasta e patate" and someone has put it in a sandwich for sure... there is also a very popular variant made of pasta, potatoes and mussels. > It's like someone said "what type of carbs would you like with this meal" and the answer was "yes". It's like someone asked you "what are you first World problems" and your answer was "yes" The recipe I'm talking about come from Italian rural tradition, when people were poor and carbs were the only thing they could afford to eat to keep being alive, not a privileged people's self inflicted fictional problem. Sorry for the brutal honesty. But you anglophones are not qualified to judge other culture's food. Your food is usually terrible.
- stephenr 5y ago> Sorry, but why should people care about what sounds terrible to you? I never asked you to care what sounds terrible to me. Opinions are like assholes. Everyone has one, most are full of shit, and I don't really care if you don't like mine. If you supposedly don't care what I think, why bother trying to tell me my opinion is wrong? You can't have it both ways. > you weren't too obsessed with yourself, you'll know that that pasta actually exists Ok sure buddy. It's totally on me that a meal that may consist of entirely carbs is not common/popular outside of Italy. Totally my fault. > It's like someone asked you "what are you first World problems" and your answer was "yes" Eating a diet of just carbs is literally not a first world problem, it's a 3rd world problem because people can't afford (or can't adequately store) proteins, fresh vegetables etc. > when people were poor and carbs were the only thing they could afford to eat to keep being alive, not a privileged people's self inflicted fictional problem. People have eaten much worse sounding things than your double-carb special, no doubt. The difference is - you're bollocking on like it's a perfect meal, and the idea that it doesn't sound appealing is apparently insulting to you. Who could have possibly ever foreseen that a dish made out of necessity because people literally had nothing more than two kinds of otherwise bland starchy carbohydrates, would not seem appealing when other options are available? An opinion isn't brutal honesty bub. You have one, I have one. The difference is I am well aware that mine is an opinion. Good job on the generalisations though. "the food of half a billion people is usually terrible, here come try some carbs on carbs.".