Giter Site home page Giter Site logo

Header

Hi there πŸ‘‹

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.

Blog posts

StackOverflow Activity

If I Were a Program

run on dotnetfiddle.net πŸ‘‡

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
	}	
}

run on dotnetfiddle.net πŸ‘†

Find me on:

profile for JakeMc at Stack Overflow, Q&A for professional and enthusiast programmers
Linked In Logo
Codepoet Logo

Thanks to @dawsoncodes for the ideas, and Gautam Krishna for the blog-post-workflow

Jake McLelland's Projects

device-location icon device-location

This is a playground sample project for getting the location from a client device using various methods

fluentedi icon fluentedi

FluentEDI is a c# library for serializing and deserializing EDI

just icon just

just is a simple homepage with almost nothing on it

mytime icon mytime

Automatically exported from code.google.com/p/mytime

onlym icon onlym

Simple Media Player (audio, video and images) for use in meetings.

playground icon playground

This is a random playground, mostly as a repository of code-along projects or challenges

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.