1,573 reputation
318
bio website beedogs.com
location East Midlands
age 40
visits member for 2 years, 1 month
seen 13 hours ago

20+ years of experience in IT with various platforms, languages, databases and industries.


Aug
25
comment Developing configuration syntax - best practise/rules/methods?
Also - the source of the data as I mentioned elsewhere...
Aug
25
comment Developing configuration syntax - best practise/rules/methods?
Yes, if we suddenly decide surnames can be 30 rather than 20 characters, it seems a bit daft to have to code round this sort of thing every time...
Aug
25
comment Developing configuration syntax - best practise/rules/methods?
This raises an interesting point about the provenance of the data. If the application is creating the object then this sort of approach is perfect. But if the source is third party data, you'd probably want some sort of pre-validation or constructor checks.
Aug
25
revised Developing configuration syntax - best practise/rules/methods?
added 65 characters in body
Aug
25
answered Developing configuration syntax - best practise/rules/methods?
Aug
11
comment Make Return Type an Interface - Problem with Initialization
Although you need a concretion to do something, there is nothing to stop you referring to concretions using their interface e.g. IMyInterface r = new MyClass(); N.B. this is sometimes written as IMyInterface r = new MyClass() as IMyInterface; but the as statement is pure cruft here and has no effect (see the CIL if in doubt).
Jul
8
answered How to test and optimize when you can't reproduce the environment?
Jun
17
comment Property value validations on POCO entities
Yes, it would make sense to do the validation in the object itself in that case. ID length would be a static property or similar which could be pushed through to the form at runtime.
Jun
17
comment Formulate release notes consistently
That is the best approach in my experience.
Jun
17
comment Property value validations on POCO entities
There are various ways to handle this client side. E.g. if you're using a textbox to enter the ID, you can set the MaxLength property to 2.
Jun
17
answered Formulate release notes consistently
Jun
17
revised Property value validations on POCO entities
added 85 characters in body
Jun
17
answered Property value validations on POCO entities
Jun
13
awarded  Nice Answer
Jun
6
comment How often should saving to disk occur in an automatically saving text editor?
Impossible to say. Set a default but make it configurable.
May
6
revised Is converting/casting a boolean to int a good idea?
Added a pertinent tag
May
6
suggested approved edit on Is converting/casting a boolean to int a good idea?
May
2
comment As an interviewer, asking a candidate to find errors in small sample code. Is this fair?
@KonradMorawski Forgive me, but my comment was made in jest I can assure you... :)
May
2
comment As an interviewer, asking a candidate to find errors in small sample code. Is this fair?
You don't think someone printing off some code, dropping it off at your desk and then expecting you to find all the issues without a computer in a limited time window whilst management look on is unfair? Are you the "Code Warrior" the ancients speak of? :)
May
2
answered As an interviewer, asking a candidate to find errors in small sample code. Is this fair?