Friday, January 17, 2014

Eclipse Ant JRE

Changing the JRE settings in Eclipse preferences won't affect the JRE version used by Ant. To change it, you need to right click the build file in the Ant view, click "Run As" and then click "External Tools Configurations", and then change the JRE from there.

Friday, January 3, 2014

Designing Validation Rules for Names

Seems like there's no hope of ever getting it right: http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/

But still, I'm sure for the sanity of the app and where applicable, other users, certain rules can/should be applied on a case-by-case basis:

  • Length limits because you simply can't design a website with any length of name possible
  • Character limits in situations where names have to be readable by majority of users (e.g. restrict to ASCII or extended ASCII)