In July 2022, I put together a “Lightning Talk” presentation on Java Records for my employer, InRhythm. In short, Java Records are a new data type added as a permanent feature in Java 16, with the goal of reducing some common boiler plate code. In particular this makes writing simple DTOs very quick and easy. …
Category Archives: Software Development
Checking for constraints in SQL Server
n n From time to time, you may find that you need to test for the existence of a SQL Server table constraint before you perform some action, such as dropping or altering a constraint or table. Below is a snippet I have found useful. DECLARE @constraintName varchar(200); SET @constraintName = ‘SomeConstraintName’; IF ( SELECT …
Great article about ECMAScript Internationalization API.
I ran across this great introduction article to ECMAScript’s new International API, written by Raymond Camden The article is at http://code.tutsplus.com/tutorials/working-with-intl–cms-21082, and it has great examples of showing how to sort strings, format dates and numbers with International options.