Topics
Dates
200902 · 05 · 06
2008
01 · 02 · 03 · 04 · 07 · 08 · 09 · 11
2007
06 · 07 · 08 · 09 · 10 · 11 · 12
Also check out FishoftheBay.com for more thoughts about design and life.
July 2007
Viewing 3 Posts
Improving User Experience Through Client-Side Scripting
I feel pretty comfortable with AJAX and Javascript nowadays, which is great because I just started playing around intensely with these two languages in late April. Being that I'm interested in user-interface design and how people interact with technology, I'm almost sorry that I wasn't as familiar with these ideas earlier. But then again, not knowing it at first has made me appreciate it all the more. As far as user experience is concerned, AJAX and Javascript really improve it.
Focus Your Site Design
It's amazing to me sometimes how little people know about design. They seem to know all the stereotypes or what generally looks good, but they don't necessarily understand the concept of interface design or color scheme or focus.
PHP Arrays
PHP hashmap-style arrays make a great solution to wanting to pass multiple variables but not wanting to specify them all in the arguments to a function. As far as object-oriented stuff goes, you can specify an array of properties (pun intended?) and pass them all via one variable. The nice thing is, if your function or object is expecting certain properties and you format your array properly, you can get a lot out of your array. For example, making an object entirely based on an array you pass it can be wonderful when you write your object once (and yeah it will be complicated) but whenever you want to create new instances of it, with all the same functionality and display style, you probably only need to write a few more lines of code. $fields = array ( "table_name" => "users", "table_order" => "userID", "dependence" => array ( "table_name" => "posts", "table_order" => "postID" ) ) $editable = array ( "Name" => array ( "type" => "text", "required" => true "db_field" => "username" ) )