19
Roy Ganor | Zend Technologies Better Together – PHP and Ajax Best Practices http://joind.in/2240

Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Roy Ganor | Zend Technologies

Better Together – PHP and Ajax Best Practices

http://joind.in/2240

Page 2: Better Together - PHP and JavaScript Best Practices with Zend Studio 8
Page 3: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

@since

Page 4: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Who Are You?

Page 5: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Designer/Developer Workflow

Visual Designer

Interaction Designer

Front end Developer

Back end Developer

Screen shots Components Skin All the rest…

Page 6: Better Together - PHP and JavaScript Best Practices with Zend Studio 8
Page 7: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Performance

• Front end latency

• Back end latency

Behavior

• Complicated• Interact badly

Communication

• Designer to Developer

• Developer to Developer

Page 8: Better Together - PHP and JavaScript Best Practices with Zend Studio 8
Page 9: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

• Very easy to write bad JavaScript code – hard to scale

• Awareness for the following JS libraries Prototype jQuery Dojo ExtJs (Sencha)

Tip #1 –Prepare to Scale up

Page 10: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

• Separate back-end(core), front-end(ui), tests and release stuff

• Enforce dependencies

• Separate PHP from Resources

<?xml version="1.0" encoding="UTF-8"?><buildpath> <buildpathentry kind="src" path="core"/> <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/></buildpath>

Tip #2 – Project Management

Page 11: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

• Rich (HTML-based) informational text about elements shown in the editor. Available in: Content assist Hover

Tip #3 – Rich Informational Text

Page 12: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

• Hint element selectors

Tip #4 – Elements Selectors

Page 13: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

• Easy running and debugging Web PHP/JS-based applications

Tip #5 –PHP/JavaScript Debug

Page 14: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Plenty of tools for Web developers

Tip #6 – Web Browser

Page 15: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Accurately analyze network usage and performance

Tip #7 – Application Performance

Page 16: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Tip #8 – Release based on Tags

# PHP Unitphpunit.version=3.3.17

# PHP Documentorphpdoc.version=1.4.2

# Studio Documentation (PDF, EULA)documentaion.tag=HEAD

# Zend Frameworkzf_19.version=1.9.3

# PHPphp5.version=5.2.10php53.version=5.3.0

com.project.core=v20091007-1624,:pserver:[email protected]:/.repos,mi.r+qz^,Module/com.project.core/com.project.ui=v20090819-1600,:pserver:[email protected]:/.repos,mi.r+qz^,Module/com.project.ui/

Page 17: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Demo

Page 18: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Mastering your tools is as important as mastering your code

Page 19: Better Together - PHP and JavaScript Best Practices with Zend Studio 8

Productivity = OutputInput X