Re-usable, informative validation error messages in Angular

Re-usable, informative validation error messages in Angular

A while ago (at NDC London) I attented a two day course on Angular by the great K. Scott Allen, who spoke about using the ngMessages directive to provide re-usable validation on forms. While ngMessages is good, there is no way of providing detail on validation failures. For example, if a text input has to be at least 5...

Continue reading →

SQL DATETIME with slashes or hyphens returning incorrect data

SQL DATETIME with slashes or hyphens returning incorrect data

I’ve just spent a fun hour wondering why two seemingly identical queries were returning different data. It turned out to be an issue with DATETIME in SQL Server. SQL interprets a DATETIME of the format “yyyymmdd” differently to “yyyy/mm/dd” or “yyyy-mm-dd”. The former is "unseperated" while the latter is "seperated", and the "seperated" format depends on the current language and...

Continue reading →