Better HN
topnewbestaskshowjobs
Log inSign up

jblotus

132 karma · joined Jun 21, 2011 (15y ago) · 23 submissions

Submissions

comment 9y ago · link · parent

Here is a thread with some of our observations.

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

comment 10y ago · link · parent

Not sure what your statement means.

3.

How to sell the value of a developer community to your boss(jblotus.com ↗)

1 points · by jblotus · 11y ago · discuss

4.

The full story behind our "chinese democracy" leak(antiquiet.com ↗)

3 points · by jblotus · 12y ago · discuss

comment 13y ago · link · parent

just awesome

comment 13y ago · link · parent

interesting, for those of us who have been using apc for years.

7.

Simply scale with Nginx, Memcached, PHP-FPM and APC(jblotus.com ↗)

2 points · by jblotus · 13y ago · 2 comments

comment 13y ago · link · parent

ok i see your point. i conflated the terms function and closure in this case.

comment 13y ago · link · parent

after thinking about it for a while, I was misrepresenting what block scope actually was and removed those references in the post.

comment 13y ago · link · parent

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,

comment 13y ago · link · parent

thanks for the help

comment 13y ago · link · parent

i've also run into this, usually through double event binding

comment 13y ago · link · parent

well, functions close over scope no matter what you call them.

comment 13y ago · link · parent

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.

comment 13y ago · link · parent

thanks for reading

comment 13y ago · link · parent

or both for next level mode!

17.

Common JavaScript Gotchas(jblotus.com ↗)

125 points · by jblotus · 13y ago · 27 comments

comment 13y ago · link · parent

all the greats get criticized

19.

My Programming Heroes: Douglas Crockford(jblotus.com ↗)

5 points · by jblotus · 13y ago · 2 comments

20.

2013 Programming Podcasts for the New Year(jblotus.com ↗)

2 points · by jblotus · 13y ago · discuss

21.

First Impressions: Cloud9 IDE + PHP(jblotus.com ↗)

3 points · by jblotus · 13y ago · discuss