At work this week, I moved to a new group where the development environment is Adobe Flex. It is a breath of fresh air for me. Today it all became fun when I had a bug in my code and could acutally set a breakpoint and debug the code. For the past several years this simple process was torture. Found a bug in JavaScript? Good luck on finding where it is. Bug in JSP code, have fun finding it. Will an interactive debugger help? I am sorry it should be easy but it is not. Even using IE developer toolbar or Firefox Firebug it just seems like too much work to find a little bug. The best thing about Flex is the UI components, but it is the small things in life that make being a developer enjoyable in the daily trenches.
For the last couple of weeks at home on my Mac, I have been learning Flex by completely rewriting my Attentive 2 Design personal web site in Flex. I covered some of the things that I had always wanted to do in DHTML but never was able to get them working in all browsers. A custom dialog with clickable content, drop shadows, show/hiding content on mouse events. I used Flex Builder 3which was a great Adobe decision by making it work within Eclipse, since that is the development IDE of choice for Java for many years. I am looking forward to having fun again after many years.
Does good design really make a difference? Implementing software often has no relation to life outside work, where chaos seems to be the rule rather than the exception. You may not be able to control life, but let's not practice chaos when developing software.
Showing posts with label code. Show all posts
Showing posts with label code. Show all posts
Wednesday, March 26, 2008
Thursday, February 15, 2007
PHP code
I have heard from several developers that they hate PHP, but I have to admit that every time I need example code to help me do something the PHP documentation has never let me down. Why is that? The PHP documentation allows user comments, just like a blog and the comments are displayed at the bottom of every PHP command. For instance, I needed to find a way to read an MP3 file
and return it to any browser to allow the user to save the file to their computer. Sounds easy, but it turns out the code is quite complex. I searched google for "read MP3 PHP" and found sample code that did not work, and then saw one line at the bottom of the sample that used a PHP function I had not heard of before called "fpassthru". When I went to PHP fpassthru, I learned that using fpassthru is actually much slower than feof and fread. The code I am using was taken from the post named file downloads verified by session vars : 22-Oct-2005 03:36.

Subscribe to:
Posts (Atom)