dmiladinov
Joined 15 years ago
Joined 15 years ago
macromaniac: "Patience, I'm still working on salad..."
> This article is for computer engineers who would like to have a high-level understanding of how the dual parity calculation works, without diving into all of the mathematical details.
I believe that is the value proposition for reading: gaining an understanding of RAID-6 parity calculation while glossing over the math-y bits.
Don't take IDEA local history as a replacement to version control, rather a supplement.
[TINSTAAFL][1], but what a functional programming paradigm takes away it replaces with brevity, concision, additional type safety, and greater opportunities for the compiler to restate your algorithms in a form more conducive to parallelization and concurrency.
[0]: http://c2.com/cgi/wiki?ExpressionProblem
[1]: http://en.m.wikipedia.org/wiki/There_ain't_no_such_thing_as_...
public function getTotal($tax)
{
$total = 0.00;
$callback =
function ($quantity, $product) use ($tax, &$total)
{
$pricePerItem = constant(__CLASS__ . "::PRICE_" .
strtoupper($product));
$total += ($pricePerItem * $quantity) * ($tax + 1.0);
};
array_walk($this->products, $callback);
return round($total, 2);
}
In other languages that have true closures, the anonymous function "closes over" the lexical scope in which it was declared.Spot on! What, oh what, would I ever do without my Keurig machine!!!
git commit -a -m "Insightful Commit Note" --date "2013-09-25 08:24:32"
Might also be worth mentioning the [difference between commit date and author date][1]Exile means to be away from one's home (i.e. city, state or country), while either being explicitly refused permission to return and/or being threatened with imprisonment or death upon return.
So he's probably not so much worried about whether or not he can return to the U.S., but rather what would happen to him when he did.
Thanks for clarifying!
Check out my github: https://github.com/danielmiladinov