Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Design Patterns: The Facade Pattern
Oct 20, 2014 @ 18:17:46

NetTuts.com has continued their series covering common design patterns and their implementation in some example PHP scripts today. In their latest post they focus on the Facade pattern, a member of the "structural" family of patterns.

When it comes to design patterns, you may have questions: Why should we use design patterns in programming? Our code can work just fine without it. [...] Code that employs design patterns is easy to understand, easy to maintain, and easy to extend.[...] In this tutorial, we are going to cover the facade design pattern. It falls under the category of structural patterns because it deals with how your code should be structured to make it easily intelligible and keep it well maintained in the long term.

They start with a UML layout of a typical Facade and include a typical problem/solution where it could be used. They get into a code example that creates a simple checkout process. In this process, they use the Facade pattern to create a more maintainable, extensible ordering workflow.

tagged: designpattern facade introduction tutorial uml series

Link: http://code.tutsplus.com/tutorials/design-patterns-the-facade-pattern--cms-22238

QaFoo:
Code Review Tool
Nov 05, 2012 @ 15:41:16

On the QaFoo site they've shared a tool they use for doing code reviews in a new post to their blog. The tool, just called review, lets you run several different metrics on the code including the PHP "mess detector", PDepend and PHPCPD (copy & paste detector).

We, at Qafoo, do Code Reviews quite often together with our customers. This often focusses on dicussing metrics, browsing the associated code and discussing solutions for the issues found. We started using a bunch of shell scripts for that, like everyone else, but at some point we came up with a webinterface to do this in a more comfortable way. Now we want to share this tool with you.

Included in the post are several screenshots showing the results of the different types of evaluations - the ones mentioned above as well as things like "methods per class", cyclomatic complexity and NPath complexity. There's also a source code browser and a visual class structure generation tool (UML). It's under a AGPLv3 license and can be found on their site.

tagged: code review tool metrics browser uml github

Link:

DZone.com:
PHP UML generation from a live object graph
May 11, 2011 @ 15:19:47

On the PHP On Windows section of the DZone.com site Giorgio Sironi has a new post looking at the process (and script he's created) to create a UML diagram with PHP from a project's current class structure.

Sometimes you need to share a design with your colleagues. You can walk him through the code, and explain which classes and interfaces you created, but there are higher abstracted models that you can show to him to make him grasp the picture quickly. One of these tools is UML, and in particular class diagrams.

His script creates a UML diagram from a PHP object graph, a sort of "reverse engineering" of the current object's hierarchy and relationships. It creates definitions that Yuml.me can use to generate the image and does some handy things like following the path down N levels until it hits "the bottom" and the ability to ignore certain namespaces (like "Zend_" or "Doctrine_") to help limit things down to just your application. He includes a sample set of tests to show it in action as well as a resulting UML diagram generated from the PHPUnit structure.

tagged: uml generate github object live graph

Link:

Wouter Lagerweij's Blog:
Reading Up: Books Every Programmer Should Read
Aug 31, 2010 @ 13:11:04

Wouter Lagerweij has posted a list of books he thinks every programmer should read to help them get a better handle on their process overall (they apply to any language out there, really).

When discussing books on software engineering with colleagues, I got the idea of listing the best books I've read in the past 15 years. Because it seems useful, but also because that will allow others to tell me which ones I should have read.

He lists five books that cover some of the "meta" about programming:

tagged: book suggestion programmer uml designpattern tdd refactor

Link:

DotNetButchering:
Design Patterns you use without knowing them
Oct 02, 2008 @ 15:28:00

From the DotNetButchering blog there's a recent post looking at design patterns, more specifically ones you might be using and you don't even know it.

Rise your hands if time ago (or even now) you stood literally in trance listening to your friends or colleagues talking about design patterns. [...] Anyway I felt better (and also my ego did) when I found those Design Patterns were no more than ways to solve common programming problems, and as I was programming since 2 or 3 years, I had already discovered some of them myself.

He points out two patterns - the strategy and factory patterns - and gives code examples (and UML diagrams) to show how they work.

tagged: design pattern factory strategy uml example

Link:

Community News:
Visustin v4 Automates PHP Flowcharting and UML Diagramming
Dec 06, 2006 @ 17:43:00

According to this note from the International PHP Magazine website, there's a new tool being offered by Aivosto that allows PHP developers to "reverse engineer" their code back into flow charts and UML activity diagrams.

Visustin is the ideal diagramming tool for software developers and document writers. Save your documentation efforts by automatic charting! Visustin reverse engineers your source code and visualizes it. No manual drawing is required. Your existing code is all you need. If you see a real complex case, print it out as a big mosaic and hang it on your wall.

Functionality includes the automatic creation of a optimized layout, the ability to do a multi-page printout, saving the graphs/charts/etc in various formats, run a "bulk chart" on all of your files at once, and export options including PowerPoint, out to the web, and Word.

You can get the full details on the product (as well as screenshots and a demo) from their website.

tagged: visutin automate flowchart uml diagram demo export visutin automate flowchart uml diagram demo export

Link:

Community News:
Visustin v4 Automates PHP Flowcharting and UML Diagramming
Dec 06, 2006 @ 17:43:00

According to this note from the International PHP Magazine website, there's a new tool being offered by Aivosto that allows PHP developers to "reverse engineer" their code back into flow charts and UML activity diagrams.

Visustin is the ideal diagramming tool for software developers and document writers. Save your documentation efforts by automatic charting! Visustin reverse engineers your source code and visualizes it. No manual drawing is required. Your existing code is all you need. If you see a real complex case, print it out as a big mosaic and hang it on your wall.

Functionality includes the automatic creation of a optimized layout, the ability to do a multi-page printout, saving the graphs/charts/etc in various formats, run a "bulk chart" on all of your files at once, and export options including PowerPoint, out to the web, and Word.

You can get the full details on the product (as well as screenshots and a demo) from their website.

tagged: visutin automate flowchart uml diagram demo export visutin automate flowchart uml diagram demo export

Link:


Trending Topics: