Click here to Skip to main content
14,981,383 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Can we just talk it over, darlin' ? Pin
honey the codewitch6-Jun-21 14:50
mvahoney the codewitch6-Jun-21 14:50 
GeneralRe: Can we just talk it over, darlin' ? Pin
BillWoodruff6-Jun-21 15:49
mveBillWoodruff6-Jun-21 15:49 
JokeRe: Can we just talk it over, darlin' ? Pin
Mark Tumilty6-Jun-21 19:13
MemberMark Tumilty6-Jun-21 19:13 
GeneralRe: Can we just talk it over, darlin' ? Pin
Daniel Pfeffer6-Jun-21 16:57
professionalDaniel Pfeffer6-Jun-21 16:57 
GeneralRe: Can we just talk it over, darlin' ? Pin
honey the codewitch6-Jun-21 17:07
mvahoney the codewitch6-Jun-21 17:07 
GeneralRe: Can we just talk it over, darlin' ? Pin
BillWoodruff6-Jun-21 17:23
mveBillWoodruff6-Jun-21 17:23 
GeneralRe: Can we just talk it over, darlin' ? Pin
Daniel Pfeffer6-Jun-21 18:03
professionalDaniel Pfeffer6-Jun-21 18:03 
GeneralRe: Can we just talk it over, darlin' ? Pin
BillWoodruff6-Jun-21 19:46
mveBillWoodruff6-Jun-21 19:46 
Hi, What you describe is functionality far beyond what i imagined anyone reading my little fiction would infer Smile | :)

i'm thinking more like an audio version of TypeScript ... something at a micro level compared to a general purpose speech recognition engine; imagine how tedious it would be to give such an engine unambiguous text for names, etc.

My intent in the original post ... in addition to having fun Smile | :) ... was to see if anyone had tried something similar; what better group to bounce ideas off of than this ?

The issue of saving time/typing drives me to write little "transformers" where input like this:
("Name", "string"), 
("Id", "Guid"),
("DateHired",  "DateTime"), 
("Title", "string"),
("EMail", "string")
generates 255 lines of Property code like this (one excerpt):
//auto-property | UTC: 6/7/2021 1:34:18 AM
public Func<DateTime, string, string, bool> NameValidator;

private string _name;

[field:NonSerialized]
public string Name
{
	set
	{
		if (_name == value) return;

		// has validator ?
		if (NameValidator != null)
		{
			// valid ?
			if (NameValidator(DateTime.UtcNow, _name, value))
			{
				//if(LogProperty())
				//{
					//
				//}
				
			   _name = value;

			}
			else
			{
				// invalid
				//if(LogProperty)
				//{
					//
				//}
			}
		}
		else
		{
			//if(LogProperty)
			//{
				//
			//}
		}
		
		// no validation
		_name = value;
	}
	
	get => _name;
}

«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali

GeneralI feel clever today Pin
honey the codewitch6-Jun-21 8:12
mvahoney the codewitch6-Jun-21 8:12 
GeneralRe: I feel clever today Pin
pkfox6-Jun-21 9:41
professionalpkfox6-Jun-21 9:41 
GeneralRe: I feel clever today Pin
BillWoodruff6-Jun-21 12:33
mveBillWoodruff6-Jun-21 12:33 
GeneralRe: I feel clever today Pin
charlieg6-Jun-21 13:29
Membercharlieg6-Jun-21 13:29 
GeneralRe: I feel clever today Pin
Greg Utas6-Jun-21 14:22
mvaGreg Utas6-Jun-21 14:22 
JokeWhat we say vs. what we mean Pin
Sander Rossel6-Jun-21 0:49
professionalSander Rossel6-Jun-21 0:49 
GeneralRe: What we say vs. what we mean Pin
Nelek6-Jun-21 0:52
protectorNelek6-Jun-21 0:52 
GeneralRe: What we say vs. what we mean Pin
Chris C-B6-Jun-21 0:56
MemberChris C-B6-Jun-21 0:56 
GeneralRe: What we say vs. what we mean Pin
Ron Anders6-Jun-21 2:54
MemberRon Anders6-Jun-21 2:54 
GeneralRe: What we say vs. what we mean Pin
Greg Utas6-Jun-21 3:05
mvaGreg Utas6-Jun-21 3:05 
GeneralRe: What we say vs. what we mean Pin
Richard MacCutchan6-Jun-21 3:18
mveRichard MacCutchan6-Jun-21 3:18 
GeneralRe: What we say vs. what we mean Pin
Greg Utas6-Jun-21 6:05
mvaGreg Utas6-Jun-21 6:05 
GeneralRe: What we say vs. what we mean Pin
Richard MacCutchan6-Jun-21 6:19
mveRichard MacCutchan6-Jun-21 6:19 
GeneralRe: What we say vs. what we mean Pin
David O'Neil6-Jun-21 7:02
professionalDavid O'Neil6-Jun-21 7:02 
GeneralRe: What we say vs. what we mean Pin
honey the codewitch6-Jun-21 7:47
mvahoney the codewitch6-Jun-21 7:47 
GeneralRe: What we say vs. what we mean Pin
Greg Utas6-Jun-21 14:25
mvaGreg Utas6-Jun-21 14:25 
GeneralRe: What we say vs. what we mean Pin
honey the codewitch6-Jun-21 14:44
mvahoney the codewitch6-Jun-21 14:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.