I was asked what the advantage or disadvantage in the use of anonymous functions or inline (or onfly), used heavily in Javascript, and now with 5.3, also in PHP.
An inline function, or anonymous because he has not - in fact - a name, is a quick way to write some procedures, indenting tree sequences callback example. Almost all languages support functions of this writing, to limit each with its peculiarities and restrictions. They may also have different names and syntax details, such as the so-called blocks in Objective-C.
Archive January, 2012
Anonymous functions
Poll: CMS Software and Paid
WordPress Snippet: extract meta get_posts value with ()
Working with a Custom Post Type ( CPT ) is natural to use the internal functions of WordPress to view and filter the posts of this type. , risulta comodissimo poter creare loop personali sulle proprie tipologie di post. Whether using the get_posts() is that you create an object directly WP_Query , it's very comfortable to create loops on their personal types of posts. WordPress also allows for filters for personal tassionomie, on the count, order, progressing to meta data. Useful, in fact, is the process that allows you to specify the conditions where that kind of meta data and compare it with rules.
OS X: Keyboard and Memory
, comodissime per andare rispettivamente a fine e inizio riga. Two almost personal annotations, otherwise I forget them, especially the first one: loss of function with the combination CMD+freccia destra or CMD+freccia sinistra , respectively comfortable to go to the end and beginning of the line. I do not know if anyone has happened but it can happen for no apparent reason, that the above key combinations stop working! I realized as I wrote the code are one of the combinations used. Well, this "bug" seems to be linked to full screen applications; mode introduced with OS X Lion.
Bachi beginning of the year: WordPress and WPML get_page_by_path update ()
The year 2012 began with a few hours of deep-debugging because of two (known) bugs pretty annoying. , con la globale (e famosa) omonima istanza $wpdb . The first, among other things quite dated, present in the core of WordPress that relates to the method update() of the class wpdb , with the global (and popular) homonymous instance $wpdb . The defect appears when you try to update a field to NULL . Despite numerous complaints, the WordPress development team does not seem to find solution to the annoying problem. Indeed, to date, the only solution is to write the SQL for your account.







Latest Comments
Giovambattista Fazioli : @ kOoLiNuS: Hello, just placed. Unfortunately, the problem occurs on servers that have ...
kOoLiNuS : hello! we have reported that the latest "stable" for WP helps you ...
Gabriel : Hello, interesting article. I would need something similar but with some changes. In a ...
sebastian : Great share - thank you!
Subject : very helpful indeed! I tried it and it is just what I needed. Now I wonder how do I get ...