PHP Code Exploration with nWire
-
Upload
zviki-cohen -
Category
Technology
-
view
708 -
download
10
description
Transcript of PHP Code Exploration with nWire
![Page 1: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/1.jpg)
Code Exploration with Zend Studio 7.0 and
nWireZviki Cohen, nWire SoftwareRoy Ganor, Zend Technologies
![Page 2: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/2.jpg)
Zend & nWire• Zend Studio is built on top of the Eclipse
open platform
• nWire is the first company to join the Zend Studio Partnership Program
• Code navigation and exploration is very important!
![Page 3: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/3.jpg)
Agenda• Introducing nWire
• The nWire Tools
• Using nWire to Expedite Development
![Page 4: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/4.jpg)
What is nWire?• Eclipse PDT/Zend Studio Plugin
• Code Exploration
![Page 5: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/5.jpg)
![Page 6: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/6.jpg)
Developers Spend More Time Reading and
Understanding Code Than Writing It
![Page 7: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/7.jpg)
Introducing nWire
Code ExplorationNavigate Visualize Search
![Page 8: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/8.jpg)
It’s Demo Time!
![Page 9: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/9.jpg)
Code Analysis
![Page 10: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/10.jpg)
Installing nWire• Using the Eclipse update manager
from http://update.nwiresoftware.com
• No configuration, no customization...Just Works!
• Initial analysis process
• Zend Studio 7.0 / Eclipse 3.5 with PDT 2.1
![Page 11: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/11.jpg)
nWire @ Work
Real Life Examples
![Page 12: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/12.jpg)
Scenario 1: Fixing a Bug
Understand the existing code Reading code using nWireNavigating to referenced methodsFind usage of a field
Fix the code Code lookup using nWireFinding example for method usage
Test it Determine code dependencies using nWireFocus your tests on relevant pages
![Page 13: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/13.jpg)
Scenario 2: Refactoring a Class
Check existing references Find class references: instantiations, fields, etc.
Make the changes Explore the updated structureEnsure the new structure adheres to the new design
![Page 14: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/14.jpg)
Scenario 3: Prepare for a Review
Prepare Visual Diagrams Define filters for different types of graphsPrepare visual diagrams
![Page 15: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/15.jpg)
Scenario 4: Train a New Developer
Beforehand: Prepare Code Documents
Prepare visual diagrams, annotated and embedded in your documentation
Code Walkthrough Explain a file using nWire: explore all the associations while walking through the code
Read Existing CodeRead Application Framework Code
Use nWire to navigate through the entire code base, including application frameworks like Zend Framework
![Page 16: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/16.jpg)
nWire Key Benefits• Reduce the learning curve for new
developers
• Expedites modifications to existing code
• Improve software quality
• Reduce the testing time
![Page 17: PHP Code Exploration with nWire](https://reader033.fdocuments.net/reader033/viewer/2022052623/559bdbd21a28ab3c158b46c1/html5/thumbnails/17.jpg)
What’s Next?• Install nWire for a free trial today
• Send us your feedback to
• Email: [email protected]
• Forums: http://forum.nwiresoftware.com/