Programming

Perl

There is more than one way to do it

Python

there should be one—and preferably only one—obvious way to do it

Java (from @sugree)

write once, run only there

First iPhone App
  • เห็นขนาดไฟล์แล้วปาดเหงื่อ (2.1GB) และได้ข้อสรุปว่าต้อง torrent เท่านั้น
  • แต่ torrent ที่หอช้าจัด ต้องเดินไปโหลดมหาลัยซึ่งก็ไม่ได้ไปทุกวัน กว่าจะโหลดเสร็จกินเวลาไปสองสัปดาห์ ยังดีที่มันไม่ corrupt ตอนเมาท์ dmg แล้วขึ้น verifying นี่โคตรลุ้น
  • ลองแล้วพบว่าเหมือนที่เขียนไว้ใน Blognone คือ learning curve สูงพอสมควร เพราะเราต้องหัดใหม่ทั้ง Objective-C และคลาสต่างๆ ใน Cocoa Touch ไปพร้อมๆ กัน นี่กำลังคิดว่ากลับไปหัด Objective-C บนคอนโซลก่อนน่าจะดีกว่า
  • Objective-C มี alloc โผล่มาเตือนให้นึกถึงความหลัง ชักเสียวๆ
  • Simulator อันใหญ่ไจแอนท์มาก โผล่มาทีเต็มจอ ลดขนาดไม่ได้ด้วย
  • ยังคิดไม่ออกว่าจะลองเขียนอะไรดี

Introduction to AOP

เมื่อคืนคุยกับคุณ Chanwit ทาง IM เกี่ยวกับโครงการวิจัยเรื่องเอา AOP มาใช้กับงานด้าน HPC

ผมรู้จัก AOP อยู่นิดเดียว (แค่แนวคิดการแยก concern) วันนี้เลยได้ฤกษ์หาความรู้เพิ่มเติม แต่การหา tutorial ที่เขียนในมุมมองที่เราอยากรู้นั้นใช่ง่าย ส่วนใหญ่มักรีบลงรายละเอียดทางเทคนิคเร็วเกินไป และเน้น implementation มากกว่า methodology

นั่งอ่านอยู่หลายอันก็พบว่าอันนี้ตรงตามความต้องการที่สุด I want my AOP! โดย Ramnivas Laddad (เพิ่งอ่านไปแค่ part 1)

อีกอันเป็นของ IBM developerWorks คือ An introduction to AOP (ต้องลงทะเบียนก่อนโหลด PDF) ก็พอใช้ได้เหมือนกัน

ยังไม่แม่นเรื่อง AOP พอขนาดจะเขียนบรรยายถึงได้ แต่ในภาพรวมโลกของโปรแกรมมิ่งก็ไปในทางเดียวกัน นั่นคือหา approach ใหม่ๆ (หรือถ้าเป็นวิชาการหน่อยก็ต้องใช้ว่า methodology) ซึ่งมองปัญหาในมุมที่ต่างออกไป มาแก้ปัญหาที่ approach เดิม (ในกรณีนี้คือ imperative/procedural programming และ OOP ซึ่งถือว่าเป็น mainstream approach) แก้ไม่ได้หรือทำไม่ได้ดี เพียงแค่ว่าต่าง approach ก็ต่างมุมมองกันไป ที่ฮิตในช่วงปีที่ผ่านมาก็อย่างเช่น AOP นี้ และพวก functional programming ทั้งหลายนั่นเอง (เรื่อง functional คงต้องไปถาม อ. เดฟ)

I got this book from FOWA and left it on my desk (along with other FOWA souvenirs). When I was interested in AIR, I go googling first and never realized that I already have a good AIR guide one-foot-away.

AIR for JavaScript Developers Cover
(cover picture from O’Reilly)

The Adobe Integrated Runtime (AIR) for JavaScript Developers Pocket Guide is written by Adobe developers and published by O’Reilly. It gives a good introduction to develop an AIR application by HTML/JavaScript, not Flash/Flex.

The list price is £9.99 but don’t worry, Adobe has given away this book around to promote AIR. Furthermore, the authors also released the electronics copy under Creative Commons license. Grab it now (PDF link).

I also found one good review of this book from the web.

P.S. I will send this book to elixer as the prize for Blognone 6000th sweepstake.

Python on Planes!

Assembly on Acid?
C++ on Cocaine?
Cobol on Cobble Stones?
Delphi on Drays?
Real Programmers use C on Chariots!