I'm Jake. . . a programmer
It wasn't long ago that a great way to send data to someone was to attach a small note to the leg to a carrier pigeon. Fortunately, these days, we don’t need to employ millions of pigeons in order to sync data between two systems. Now all those pigeons are free to retire to their big city havens to snag tasty morsels from unsuspecting pedestrians.
Also a certified Professional Scrum Master PCM (PSM I)
Check out my resume page here.
- Answer by JakeMc for Deploy .Net Aspire project to an Azure VM
- Answer by JakeMc for Why can't I use table names of aliased tables in WHERE clause?
- Answer by JakeMc for How to alternate div display based on class name
- Answer by JakeMc for Stuck while doing code first migration with Entity Framework Core 6.0
- Answer by JakeMc for Use Select instead of Include
public class Program
{
public class Jake
{
public Jake()
{
Code = new List<string>{"i dream in C#", "and SQL", "and SSIS", "my nightmares usually involve JavaScript", "but Swift and React Native seems pretty interesting"};
Favorites = new List<string>{"reading and collecting super old books", "i'm a huge fan of the ancient art of bonsai", "i also have an aquascape aquarium"};
Contacts = new List<string>{"find me on https://www.linkedin.com/in/jakemclelland", "or hire me at https://www.codepoetllc.com"};
}
public List<string> Code { get; set; }
public List<string> Favorites { get; set; }
public List<string> Contacts { get; set; }
public string TellMeAboutYourself(InquiryType inquiry)
{
StringBuilder aboutMe = new StringBuilder();
switch (inquiry)
{
case InquiryType.Code:
aboutMe.AppendLine("So tell me, what are you doing these days?");
Code.ForEach(_ => aboutMe.AppendLine($" {_}"));
break;
case InquiryType.Favorites:
aboutMe.AppendLine("And what have you been up to lately?");
Favorites.ForEach(_ => aboutMe.AppendLine($" {_}"));
break;
case InquiryType.Contact:
aboutMe.AppendLine("How may I contact you?");
Contacts.ForEach(_ => aboutMe.AppendLine($" {_}"));
break;
}
return aboutMe.ToString();
}
}
public static void Main()
{
var me = new Jake();
Console.WriteLine(me.TellMeAboutYourself(InquiryType.Code));
Console.WriteLine(me.TellMeAboutYourself(InquiryType.Favorites));
Console.WriteLine(me.TellMeAboutYourself(InquiryType.Contact));
}
public enum InquiryType
{
Code,
Favorites,
Contact
}
}
Find me on: