201 reputation
16
bio website 127.0.0.1
location Myrtle Beach, South Carolina, United States
age 32
visits member for 2 years, 5 months
seen Mar 9 at 15:54

Recent php-src Work:

Recent PHP Projects:

  • Artax: Parallel non-blocking HTTP client (no cURL)
  • Amp: Asynchronous Multithreading in PHP (5.4+)
  • Auryn: IoC Dependency Injector

I studied Economics and worked as a securities broker before leaving to program all day. On a personal level, I aspire to Tiger-Woods-Esque levels of moral ambiguity in matters of the heart and fully endorse the D.E.N.N.I.S. system.

the github | the twitter | the PHP chat


Jul
16
awarded  Commentator
Jul
16
comment Is PHP actually a web framework?
Q: Why the F would I want a framework to impose its garbage IOC implementation on me? A: I wouldn't.
Apr
5
awarded  Yearling
Feb
25
awarded  Caucus
Oct
8
comment What algorithms can I use to detect if articles or posts are duplicates?
Also, before it was migrated from SO this was tagged [php], so you might check out php's native levenshtein function
Oct
8
comment What algorithms can I use to detect if articles or posts are duplicates?
There are many directions in which this kind of analysis can go. People write entire books on this sort of topic. If your goal is to determine "relative closeness" you really have little choice but to dig into what's called Natural Language Processing and Machine Learning. That's what computer scientists call it, but it's really just advanced statistical analysis. A good starting point might be looking at levenshtein distances, but "dumb" stats like word/sentence counts are likely going to do very little for you.
Jun
12
comment Which would be a better way to load data via ajax
I would say it really depends on how often you need multiple data points ... If you will frequently have multiple round-trip ajax calls it makes sense to load it all once. Also, unless you're talking about a sizable amount of data being returned from the Ajax call, you might as well go ahead and send it all at once.
May
14
comment Why is Global State so Evil?
@KonradRudolph The takeaway "negative" for a readonly global is it makes unit-testing much more difficult, just like constants. Rigorous, 100% coverage unit-testing almost entirely negates readonly globals as viable code inside your functions and methods.
May
11
awarded  Nice Answer
May
11
comment Why is Global State so Evil?
@ZweiSteinen By using Dependency Injection you pass values directly into the object via the constructor (preferably over setter methods) negating the need for any global state.
May
10
comment Why is Global State so Evil?
@Truth The alternative? Dependency Injection.
May
9
awarded  Teacher
Apr
5
awarded  Supporter
Apr
5
awarded  Autobiographer