I had an interesting conversation with some banking execs who had a lot to say about mobile-first design and multi-page "form wizards"...none of it good. What they told me was that when you are dealing with forms with lots of data (as loan applications tend to be), the last thing you want is to submit page after page of short, one-page forms. They were very adamant that these multi-page (they called them "tabbed") applications were killing their productivity.
They want one REALLY BIG form with all the data on it that they can fill out once and submit. They don't care if they have to scroll a lot or if there are a lot of fields on the page. They went so far as to say it would shave hours off of their daily work and earn the bank loads of money.
Interestingly, I'd always resisted mobile-friendly pages for business apps because my personal preference is to organize the data well so that you don't need a bunch of "submit" buttons. I feel like these power-users have vindicated my preference and I am going to be more aware of a form's use cases when designing business apps.
The PHP "empty($var)" function (or language construct) is a handy function that I use a lot. It replaces all of the following checks: isset($var) $var !== 0 $var !== 0.0 $var !== "" $var !== "0" $var !== null $var !== false count($var) > 0 // if array This is particularly useful for integers, but can also be useful for checking strings and floats. It replaces a bunch of conditions you'd otherwise have to type. I've had some disagreements over my frequent usage of empty(). There are those who believe explicit value checks are important to code readability. My response is to ask why a longer line of code is any more readable. There are also those who consider '0' to be non-empty, in which case the use of empty() would not be appropriate. However, the majority of the time when you use empty(), it will be to check a MySQL ID value, which will (should) always be greater than 0. Consider the following example: if...
Comments
Post a Comment