News Feed
Jobs Feed
Sections




News Archive
feed this:

Codeception.com:
Specification or Testing The Comparison of Behat and Codeception
May 08, 2013 @ 09:28:34

On the Codeception site today there's a new post that compares their tool, Behat and PHPUnit for testing your applications.

This is guest post by Ragazzo. He uses Behat as well as Codeception for making his project better. He was often asked to do a comparison between Codeception, Behat, and PhpUnit. In this post he explains the commons and different parts of this products.

The author talks some about the difference between functional/acceptance tests and how they fit in with behavior driven development. He includes some examples of Behat test formats (Gherkin) and how it can be used for both the functional and acceptance side of things. He also talks some about why he prefers Codeception over Behat(+Mink) for his testing. A sample Codeception test is included, showing a login form check.

0 comments voice your opinion now!
codeception testing behat phpunit acceptance functional comparison

Link: http://codeception.com/05-06-2013/specification-testing-coparison.html

PHPBuilder.com:
PHP Forum Software Comparison
October 04, 2012 @ 12:48:08

PHPBuilder.com has posted a comparison of three PHP forums (the software to run them) - vBulletin, phpBB and Kunena.

In the past few years, there has been a great increase in the number of websites with user-generated content (UGC). One of the most common Web applications with UGC is a Web forum -- a place where people can share their impressions and opinions on different topics. As forum software is becoming more and more popular, I will compare the three best forum software products written in PHP: vBulletin, phpBB and Kunena.

They go through each of them and talk about what features they offer and some of the pros and cons of each. At the end of the post there's a table laying out each of these in a bit more easy to reference form.

0 comments voice your opinion now!
fourm software comparison vbulletin phpbb kuena


Evert Pot's Blog:
Numeric string comparison in PHP
April 26, 2011 @ 09:23:47

In this new post to his blog Evert Pot reminds you (the PHP developer) about the loose and strict typing checks that you need to do when checking the values of your variables and never just assume. PHP's loose typing tendencies can cause issues if you're not paying attention.

As long as you make sure you always use strict checking (=== and !==) where you can, and fall back to the loose checks when you must. As a PHP developer, I think it's very important to understand and memorize exactly how these work, whether you're writing new code, or maintaining existing code.

He points out a specific example of some code that seems counter-intuitive when you compare how it reads and how it actually works (strings converted to floats and evaluated)

The moral is: always do strict checks when you are able to.
0 comments voice your opinion now!
numeric comparison evaluate loose typing typecheck


Fabien Potencier's Blog:
Iterator or IteratorAggregate?
June 25, 2010 @ 12:09:44

Following up on two previous posts about iterators, Fabien Potencier is back with one more quick shot on iterator aggregation - a look what using iterator versus iteratoraggregate.

If you have ever used iterators in your code, you have probably implemented the Iterator interface. Objects of a class that implements Iterator can be iterated over with the foreach loop. [...] The IteratorAggregate interface is quite similar [to Iterator] (both interfaces implement Traversable) but creates an external Iterator. But when the iterator is based on an array, creating an external Iterator for this array gives you a more concise and more readable code.

His example code shows how, in implementing and IteratorAggregate, you can grab the instance of the Iterator even if it's based on an array.

1 comment voice your opinion now!
iterator iteratoraggregate comparison traversable interface


Giorgio Sironi's Blog:
Java versus PHP
April 16, 2010 @ 10:55:19

In a new post to his blog Giorgio Sironi has a (more balanced) comparison of Java versus PHP that them on topics like how they handle typing and their execution models.

If you exclude C and its child C++, the most popular programming languages in the world are Java and PHP, which power most of the dynamic web. I have working experience with PHP and for academical purposes I am deepening my knowledge of Java, thus I'd like to point out similarities and key differences between these two languages. Every language has its pros and cons, so there's no absolute winner here.

He briefly covers their history, java's static versus PHP's dynamic typing, how they both handle objects, their execution plans and how easy they are to deploy when it comes to general applications.

0 comments voice your opinion now!
java comparison typing oop execution infrastructure


PHPSlices.com:
PHP 5.3 vs ASP.NET 4.0 neutral comparison
April 01, 2010 @ 08:35:43

