C++ Futures: Lambda Functions
555982
Like the Lambada, only different Column The use of âlambdaâ originates from functional programming and lambda calculus, where a lambda abstraction defines an unnamed function. Lambda functions or Lambdas in C++ are one of the more interesting things to look forward to in the next C++ standard; giving us the ability to treat functions as first class objects at last; composing them inline and treating them as class objects. Up until now we've scraped by with pointers to functions, and various libraries like Boost Lambda, both of which approaches suck.â¦
727142
On the Metapundit.net site, there's a new (long) entry that takes a look at one of the programming styles, functional programming, and checks into its support in PHP. Unfortunately, it's mostly a swing and a miss.   I should just get this straight right off the bat: you can't really do much functional programing in PHP. Functions are not first class citizens and the equivalent of passing functions around is passing around strings or arrays and relying on convention. No really.   He goes on by illustrating the point that PHP can do this sort of thing but only up to a point. Once you start to get into anonymous functions and moving past things like the array_map function, you start to loose a foothold. The create_function function allows for a bit more flexibility, but still doesn't fulfill the requirements needed for full support.
104131
There's a method to finding tomorrow's home runs.
627711
By Sarah Watson, The News & Advance, Lynchburg, Va.  Feb.
584228
In a new tutorial on the Developer.com website today, they explore the difference between (and the benefits and disadvantages of) the singleton pattern versus threading in a PHP application.   Although you probably could address some [of these] issues with the judicious use of synchronized blocks, do not overlook the utility of the ThreadLocal class. In this article, I will demonstrate the risk of not accounting for Threads when using a singleton pattern and show how simple it is to address.   They start with the creation of a ThreadLocal class, one that allows the developer to communicate with the threads, and its usage. In contrast, they also create the Singleton class, showing the creation method of multiple objects of the same type.   They do, however, point out an issue that the threaded method has - unreliable results. Help is on the horizon, though, in the form of a HelperFactory class to manage the connections a bit more efficiently.
275619
Travis Swicegood is teasing us with some output from a script in his latest blog post:   So my free time of late (what there is of it) has been spent on a project that's getting really close to v0.1 release. In other words, its first functional release. If you've ever run a test using the PEAR installer or know what a .phpt file looks like, you might be able to guess what I've been up.   Keep an eye on his blog for more information on his "secret project".
539271
Terry Chay, a popular speaker at many of the PHP conferences and photog to the geek chic crowd in San Francisco, will be speaking at the upcoming PHP Meetup for the SF PHP group. He'll be giving a talk titled "OOps! The PHP Fear and Loathing Guide to OO Design".   How does the PHP developer in the trenches create powerful object-orientation code? By doing what the PHP's architects did, of course: cherry picking the most pragmatic of OOP principles and patterns! This talk is targeted at the PHP developer who has basic knowledge of PHP OOP syntax but wants to find out where OOP principles can fit into a program.   If you'd like to attend, head over to the meetup page for the event and let them know you're coming. It'll be happening at the CNet Network offices February 7th @ 7pm.
413172
Mike Lively is happy about one thing - that late static binding (definition) has been committed and will be included with PHP 5.3. Unfortunately, he has a downside too:   The good news is late static binding has been introduced into head and looks like it will be merged into 5.3 before it is released. The horrible news is I really don't think the patch went as far as it needs to.   He talks about the original intention of the functionality (flexible inheritance for static methods/properties/constants) and how it was implemented, but with one small issue - that "static will ALWAYS return the 'resolved' name of the class used to call the current function". He illustrates with a code example showing an extended class returning a static property.   He also mentions two suggestions to help fix this issue:   setting the behavior of parent:: such that it forwards the calling class through the next function call. introducing another scope [...] using a new keyword so parent:: could remain the same
750843
By Scott Streater, Fort Worth Star-Telegram, Texas  Feb.
124850
Timore per retrocessione e sfide per futuro saranno i temi
124078
I think I've mentioned this before but on Saturday Feb 12th I'll be talking  about the Jakarta FeedParser at CodeCon  in San Francisco.  I published an outline  of the talk on the FeedParser wiki.  I'm hoping to have a 0.5 release done before then and havepotentially another suprise in the works.
298089
Latest PEAR Releases:Console_CommandLine 0.1.0Services_Amazon 0.7.1Testing_Selenium 0.4.2HTML_Table 1.8.2Structures_DataGrid_Renderer_Pager 0.1.3Structures_DataGrid_Renderer_HTMLTable 0.1.4Structures_DataGrid_DataSource_MDB2 0.1.11Structures_DataGrid_DataSource_DBQuery 0.1.11Structures_DataGrid_DataSource_XML 0.2.0Structures_DataGrid_DataSource_DBTable 0.1.7Structures_DataGrid_DataSource_CSV 0.1.6Structures_DataGrid_DataSource_Array 0.1.3Structures_DataGrid 0.9.0Structures_DataGrid_Renderer_XUL 0.1.3Structures_DataGrid_Renderer_Smarty 0.1.4Structures_DataGrid_Renderer_HTMLSortForm 0.1.3Structures_DataGrid_DataSource_DataObject 0.2.1OLE 0.6.1PHP_CodeSniffer 1.0.0Console_CommandLine 0.1.1Structures_DataGrid_DataSource_PDO 0.1.0Net_FTP 1.4.0a1
470829
In response to this previous post, Ben Ramsey has relayed some of this thoughts on the benchmarks that were done by Jonathan Street comparing functions and their aliases:   Mmy first reaction was something like: "Egads! These benchmarks are stupid and misleading! These functions are simply aliases of each other. There should be no discernible difference, and any buffoon should realize this fallacy!" This was before I clicked through from PHPDeveloper.org to read his post.   After reading his data and going on to the Better Benchmarks post that followed it, he found that most of the results of additional testing came out negligible and that there was almost no difference between the two.    Ben illustrates the proof of this with a few lines pasted from the "ext/standard/basic_functions.c" in PHP's source showing that the code is shared via a PHP_FALIAS function call.
88027
Options, beautiful options. How dost thou delay me?
391083
Latest PHPClasses.org Releases:GPS Coordinates DistancePHP Yahoo Messenger Archive DecoderIdealMySQL ClassCalculadora EsconsMath GuardAudio StreamerNumber SequenceAnimated CAPTCHAGoogle Total Results
14108
On the SitePoint PHP Blog today, Troels Knak-Nielsen has written up a post concerning the current state of functional programming in PHP.   With the rise of Javascript, and languages like Python and Ruby, functional programming is becoming more mainstream. Even Java seems to be getting closures in the next version, so does this leave PHP lacking behind or is there an unrealized potential hidden within?   He looks at a few different aspects of functional programming and sees how well PHP fits into them (like dynamic dispatch, binding a variable to a function and an implementation of currying for a function). This last option is the only "true" functional feature that PHP can realistically handle.
73357
Microsoft plans to integrate F#, a functional programming language developed by the Microsoft Research group, into its Visual Studio application development platform, said S. "Soma" Somasegar, corporate vice president of the Microsoft Developer Division, in his blog.?The company, however, has not laid out a formal release schedule, although Somasegar pledged to both integrate F# into Visual Studio and continue evolving it.Pronounced "F sharp," F# is based on the concepts of functional programming, Somasegar said. Functional languages treat computation as the evaluation of mathematical functions. The mathematical slant of functional programming is appealing to professionals in domains described with mathematical notation, including financial, scientific, and technical computing, said Somasegar.F# combines type safety, performance, and scripting with the advantages of running on a on a modern runtime, Microsoft Research said. It supports interactive scripting like Python and the strong type inference and safety of ML. F# can access.Net libraries and database tools.Bloggers corresponding about F# on the hubFS blog had positive responses to Microsoft's plans."I can't overstate how excited I am by this news," one blogger said."I discovered F# a few months ago and since then have made it my primary programming language (moving from Python and Java). I have found it to be a great language for developing simpler scripts or programming 'toy' implementations of algorithms. I've also found it to be a great language for building up real applications because of the ability to leverage everything already existing for .Net," the blogger said.Somasegar cited other functional programming efforts at Microsoft."Language features, such as lambda expressions in C# and generics in .Net 2.0, have roots in functional languages, and LINQ (Language Integrated Query) is directly based on functional programming techniques," Somasegar said. LINQ extends C# and Visual Basic and simplifies how database and XML queries are written in these languages.F# is designed to be a "first-class citizen" on .Net and will run on the on Microsoft CLR (Common Language Runtime), Somasegar said. Object-oriented programming is embraced and F# integrates with the .Net Framework. F# makes boosts .Net in the academic world, Somasegar said."We believe that through F# and languages like IronPython and IronRuby we can help offer students and educators choices beyond the current mainstream and enable the use of these languages across the curriculum. This helps educators have the option to use Visual Studio as a consistent tool set from course to course," he said.Also in the application development realm Monday, the Microsoft Developer Division unveiled its Tester Center Web site. The site enables testers to connect with a community, contribute content and share testing practices and experiences.