283 karma · joined Mar 25, 2017 (9y ago) · 120 submissions
comment 2y ago · link · parent
But there was! That bet started in 2007, and 2008-2009 saw the biggest percentage drop in the S&P 500 in decades with the GFC. We're talking down to levels last seen in 1996, at the worst of it in March 2009.
comment 3y ago · link · parent
I still regret my roughly ten-year diary hiatus from 1985-1995, losing the bulk of my formative high school/college years in the process. Because as I've grown older, and those memories become more and more distant, I've lost a lot of the day-to-day detail, trivial though it may have been, of my past.
comment 3y ago · link · parent
Sure! I've seen 19 of the 42 films you counted as being made between 1920-1945, and I'd say the overwhelming majority of those 19 definitely still hold up. Are you seriously telling me Double Indemnity (1944), City Lights (1931), Duck Soup (1933), and Casablanca (1942) are only fit for consumption by film students? If so, I'd say "lucky film students!"
comment 4y ago · link · parent
comment 5y ago · link · parent
Many C/C++ compilers special-case printf, and can actually catch some printf format string problems at compile time. For example, gcc 5.4.0 and msvc 19 warned about both of the dodgy printf usages in your example (the type mismatch and the wrong number of arguments).
comment 5y ago · link · parent
# hash
my %a = ( 'one' => 1, 'two' => 2 );
my %b = %a;
$b{ 'two' } = 99;
# prints 2
print $a{ 'two' }, "\n";
# reference to hash
my $a = { 'one' => 1, 'two' => 2 };
my $b = $a;
$b->{ 'two' } = 99;
# prints 99
print $a->{ 'two' }, "\n";comment 6y ago · link · parent
Call me crazy :), but I count this as a pro for perl! It makes thinking about data structures in perl very "regular" for me.. there's a few rules to learn, but then I find it simple to construct (or de-construct) nested data structures while applying those rules. As opposed to other scripting languages, where the difference between "value" and "reference" frequently seems to be more hidden from sight...
comment 6y ago · link · parent
Does anyone actually use MATLAB just for the "MATLAB" part of it? Where I work, it's the Simulink part that's locked us in... I'm still not sure how MATRIXx withered away and gave Mathworks free reign in the control systems design space...
comment 6y ago · link · parent