Skip to main content
fix grammar error
Source Link
Peter Duniho
  • 71k
  • 7
  • 113
  • 149

The maintenance phase, for anyone who might be relatively new to programming, is going to comprisecompose 98.7% or more of the overall lifetime of your project, and the poor schmuck doing the maintenance is almost certainly going to be someone other than you. And there is a very good chance they will spend 50% of their time on the job cursing your name.

The maintenance phase, for anyone who might be relatively new to programming, is going to comprise 98.7% or more of the overall lifetime of your project, and the poor schmuck doing the maintenance is almost certainly going to be someone other than you. And there is a very good chance they will spend 50% of their time on the job cursing your name.

The maintenance phase, for anyone who might be relatively new to programming, is going to compose 98.7% or more of the overall lifetime of your project, and the poor schmuck doing the maintenance is almost certainly going to be someone other than you. And there is a very good chance they will spend 50% of their time on the job cursing your name.

added 1 character in body
Source Link
Craig Tullis
  • 10.7k
  • 2
  • 23
  • 22

Except that I still kind of hate the one-long-line layout and would personally lay the code out like the following. I think this is moreas functional thanas it is aesthetic, since I believe it improves comprehensionscomprehension. Some may disagree:

Except that I still kind of hate the one-long-line layout and would personally lay the code out like the following. I think this is more functional than aesthetic, since I believe it improves comprehensions. Some may disagree:

Except that I still kind of hate the one-long-line layout and would personally lay the code out like the following. I think this is as functional as it is aesthetic, since I believe it improves comprehension. Some may disagree:

added 13 characters in body
Source Link
Craig Tullis
  • 10.7k
  • 2
  • 23
  • 22

EDIT: I do concur with others who are saying that, as of C# 6.0, exception filters are now thea perfectly fine way to go: catch (Exception ex) when (ex is ... || ex is ... )

Except that I still kind of hate the one-long-line layout and would personally lay the code out like the following. I think this is more functional than aesthetic, since I believe it improves comprehensions. Some may disagree:

catch (Exception ex) when (
    ex is ...
    || ex is ...
    || ex is ...
)

ORIGINAL:

EDIT: I do concur with others who are saying that, as of C# 6.0, exception filters are now the way to go: catch (Exception ex) when (ex is ... || ex is ... )

EDIT: I do concur with others who are saying that, as of C# 6.0, exception filters are now a perfectly fine way to go: catch (Exception ex) when (ex is ... || ex is ... )

Except that I still kind of hate the one-long-line layout and would personally lay the code out like the following. I think this is more functional than aesthetic, since I believe it improves comprehensions. Some may disagree:

catch (Exception ex) when (
    ex is ...
    || ex is ...
    || ex is ...
)

ORIGINAL:

added 168 characters in body
Source Link
Craig Tullis
  • 10.7k
  • 2
  • 23
  • 22
Loading
added 3 characters in body
Source Link
Craig Tullis
  • 10.7k
  • 2
  • 23
  • 22
Loading
Loading
Source Link
Craig Tullis
  • 10.7k
  • 2
  • 23
  • 22
Loading