In a recent post to the phpslices.com blog there's a neutral comparison of PHP and ASP.NET based on features and a few of the common pros and cons each language has.

Consider i do not have wide experience programming with ASP.NET though i on the past used the Microsoft .NET framework. This is what i think are PRO and the CONS of both, lets consider ASP.NET 4.0 without MVC and PHP 5.3 without any framework.

Some of the pros of PHP include its low learning curve and that it's multiplatform with cons being things like performance issues and that it's more web-centric than some other languages. ASP.NET's pros include its inherent use of the .NET framework and the tools available for it with cons being that it's not Open Source, you need a Windows license to use it and that fewer web hosting providers support it.

1 comment voice your opinion now!
aspnet comparison pro con


Brian Swan's Blog:
mssql vs. sqlsrv What's the Difference? (Part 1)
March 10, 2010 @ 09:09:55

In a new post to his blog Brian Swan compares the database drivers for MSSQL and SQLSRV by what they have to offer and what the real differences are to your applications.

In this post I want to begin looking at some of the differences between the two drivers and perhaps gain an understanding of why the mssql driver continues to be used (although I have some good guesses). There are lots of comparison points between the mssql and sqlsrv drivers. I'll break my comparison into two posts, focusing on high-level differences in this post and then dive into an API comparison in the next post.

This first of the two parts looks at some of the differences between the two - the Microsoft support for the sqlsrv driver vs community-driven mssql and the fact that they're very different "under the hood" (see this diagram).

0 comments voice your opinion now!
mssql sqlsrv microsoft driver comparison


Matt Butcher's Blog:
A Set of Objects in PHP Arrays vs. SplObjectStorage
June 19, 2009 @ 13:46:33

The Standard PHP Library offers PHP developers some excellent tools that, in some cases, can make quite a bit of performance difference than some of their normal counterparts in the rest of the language. In this post from Matt Butcher, two features are compared - normal arrays and the SplObjectStorage feature of the SPL.

One of my projects, QueryPath, performs many tasks that require maintaining a set of unique objects. In my quest to optimize QueryPath, I have been looking into various ways of efficiently storing sets of objects in a way that provides expedient containment checks. [...] Recently I narrowed the list of candidates down to two methods: Use good old fashioned arrays to emulate a hash set or use the SPLObjectStorage system present in PHP 5.2 and up.

He works through the comparison, showing how each of them can emulate the hashed set with the goal of being able to easily iterate and simple to search. The result is that PHP's normal arrays best the SplObjectStorage object in his benchmarking (code included).

1 comment voice your opinion now!
hash comparison array splobjectstore


Paul Reinheimer's Blog:
Stop Messing up CSRF Protection
November 10, 2008 @ 08:47:53

In his latest post Paul Reinheimer looks at cross-site request forgeries and, despite the best efforts of the PHP security community, how developers still just miss the point in protecting their own code.

So, cross site request forgeries are a pretty common topic these days; they're in almost every security talk, book, site etc. This is okay; they're important [...] Most of the sites, and all of the books I've read demonstrate things correctly, but when it comes to actual implementation, time and time again, I see code that's just wrong.

He looks at two of the "essentials" when it comes to protecting you and your application - comparison (not taking other values of variables into account) and the unpredictable token (not making tokens, like md5 hashes of information, random enough).

0 comments voice your opinion now!
crosssite request forgery csrf comparison unpredictable token random


Tobias Schlitt's Blog:
Funny speed considerations
October 01, 2007 @ 12:04:00

Tobias Schlitt offers a helpful hint or two for "speeding up" your application in the form of comparison operators.

The fact that type save comparisons (ala ===) are faster in PHP than the normal comparison operator (ala ==). The reason for this is simply, that PHPs loosly-typed-ness-auto-cast-code is not even touched with ===

He also points out an interesting condition that saves a bit of computing time - comparing the isset() of a variable to true over the count() to zero. Some of his benchmarking (code) shows this in action.

0 comments voice your opinion now!
speed comparison operator looselytyped speed comparison operator looselytyped



Community Events











Don't see your event here?
Let us know!


functional zendframework2 testing series framework development opinion database example code introduction community interview object release language composer conference tool podcast

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework