Social Media Post Generator
The Challenge: Create a console app to return various social media messages with shared in-line variables.
Considerations: Was it best to hard code into program.cs file rather than to create a class? What other ways could’ve this been refactored (Create a method; using posts as arguments for specific calls)? Concatenation feels amateurish. For multiple speakers, changing plural and singular references. Some extra sophistication with dateTime (e.g. var date = new DateTime(2018, 5, 15); var postText = $”{date.Month} {date.Day} {date.DayOfWeek} {date.Hour}”;)
The Solution: Set four variables (date, topic, speaker and location) to inject into social media posts. Used concatenation to retrieve copypasta-able social media posts from the console on a “dotnet run.”