Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eamann
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
301.
▲
Securing Forms Without Captcha
(jumping-duck.com)
1 points
by
eamann
13y ago
|
0 comments
302.
▲
JavaScript Astrophysics
(eamann.com)
2 points
by
eamann
13y ago
|
0 comments
303.
▲
Plugin Review - Spam Free WordPress
(eamann.com)
1 points
by
eamann
13y ago
|
1 comments
304.
▲
WordPress Caching with Nginx and Redis
(eamann.com)
37 points
by
eamann
13y ago
|
23 comments
305.
▲
by
eamann
14y ago
WordPress is already going through a measured factoring approach. Themes were ported over from a mishmash of procedural calls into the WP_Theme object in version 3.4. Posts (and pages, custom post types, etc) were ported over from an assoc
306.
▲
by
eamann
14y ago
Considering Node can talk to MySQL - yes. Well, yes BUT. The "but" comes in when you talk about existing themes and plugins - some are much larger applications, and all are built in PHP. So to migrate, you'd need to reimplement both WordP
307.
▲
by
eamann
14y ago
Code review is a part of the theme repository, if you're talking about themes hosted on WordPress.org. Themes hosted elsewhere (ThemeForest, GitHub, etc) have no such oversight. Themes hosted on WordPress.org (the official repository) ha
308.
▲
Reader is Dead Long Live Reader
(eam.me)
1 points
by
eamann
14y ago
|
0 comments
309.
▲
by
eamann
14y ago
Obviously hasn't read the discussion here: http://stackoverflow.com/questions/1732348/regex-match-open-... RegEx is powerful, yes. But HTML (even though it's a standard) can be buggy, inaccurate, and difficult to expect. Some people, enc
310.
▲
1Password: Better and Worse for Personal Data Security
(eamann.com)
1 points
by
eamann
14y ago
|
0 comments
311.
▲
Don't Dequeue WordPress' jQuery
(eamann.com)
2 points
by
eamann
14y ago
|
1 comments
312.
▲
by
eamann
14y ago
In most other languages, the second form makes more sense. But jQuery is doing things under the surface that make the syntax change inconsequential. In my performance tests (Win 8, Chrome 25), the chained method actually performed faster
313.
▲
Distraction Free Reading Mode
(eamann.com)
1 points
by
eamann
14y ago
|
0 comments
314.
▲
by
eamann
14y ago
I've posted a follow-up to this that broadens the ideas of Singletons for general PHP use. Using abstract classes and inheritance, it's also possible to unit test the code contained within a Singleton. The follow-up is here: http://news.
315.
▲
Making Singletons Safe in PHP
(eamann.com)
2 points
by
eamann
14y ago
|
0 comments
316.
▲
by
eamann
14y ago
Which is why they should be used sparingly, if at all. I'm not advocating we go out and start making every class a singleton, just explaining how they do serve a purpose in PHP/WordPress development.
317.
▲
by
eamann
14y ago
It's not about defending PHP. PHP is an ugly, inconsistent language. It's a matter of pointing out why certain tools are used in certain environments.
318.
▲
by
eamann
14y ago
Nope, I'll upvote :-) I started my career as a .Net developer and still work a great deal with .Net (primarily C#) code. I use PHP for work because that's what WordPress is built on and, without rewriting the platform that powers a huge chu
319.
▲
by
eamann
14y ago
I agree. But remember, the article is specifically about singletons in WordPress , which is written in PHP, which is single-threaded.
320.
▲
by
eamann
14y ago
GOTO in a C/C++ world is actually a fairly efficient way to manage the exit points of your function. If you're carefully managing memory, putting all of your method cleanup code in one place and directing logic there with a GOTO is more ef
321.
▲
by
eamann
14y ago
Yes, it's sad. And no, I'm not a "wordpress" developer, I'm a WordPress developer who didn't properly proofread everything before publishing. You should probably take a lesson from that ... :)