Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Maj, 2013

Anna Filina: Full Test Coverage is Impractical

Anna Filina: Full Test Coverage is Impractical

In her latest post Anna Filina proposes that full test coverage is an impractical way to measure the quality of your software. It can provide a false sense of security, even if the tests are poorly written.

Many developers claim that to achieve high quality software, developers must create automated tests that ensure that all possible execution routes have been covered. This is also known as full path coverage. I will argue that different types of software require different testing approaches and that full path coverage is impractical in almost every case. Too many tests simply create clutter.

She looks at how it’s impractical to expect that all tests will be written efficiently or even correctly. Even simple tests are enough to show up on code coverage reports but may only be painting part of the picture. She also notes that not all software can be tested the same way – things like APIs require different testing skills/methods than something like consumer software.

In the end, there are no exact rules on how much to test. The most important thing to keep in mind is that writing tests for the sake writing tests is futile and costly. [...] Focus on building great software. Tests are a tool to make it better. Just don’t overdo it.

Link: http://annafilina.com/blog/full-test-impractical
Source: http://www.phpdeveloper.org/news/19625

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

ZFort Group: The Battle of the Titans. Zend vs. Symfony

ZFort Group: The Battle of the Titans. Zend vs. Symfony

In this new post to the ZFort blog Elena Bizina compares Symfony and Zend Framework from her perspective, looking at things like functionality, general understanding and community.

Zend and Symfony are the two frameworks that are often compared. Which one is more functional? Which one is more preferable in terms of productivity? Which one is better for general understanding? Which of these two has a larger community? I’ve asked Zfort Group experts to help me with these questions, and here’s what we have come to.

She first gives a high-level overview of each framework, pointing out a few of the features and tools they have built-in. She then goes on to answer the questions above, noting that she sees Symfony as coming out in the lead. Some of the questions are a little vague, so it’s not entirely clear why one is different than the other. What do you think? Leave a comment here with your opinions.

Link: http://www.zfort.com/blog/zend-vs-symfony
Source: http://www.phpdeveloper.org/news/19624

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

ZFort Group: The Battle of the Titans. Zend vs. Symfony

ZFort Group: The Battle of the Titans. Zend vs. Symfony

In this new post to the ZFort blog Elena Bizina compares Symfony and Zend Framework from her perspective, looking at things like functionality, general understanding and community.

Zend and Symfony are the two frameworks that are often compared. Which one is more functional? Which one is more preferable in terms of productivity? Which one is better for general understanding? Which of these two has a larger community? I’ve asked Zfort Group experts to help me with these questions, and here’s what we have come to.

She first gives a high-level overview of each framework, pointing out a few of the features and tools they have built-in. She then goes on to answer the questions above, noting that she sees Symfony as coming out in the lead. Some of the questions are a little vague, so it’s not entirely clear why one is different than the other. What do you think? Leave a comment here with your opinions.

Link: http://www.zfort.com/blog/zend-vs-symfony
Source: http://www.phpdeveloper.org/news/19624

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Lorna Mitchell: Simplest PHP Generator Example

Lorna Mitchell: Simplest PHP Generator Example

On her blog Lorna Mitchell has posted an example of a basic generator written in PHP, a feature of the upcoming PHP version 5.5.

I really like the generators feature that’s arriving in PHP 5.5, and since we’re now into release candidate releases, it’s actually not that far away. I’ve been speaking on this topic and I thought I’d share my trivially simple code example from my slides.

She includes an example of a very basic generator using the new “yield” keyword and how to implement it in a simple foreach loop. There’s also a little talk about when is a good time to use generators in your applications (two examples: complex number calculation and working with large data sets a chunk at a time). For more information on how these generators will work, check out this page in the PHP manual.

Link: http://www.lornajane.net/posts/2013/simplest-php-generator-example
Source: http://www.phpdeveloper.org/news/19623

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Engine Yard: A Conversation About Testing in PHP

Engine Yard: A Conversation About Testing in PHP

On the Engine Yard blog today they’ve posted a conversation about testing between Ed Finkler and Chris Hartjes (also the hosts of the DevHell podcast).

Our friends Ed Finkler and Chris Hartjes recently had a chat about testing in PHP. Read on to get the low down on different testing tools and their relative merits-check it out as Ed and Chris weep for the future, come to some interesting conclusions and get their hands dirty so you don’t have to.

They talk some about the current tools for unit testing in PHP applications and show what a sample test looks like. Ed talks about how the current testing tools can make it intimidating for people to get started testing and mentions the built-in testing library in Python that is a bit easier. There’s also some mention of acceptance/functional testing and the Behat + Mink combo.

Link: https://blog.engineyard.com/2013/a-conversation-about-testing-in-php
Source: http://www.phpdeveloper.org/news/19622

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Packagist Latest Releases for 05.23.2013

Community News: Packagist Latest Releases for 05.23.2013Recent releases from the Packagist:

Source: http://www.phpdeveloper.org/news/19620

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Blast from the Past – One Year Ago in PHP

Site News: Blast from the Past – One Year Ago in PHPHere’s what was popular in the PHP community one year ago today:

Source: http://www.phpdeveloper.org/news/19621

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Site News: Blast from the Past – One Year Ago in PHP

Site News: Blast from the Past – One Year Ago in PHPHere’s what was popular in the PHP community one year ago today:

Source: http://www.phpdeveloper.org/news/19621

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Reddit.com: Preferred framework for REST usage?

Reddit.com: Preferred framework for REST usage?

Over on Reddit.com recently a discussion was kicked off asking people what framework they used for REST – their tool of choice for making API creation simple.

I was wondering what people here preferred for setting up REST APIs. Specifically if they had a preferred PHP framework for setting them up. in the past I had used CodeIngiter but am looking at Laravel some recently. I don’t anticipate extremely heavy usage but I’d like to easily update the framework when it has new releases without a real pain working around my models and controllers.

Several different options were mentioned in the comments including:

Do you have a favorite you use for your REST APIs? share it here!

Link: http://www.reddit.com/r/PHP/comments/1em2ne/preferred_framework_for_rest_usage
Source: http://www.phpdeveloper.org/news/19619

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 2

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 2

PHPMaster.com has posted the second part of their look at the Openbiz Cubi framework (part one here), this time focusing on the code – mostly XML – that you’ll need to create your own custom module.

In the first part of this series we talked about the development challenges we face and how Openbiz Cubi can help by providing a solid, ready-to-use web application framework. In this part we’ll see how to build our own module and dive a bit deeper into the core architecture of the framework.

They include the SQL you’ll need to run to create a new table for the “Customer” module they’re going to help you build. With that in place, they walk you through the command to execute to make the module skeleton, the locations of the XML files to work with and the contents of each. Included in the module are things like a data object, a module description file and the form object. He finishes up the post with a look at the overall flow of the Cubi execution so you know where each piece falls.

Link: http://phpmaster.com/openbiz-cubi-a-robust-php-application-framework-2
Source: http://www.phpdeveloper.org/news/19618

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>