Zend Framework Preview 0.2.0 Released!

Posted by AnnoMundi on November 02, 2006

ในที่สุด Zend Framework Preview 0.2.0 ก็ถูกปล่อยออกมาให้ทดลองใช้กันแล้วครับ
หลังจากปล่อย 0.1.5 ให้ใช้กันอยู่นาน โดยที่ยังขาด Feature สำคัญๆหลายอย่าง ผมเอง
ก็ได้ทดลองใช้ 0.1.5 กับเว็ปนึงเหมือนกัน ^^ โดยเวอร์ชั่น 0.2.0 ที่ออกมานี้มีการปรับปรุง
ของเดิมหลายจุดและมีการเพิ่มระบบที่ยังขาดไปในรุ่น 0.1.5 อย่าง JSON server และ
Session Component เยี่ยมจริงๆ รายละเอียดเต็มๆตามด้านล่างเลยครับ

  • New MVC implementation
  • New HTTP request and response objects make it easy to automate unit testing for web apps without a web server, and also make it possible to use MVC for command-line and PHP-GTK application development
  • Enhanced pure PHP Lucene-compatible search engine component
  • New Mysqli DB adapter
  • New JSON server
  • New REST client and server
  • New XmlRpc client and server
  • New Acl component
  • New Session component
  • New Web Services clients for Delicious and Audioscrobbler
  • New Registry component
  • Significant improvements to many other components

สำหรับคนที่เขียนเว็ปเองโดยใช้ PHP ผมว่า Framework ตัวนี้น่าสนใจไม่น้อยเลยครับ
เพราะทำให้การพัฒนาเว็ปง่ายขึ้นมาก เพียงแต่ Host ที่ท่านใช้ต้องรองรับ PHP 5.1.4 ขึ้นไป
นอกจากที่ Zend ปล่อย Zend Framework 0.2.0 เวอร์ชั่นใหม่แล้ว Zend ยังปล่อย
Zend Google Data Client Library Preview Release 0.2.0. ออกมาให้ทดลองใช้กันด้วย
โดยเจ้าตัวหลังนี้จะทำให้เราสามารถเขียนโปรแกรม PHP เพื่อติดต่อดึงข้อมูลจาก Google Data
Web Service อย่างเช่น Google Base, Calendar, Blogger, and CodeSearch ผมว่า
ว่างๆก็จะลองดูเหมือนกัน ^^

อ้างอิง : Zend FrameWork

Zend Studio 5.5 Beta Available Now!.

Posted by AnnoMundi on November 01, 2006

เพิ่งได้แว็ปไปดูที่เว็ป Zend.com แล้วก็เห็นว่าทาง Zend ได้ปล่อย Zend Studio 5.5 Beta
มาให้ทดลองใช้กันแล้ว ใครที่ชอบลองของใหม่ไปโหลดกันมาทดลองดูกันได้ครับ ส่วนผมขอใช้
Zend Studio 5.2 ต่อไป อดเจ็บใจเล็กๆไม่ได้เพราะ License ผมหมดไปได้ไม่กี่อาทิตย์เอง
แล้วไม่ได้ต่ออายุ ก็ค่าต่อมันตั้ง $199 แถมผมใช้มา 1ปียังไม่คุ้มเลยก็เลยว่าจะทนใช้ไปจนคุ้ม
ก่อน และรอมี Promotion ค่อยซื้อใหม่ ^^”

ส่วนเจ้า Zend Studio 5.5 Beta มีอะไรบ้างลองดูตามด้าล่างครับ

Version 5.2.0 to 5.5.0 Beta

PHP 5.2:

  • New PHP 5.2 Support

General:

  • Installation support for Mactel ( Install Anywhere 8 )
  • Support for antialiasing (via Preference settings)

Editor:

  • Supports opening URLs from the Editor using right click

Web Services Support (SOAP):

  • Support for URLs in SoapClient Constructors
  • Bug fixed: Unsynchronized file name and configuration name

Java:

  • Embedded Java code completion of packages and classes in PHP code
  • Configure the Workspace’s default JRE / JDK
  • Configure project specific preferences
  • Nested Java code completion

Zend Platform Integration:

  • View Zend Platform Events in a dedicated Events List window
  • Customize, sort and filter Event List entities
  • Limit number of visible rows and initiate auto refresh
  • View Events from user-selected servers
  • Direct access to Platform’s Configuration dialog from the toolbar / menu
  • Configure Zend Platform’s GUI URL and authentication information

Zend Framework Integration:

  • Enable code completion for Zend Framework
  • View Zend Framework classes and functions in the PHP Inspector View
  • View source and debug into Zend Framework code

Source Control:

  • Explorer: highlights file labels 1according to their status in source control (added, merged with conflicts, modified, not versioned and up to date)
  • Source Control file status highlighting is customizable (from the Preferences dialog)
  • Can easily switch between CVS and Subversion support
  • Support for Subversion 1.4

General Bugs Fixed / Changes:

  • Bug fixed – If no Zend Guard path detected there is no default value
  • Bug fixed – Zend Guard detection doesn’t recognize old versions
  • Bug fixed – PHP Functions list doesn’t provide return types for all functions
  • Bug fixed – Uuencode functions in PHP Functions list are malformed
  • Bug fixed – Open File dialog has serious delay when a network drive is disconnected
  • Bug fixed – FTP files containing spaces in their name causes wrong file parsing
  • Bug fixed – Wrong tab behavior in the Preferences window

สำหรับผม ผมว่าเวอร์ชั่นนี้ไม่ค่อยมีการเปลี่ยนแปลงไปจาก 5.2 สักเท่าไหร่ เป็นผม ผมจะรอ PHP6
แล้ว Zend ออก Zend Studio ที่ Support ออกมาค่อนน่าสนใจหน่อย (แต่ต้องมีโปรโมชั่นด้วยนะ ^^”)

3 วิธีง่ายๆในการหลีกเลี่ยงปัญหา Memory Leak ใน JavaScript

Posted by AnnoMundi on October 06, 2006

บทความเกี่ยวกับการหลีกเลี่ยงเขียน Javascript แล้วทำให้เกิด Memory Leak
หลักที่ผู้เขียนเขาแนะนำคือ

3. Set your XMLHttpRequest onreadystatechange handlers to null when you are done with them.

I use YAHOO.util.Connect for all my XHR connections and it uses a
polling mechanism instead of readstate, so I don’t need to do this
anymore. If you can switch to YAHOO.util.Connect (or
YAHOO.ext.UpdateManager built on top of it), I’d recommend it.

2. Clean up all your DOM event handlers on unload if there’s a chance they could reference a DOM object.

There’s no reason to manually do this when there are libraries that
do it automatically. I use YAHOO.util.Event for all my event handlers,
it handles this for me automagically. Other libraries (prototype, dojo,
etc) have some sort of mechanism to do the same thing, although I’m not
sure how effective they are. If you look at the leak images above once
again, you will notice almost all of them are in event related code of
those libraries.

1. Never put anything in a DOM expando or property other than a primitive value unless you plan on cleaning it up.

This is the most important rule of all. It may seem convenient to
put your JS object in a DOM expando, so you can $() and get it, but
don’t do it. Sure, I know what you are thinking, I am being a little
paranoid. There are lots of instances where putting a JS Object in a
DOM expando won’t cause a leak. That’s true, but there are also
many that will… some which are not so easy to detect (i.e. closures).
So to avoid the possibility all together, I follow this simple rule.

อ้างอิง: 3 Easy Steps to Avoid JavaScript Memory Leaks