RSS

Category Archives: Design

JSON/REST API – Handling Dates

In this post, I lay out the reason that you should always transfer dates in a JSON/REST API as an integer epoch value: the number of milliseconds since Jan 1, 1970. If you think it should be anything else, please read on….
Read the rest of this entry »

 
Leave a comment

Posted by on June 10, 2015 in Coding, Design

 

Tags: , , , , , ,

Getting Selfie-Links to Work – AngularJS Tips

The past two posts covered parsing the address parameters, and generating a new address with changed parameter values. It turns out that links from a page to the same page are suppressed, unless you include the code below. Read the rest of this entry »

 
Leave a comment

Posted by on January 16, 2015 in Coding, Design

 

Tags: ,

Reflecting State in the URL – Angular JS Tip

In the last post I outline a method for parsing parameters to a page, but as people work on the page, they can sometimes modify the parameters. Consider a page that accepts a query value as a parameter, but also allows the user to modify the query value. If you update the page’s address, then bookmarks by the user will always bring them back to the same place/mode. Read the rest of this entry »

 
Leave a comment

Posted by on January 16, 2015 in Coding, Design

 

Tags: ,

Parsing Parameters – AngularJS Tip

I recently got up to speed on AngularJS and I must admit it is pretty amazing.  Probably should give an overview but I don’t have time for that today.  This post is specifically some Java code to parse parameters that can be passed in links between pages allowing for a natural page-flow behavior. Read the rest of this entry »

 
Leave a comment

Posted by on January 15, 2015 in Coding, Design

 

Tags: ,

Usability is like the Flavor of a Meal

We talk about usability of software as if it was something separate from the software itself.  There are usability experts, and there are programmers who openly claim to not be very good at user interface.  And yet, usability is affected by many deep aspects of the software, and it is important that all programmers on a project be aware of the usability goals of the entire project. Read the rest of this entry »

 
Leave a comment

Posted by on October 6, 2014 in Coding, Design, practice

 

Tags: ,

Always Test the Software running in the Same Way that Customer will run it

Some programmers have their own favorite ways to run the software they are working on, that is run differently than the way that the customer will run it.  This is evil.  Programmer is not testing what the customer will get, but testing something else.  Is that good enough? Read the rest of this entry »

 
Leave a comment

Posted by on May 14, 2014 in Design, practice

 

Tags: ,

Security Absolutism is the Enemy of Security Improvement

Security is an important topic and everyone knows it.  This post is about a curious social behavior around implementing security procedures that often works against incremental improvement of security. Read the rest of this entry »

 
Leave a comment

Posted by on April 9, 2014 in Design

 

Tags: ,