Click here to Skip to main content
15,907,326 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: OO is not all that and a bag of chips Pin
honey the codewitch28-Mar-20 16:35
mvahoney the codewitch28-Mar-20 16:35 
GeneralRe: OO is not all that and a bag of chips Pin
Super Lloyd28-Mar-20 16:43
Super Lloyd28-Mar-20 16:43 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN28-Mar-20 20:50
Martin ISDN28-Mar-20 20:50 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:36
mvahoney the codewitch29-Mar-20 1:36 
GeneralRe: OO is not all that and a bag of chips Pin
Greg Utas29-Mar-20 2:05
professionalGreg Utas29-Mar-20 2:05 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 2:21
mvahoney the codewitch29-Mar-20 2:21 
GeneralRe: OO is not all that and a bag of chips Pin
Mark_Wallace28-Mar-20 21:07
Mark_Wallace28-Mar-20 21:07 
JokeRe: OO is not all that and a bag of chips Pin
Sander Rossel29-Mar-20 1:22
professionalSander Rossel29-Mar-20 1:22 
I have a Console application that disagrees Big Grin | :-D
C#
using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main()
        {
            IMessageGetter messageGetter = new BoohCodewitchMessageGetter();
            IMessagePrinter messagePrinter = new ConsoleMessagePrinter();
            IInputAwaiter inputAwaiter = new ConsoleInputAwaiter();
            string message = messageGetter.GetMessage();
            messagePrinter.PrintMessage(message);
            inputAwaiter.AwaitInput();
        }
    }

    public interface IMessageGetter
    {
        string GetMessage();
    }

    public interface IMessagePrinter
    {
        void PrintMessage(string message);
    }

    public interface IInputAwaiter
    {
        void AwaitInput();
    }

    public abstract class BaseMessageGetter : IMessageGetter
    {
        public abstract string GetMessage();
    }

    public abstract class BaseMessagePrinter : IMessagePrinter
    {
        public abstract void PrintMessage(string message);
    }

    public abstract class BaseInputAwaiter : IInputAwaiter
    {
        public abstract void AwaitInput();
    }

    public class BoohCodewitchMessageGetter : BaseMessageGetter
    {
        public override string GetMessage() => "Booh codewitch, your opinion sucks!";
    }

    public class ConsoleMessagePrinter : BaseMessagePrinter
    {
        public override void PrintMessage(string message) => Console.WriteLine(message);
    }

    public class ConsoleInputAwaiter : BaseInputAwaiter
    {
        public override void AwaitInput() => Console.ReadKey();
    }
}


GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 1:31
mvahoney the codewitch29-Mar-20 1:31 
GeneralRe: OO is not all that and a bag of chips Pin
Sander Rossel29-Mar-20 2:22
professionalSander Rossel29-Mar-20 2:22 
GeneralRe: OO is not all that and a bag of chips Pin
Member 1477477029-Mar-20 4:17
Member 1477477029-Mar-20 4:17 
GeneralRe: OO is not all that and a bag of chips Pin
Nelek29-Mar-20 4:33
protectorNelek29-Mar-20 4:33 
GeneralRe: OO is not all that and a bag of chips Pin
Rick York29-Mar-20 11:15
mveRick York29-Mar-20 11:15 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 5:58
mvahoney the codewitch29-Mar-20 5:58 
GeneralRe: OO is not all that and a bag of chips Pin
W Balboos, GHB29-Mar-20 11:18
W Balboos, GHB29-Mar-20 11:18 
GeneralRe: OO is not all that and a bag of chips Pin
Martin ISDN29-Mar-20 13:27
Martin ISDN29-Mar-20 13:27 
GeneralRe: OO is not all that and a bag of chips Pin
CPallini29-Mar-20 20:57
mveCPallini29-Mar-20 20:57 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 21:34
mvahoney the codewitch29-Mar-20 21:34 
GeneralRe: OO is not all that and a bag of chips Pin
CPallini29-Mar-20 21:37
mveCPallini29-Mar-20 21:37 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch29-Mar-20 21:40
mvahoney the codewitch29-Mar-20 21:40 
GeneralRe: OO is not all that and a bag of chips Pin
CPallini29-Mar-20 21:59
mveCPallini29-Mar-20 21:59 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch30-Mar-20 4:26
mvahoney the codewitch30-Mar-20 4:26 
GeneralRe: OO is not all that and a bag of chips Pin
CPallini30-Mar-20 4:38
mveCPallini30-Mar-20 4:38 
GeneralRe: OO is not all that and a bag of chips Pin
honey the codewitch30-Mar-20 4:48
mvahoney the codewitch30-Mar-20 4:48 
GeneralRe: OO is not all that and a bag of chips Pin
CPallini30-Mar-20 5:02
mveCPallini30-Mar-20 5:02 

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.