Wishlist

If there’s something you’d like this blog to cover, then add a comment below. Put it in the user story format.

As a TYPE OF CONTEXT I want to TYPE OF ACTIVITY to achieve DESIRED OUTCOME.

E.g.

  • As a user of the strategy pattern, I want to reduce the memory footprint, to ensure my application is performant.
  • As a programmer, I want to reduce boilerplate code around the singleton pattern, to improve readability and reduce effort.
  • As a coder, I want to find a good way to express X, to make my code simpler/more readable.

Add your comments and anything which I can cover will become a new topic.

Advertisements

3 comments

  1. By-Name-Parameter exists in Scala, this allows you to pass a “function” to a method, which is only executed, when invoked in the code…. I’m not sure, if there is the possibility to make something like this available in .NET somehow…

    Context:
    Normally, when you use for example log4net, you code like ->
    if (log.IsDebugEnabled) {

    }

  2. … follow up …. unfortunally submitted
    if (log.IsDebugEnabled) {
    log.Debug(“A” + class.Value + ” “);
    }

    so some people use a Wrapper, which looks like
    MyLog( string s) {
    if (log.IsDebugEnabled) {
    log.Debug(s);
    }
    }

    unfortunally, then the calculation of s is already done, even if not needed…..

    A construct like the named parameter in Scala, would solve the problem, because then s is only calculated, when referenced.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s