• submit to reddit
Giorgio Sironi10/19/11
0 replies

Practical PHP Refactoring: Replace Nested Conditionals with Guard Clauses

We agree that polymorphism eliminates many cases where if() statements are necessary. However, if we have a tangled conditional, it's better to simplify it as much as possible with local interventions before trying to extract new objects.An example of tangled...

Mats Lindh10/19/11
0 replies

Solr Response Empty from PHP, but Works in Browser or CURL?

Weird issue that I think I’ve stumbled upon earlier, but yet again reared it’s head yesterday. Certain application containers (possibly Jetty in this case) will for some reason not produce any output from Solr (or other applications I’d guess) if the...

Axel Rauschmayer10/19/11
2 replies

A JavaScript class pattern that starts with a function

There are too many JavaScript class patterns and inheritance APIs out there. Here is another one. The twist: Its core construct is a function, not an object literal. Example usage:

Axel Rauschmayer10/19/11
0 replies

Universal unit testing (browser, Node.js) with Jasmine

This post gives a quick introduction to the JavaScript unit test framework Jasmine. It has the advantage of allowing tests to be run both in browsers and on Node.js.

Mitch Pronschinske10/18/11
1 replies

Facebook Gets in on the HTML5 Portal Action

Yet another HTML5 resource portal emerged today.  This time, it's Facebook who's making waves in HTML5-land.  They join other major HTML5 content portals including Google's HTML5 Rocks, Microsoft's HTML5 Dev Center and HTML5 Labs, Adobe's 'The Expressive...

Mitch Pronschinske10/18/11
0 replies

CakePHP Goes 2.0: New Lazy-Loading = Super Speed!

CakePHP has long been one of the top PHP frameworks in use and has maintained a steady position in the face of some tough competitors like Codeigniter, Zend Framework, Symfony2, and Kohana.  If you didn't know already, CakePHP was originally modeled after...

James Sugrue10/18/11
0 replies

Google's "Dart" on the JVM

Google's newest programming language can now be run on the JVM, thanks to the JDart project hosted on Google Code. Unveiled at the goto conference last week, the Dart language is seen by some to be suitable for Java developers who can't get into Javascript.

Mitch Pronschinske10/18/11
0 replies

Video: Taking Advantage of HTML5 in Java and JBoss-based Apps

In this session, Burr Sutter of Red Hat will distill HTML5 into the most important aspects that impact the Java web developer community. The focus of this session will be on practical tips and technqiues for how to best take advantage of HTML5 features in...

Mitch Pronschinske10/18/11
0 replies

A New Library for Building HTML5 Widgets for Windows Phone

Good news today for developers looking to build cross platform apps on Windows Phone Mango.  The Daenet team just released their first version of the WpWidgetLibrary.  More details here:

Giorgio Sironi10/18/11
0 replies

A look at Dart from the eyes of an OO programmer

Dart is a new language for client web development unveiled by Google in the last week. Let's try to do a balanced analysis of it, without the prejudice of being a JavaScript or Java developer.The features... mostly Good Things(TM)Most of Dart features were...

Mitch Pronschinske10/18/11
1 replies

A Web Standard for Notifications using JavaScript and HTML5

These days, notifications are a feature that is baked into mobile platforms, and available through third party applications on the desktop (i.e. Growl, IE9 Pinned Sites).  If you're looking also for cross platform methods for implementing notifications,...

Gonzalo Ayuso10/18/11
1 replies

Working with Request objects in PHP

Normally when we work with web applications we need to handle Request objects. Requests are the input of our applications. According to the golden rule of security: Filter Input-Escape Output We cannot use $_GET and $_POST superglobals. OK we can use then...

Maximiliano Firtman10/18/11
1 replies

Safari on iOS 5, HTML5 evolution for iPhone and iPad

It’s time again for a new version of iOS for iPhone and iPad and a bunch of news about mobile web development. I’ve analyzed every new feature I could found in Safari on iOS5, including what’s the final resolution with expected features as WebGL...

jb j10/18/11
1 replies

Mastering HTML5 Prefetching

Among other great features, HTML5 introduces prefetching, the art of loading pages before the user requested them. In this article, I’m going to discuss this new technique as well as showing you some ready to use examples to drastically improve your...

Axel Rauschmayer10/18/11
0 replies

What’s new in Firefox 8 for end users and developers

This post describes the highlights among the new Firefox 8 features for end users and developers [source: Mozilla Firefox Beta Release Notes].