ross.smyth
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by ross.smyth
-
-
re: variants
The main use case I have for variants is a tagged union. In a cluster have an enum in one field, and a variant in another and then convert to data based upon the enum tag.
The Problem with Error Dialogs
in LabVIEW General
Posted
I usually have one of two things happen:
I try very hard to make illegal states unrepresentable. This primarily means spending about around 2/3 or more of my time on validation and error handling. For example, if the user needs to enter in an IP address as suggested above I have several states that the interface goes through.
If your software can detect that the user has input invalid data then I highly recommend making invalid states unrepresentable in a form like this. Makes users happy because no scary error messages, and you happy because you don't have to worry about anything sneaking its way in to the rest system by accident (it happens!). So in essence by main solution to the error dialog issue is by treating error dialogs as bugs and a failure in proper input validation. This also includes if the user opens a file, but I do use dialogs to report those errors, but not LabVIEW error dialogs or errors in general.