 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Maarten Balliauw: Running unit tests when deploying to Windows Azure Web Sites
by Chris Cornutt January 30, 2013 @ 10:25:20
Maarten Balliauw has a new post to his site showing you how to execute your unit tests (in this case PHPUnit) when you deploy your instance out to the Windows Azure platform.
When deploying an application to Windows Azure Web Sites, a number of deployment steps are executed. For .NET projects, msbuild is triggered. For node.js applications, a list of dependencies is restored. For PHP applications, files are copied from source control to the actual web root which is served publicly. Wouldn't it be cool if Windows Azure Web Sites refused to deploy fresh source code whenever unit tests fail? In this post, I'll show you how.
He creates a super basic script using Silex and writes up a test with some dummy assertions, checking if true equals true. He then steps you through updating the current "deploy.sh" script to add in a call to execute PHPUnit and an "exitWithMessageOnError" statement. This statement kicks it back and causes the deployment to fail when tests don't pass (as seen here).
voice your opinion now!
windows azure phpunit unittest execute deploy fail
Court Ewing's Blog: Follow-up How PHP is Broken and How It Can Be Fixed
by Chris Cornutt November 15, 2011 @ 10:18:45
In a follow up to his previous post about how PHP is broken (and what can be done to fix it), Court Ewing has this new post with a few suggestions on how PHP development could be better, but admits that PHP itself is not broken.
It is no secret that the PHP development process has never been a shining example of project organization or quality assurance. Until recently, some of the most important aspects of any project's development cycle were either entirely lacking or were ill-defined. Worse, there was little in the form of systemic quality assurance. Fortunately, the core devs did not ignore these issues, and they've been pushing really hard to improve on these areas over the past few years.
He points out two things that he sees as things that could be improved in the overall process of developing the language - noting that failing automated tests are ineffective and that communication is a key factor in the trust developers have in PHP.
The core PHP developers have long been a key component of [the amazing things the language can do], and none of progress that modern PHP applications have made would be possible without their ongoing efforts. As a result of those efforts, PHP is a stable, secure, and beautifully-practical language that is both easy for novices to wrap their heads around and experts to build the most-used web applications the world has ever seen.
voice your opinion now!
broken opinion fixed communication automated test fail
Keith Casey's Blog: Where Open Source Fails
by Chris Cornutt September 30, 2010 @ 12:12:01
In a new post to his blog today Keith Casey has voiced some of his opinions on where he thinks most Open Source software efforts fail in their goals of making good, quality software that's well-developed and useful.
Earlier this week, I unsubscribed from the mailing lists of a pair of Open Source projects. About two years ago when I found the projects, they involved fascinating topics in under served niches. One of those niches - the one customer/user-facing - is still there and under served, but that's not relevant in the current discussion. In reviewing the activity on the mailing list, I noticed some interesting things: activity was very high, there were some smart people involved in the discussions and there was a lot of discussion on what should be done but nothing actually getting done.
He notes that without a codebase to work from, there can't be any direction because no one knows where things are headed or what can be done to improve it. Writing up a spec to guide the development can help, but then you still have the pitfall of who should write that spec.
voice your opinion now!
opensource software fail opinion specification
Paul Jones' Blog: How Complex Systems Fail
by Chris Cornutt May 13, 2010 @ 14:27:53
Paul Jones points out a paper from Richard Cook, How Complex Systems Fail [pdf], and mentions how a lot of the points can directly correlate with programming in general.
The paper How Complex Systems Fail by Richard Cook should be required reading for anyone in programming or operations. Hell, it should be required reading for most everyone. You should read the whole paper (it's very short at under five pages).
He lists out some of the key points made in the paper including that complex systems can both be helped and harmed by the inclusion of humans in the mix and that, when things change, it opens the door for a whole new kind of failure.
voice your opinion now!
complex system fail opinion
Developr.com: Do Frameworks Fail? When?
by Chris Cornutt December 29, 2009 @ 11:27:35
With all of the good things that frameworks can provide, there's still some bad that can come with them. In this recent post from Developr.com Jayesh Kitukale mentions a few of these downfalls.
Before reading this post, please note that the author of this blog is an entrepreneur who has turned to business from the technical background. The views and opinions have strong relevance to this fact. Anyone who is purely technical or managerial may not agree with some or all points noted in the article.
He touches on three problem areas - the learning curve, how efficient the code can be and the total cost of ownership that can come with it. He also points out some of the things that a good framework should strive for including that it be cost effective and make is faster for you to deliver your product to market.
voice your opinion now!
framework fail opinion
Jordi Boggiano's Blog: Major glob() fail
by Chris Cornutt December 07, 2009 @ 13:50:54
Jordi Boggiano had the "pleasure" of discovering a small quirk with PHP's glob function in an application he was working on - watch out for directories that contain square braces, they won't return in the results!
Working on some personal project that lists a bunch of stuff on my hard drive, I found out that directories that contain square brackets (those []) don't return any results for the simple reason that glob reads [stuff] as a character class, just like in regular expressions. When you know it it makes perfect sense, but when you don't, the documentation is really not so helpful. Of course it mentions libc's glob() and unix shells, but not everyone knows what that implies at first glance.
He tried a few things to get around the bug (including escaping the brackets in the directories) but ended up writing a function (glob_quote) to handle the escaping of all of the meta-characters glob might need to escape to return all of the files and folders correctly.
voice your opinion now!
glob fail regularexpression match
Eli White's Blog: Programming Certifications
by Chris Cornutt October 09, 2008 @ 08:43:30
Eli White has written up a new post about his opinions on certifications (and his habits relating them when it comes to resume reviews).
As it stands, I've shocked more than my share of people in the past when I've mentioned my stance on certifications for programmers. Specifically, when I have a pile of resumes in front of me, and I'm giving them an initial pass to sort them apart, I take any that mention their programming certifications, and sort them to the bottom.
He justification is that most of the certifications out there are pretty much useless and that, from his experience, those that list them on their resume are using it to appear more qualified.
So what is it that's so wrong with the certifications in the first place? Simply put, they prove nothing to me. They only prove that you could cram and pass a multiple choice test.
But, as he notes, programming is more about art than knowing the order of the arguments in str_replace. He illustrates his other point, "passing - yes but by how much?" with how the Zend Certified Engineer exam is handled. You get a pass or fail and you only know what you didn't do so well on if you fail.
voice your opinion now!
programming certification zce zend engineer pass fail
Cal Evans' Blog: set_include_path() failing
by Chris Cornutt February 14, 2008 @ 15:09:38
Cal Evans came up against a problem earlier in his development work - issues when he was trying to get his old include path.
What you SHOULD get back is a string describing your old include path. If you get false, you have hit the problem I hit last night. I went so far as to recompile 2 difference versions of Apache thinking (almost correctly) that it was something that had changed in my Apache config files.
If you're one of the "falsers" out there, check out the rest of his post of his solution around the problem. His problem stemmed from his trying to reassign a php_admin_value (instead of php_value where the script could override it) setting, specifically the one for the include_path.
He also points out that Zend Framework users might keep an eye out for this problem too as the Zend_Loader package changes the include path at times.
voice your opinion now!
include path setincludepath fail phpvalue phpadminvalue
|
Community Events
Don't see your event here? Let us know!
|