Hacker News new | ask | show | jobs
by peoplefromibiza 1740 days 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.
1 comments

What kind of monster puts potatoes on a pizza?
You 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/uploa...

I 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".

> 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.

> 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.".

> why bother trying to tell me my opinion is wrong?

Simple. Because you started it.

> 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

Exactly it's totally your fault for being ignorant.

Pasta/rice with potatoes it's common in many "not born yesterday" cultures in places like China, India, Africa, not exactly a small percentage of the World population.

> would not seem appealing when other options are available?

You're still talking out of ignorance.

There were a lot of other options. Meat, for example, was common back then and of higher quality than today, but meat was sold for money, because rich people loved it.

> , it's a 3rd world problem because people can't afford (or can't adequately store) proteins, fresh vegetables

complaining about carbs it's a fictional problem white privileged people invented to feel special.

So, yes, it's a first World problem.

Also: I've said poor, not 3rd World, which, BTW, has been changed to developing countries.

The fact that American pilgrims, that were poor, haven't developed a balanced diet and starved to death or due to nutritional deficiencies, says a lot about the terrible diet they had back home and nothing about other cultures that did, at the same time, being equally poor.

Don't try put words in my mouth, please.

> you're bollocking on like it's a perfect meal

See?

You can't handle the truth.

I've only said you don't know what you're talking about.

Never said anything about the quality.

I, for example, don't eat pasta with potatoes but I do eat pizza and potatoes.

And am not a "monster".

> The difference is I am well aware that mine is an opinion

But you aren't aware that your opinion is also wrong, so technically you are making a mistake, I told you it, but don't wanna learn.

Tell me you come from a British colony without telling me.

> "the food of half a billion people is usually terrible, here come try some carbs on carbs."

Yes, exactly.

It is so terrible that they usually eat other culture's food.

You don't regularly eat haggis, Which is, BTW, sheep inside sheep, or shepherd’s pies, fish and chips, bangers and mash ..., do you?

I 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.