HNHacker News
TopNewBestAskShowJobs

jblotus

132 karma · joined June 21, 2011

submissionscomments
jblotus··on Ask HN: Is anyone else seeing failures in AWS Elasticbeanstalk deployments?
Here is a thread with some of our observations.

https://forums.aws.amazon.com/thread.jspa?threadID=261421&ts...

jblotus··on Your Coffee Shop Doesn’t Use Two-Phase Commit [pdf]
Not sure what your statement means.
jblotus··on How I Fired Myself
just awesome
jblotus··on Simply scale with Nginx, Memcached, PHP-FPM and APC
interesting, for those of us who have been using apc for years.
jblotus··on Common JavaScript Gotchas
ok i see your point. i conflated the terms function and closure in this case.
jblotus··on Common JavaScript Gotchas
after thinking about it for a while, I was misrepresenting what block scope actually was and removed those references in the post.
jblotus··on Common JavaScript Gotchas
author here.

<?php $a = 1; /* global scope */

function test() { echo $a }

test();

in javascript, $a would be 1 but in PHP it is undefined and won't produce output,

jblotus··on Common JavaScript Gotchas
thanks for the help
jblotus··on Common JavaScript Gotchas
i've also run into this, usually through double event binding
jblotus··on Common JavaScript Gotchas
well, functions close over scope no matter what you call them.
jblotus··on Common JavaScript Gotchas
author here, it wasn't about hiding private variables. i was demonstrating using closures to avoid global namespace collisions which i think is generally a big problem for beginners.
jblotus··on Common JavaScript Gotchas
thanks for reading
jblotus··on Common JavaScript Gotchas
or both for next level mode!
jblotus··on My Programming Heroes: Douglas Crockford
all the greats get criticized