Click here to Skip to main content
15,894,343 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Coding styles Pin
PIEBALDconsult29-Oct-10 16:34
mvePIEBALDconsult29-Oct-10 16:34 
GeneralRe: Coding styles Pin
Member 448708329-Oct-10 23:12
Member 448708329-Oct-10 23:12 
GeneralRe: Coding styles Pin
PIEBALDconsult31-Oct-10 4:27
mvePIEBALDconsult31-Oct-10 4:27 
GeneralRe: Coding styles Pin
Member 44870832-Nov-10 7:39
Member 44870832-Nov-10 7:39 
GeneralRe: Coding styles Pin
PIEBALDconsult2-Nov-10 18:22
mvePIEBALDconsult2-Nov-10 18:22 
GeneralRe: Coding styles Pin
Member 44870833-Nov-10 7:35
Member 44870833-Nov-10 7:35 
AnswerRe: Coding styles Pin
Abhinav S29-Oct-10 19:13
Abhinav S29-Oct-10 19:13 
AnswerRe: Coding styles [modified] Pin
Jeff Connelly17-Nov-10 3:42
Jeff Connelly17-Nov-10 3:42 
A lot of methods that are only 1 line long can be a little annoying too. Of course if it's a public interface and you want to protect your right to change implementation, then it should still be a method. And there are other good reasons, but just breaking up the code "because you can" isn't a good reason.

You might imagine a large house of 10,000 square feet. If that were just one huge room, the house wouldn't be very usable. If there were appropriate sized rooms, of 100 to 300 square feet each or so, then you have a very usable house. If you have many rooms of only 4 square feet each, then you once again have an unusable house. In other words, break it down to an appropriate level, but no more.

There is a quote supposedly by Pascal that goes something like "I'm sorry this is so long, I didn't have time to make it shorter." Making good methods that are short enough (but not too short) takes time to do correctly.

Yes, reading and maintaining long code (or any code) is a skill. You might want to look at Brownfield Application Development in .NET by Belchem and Baley.

What do you mean when you say your code is "very unique"? All else being equal, being different is not good. All it does is slow people down as they try to read a style they're not used to. So they might find it hard to work with, but if you're doing something good then maybe they should be copying you. My kneejerk response is that you're trying to be too clever. Clever is sometimes good but usually not.

modified on Wednesday, November 17, 2010 9:50 AM

QuestionSeeking a binary read/write file stream class Pin
PIEBALDconsult28-Oct-10 15:45
mvePIEBALDconsult28-Oct-10 15:45 
AnswerRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 15:57
sitebuilderLuc Pattyn28-Oct-10 15:57 
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult28-Oct-10 16:57
mvePIEBALDconsult28-Oct-10 16:57 
GeneralRe: Seeking a binary read/write file stream class Pin
Luc Pattyn28-Oct-10 17:14
sitebuilderLuc Pattyn28-Oct-10 17:14 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult28-Oct-10 17:21
mvePIEBALDconsult28-Oct-10 17:21 
AnswerRe: Seeking a binary read/write file stream class Pin
_Erik_29-Oct-10 3:10
_Erik_29-Oct-10 3:10 
GeneralRe: Seeking a binary read/write file stream class Pin
PIEBALDconsult29-Oct-10 3:27
mvePIEBALDconsult29-Oct-10 3:27 
AnswerRe: Seeking a binary read/write file stream class Pin
Andy Brummer3-Nov-10 18:19
sitebuilderAndy Brummer3-Nov-10 18:19 
GeneralRe: Seeking a binary read/write file stream class [modified] Pin
PIEBALDconsult7-Nov-10 4:44
mvePIEBALDconsult7-Nov-10 4:44 
Questionhelp needed Pin
rksreadero28-Oct-10 8:52
rksreadero28-Oct-10 8:52 
AnswerRe: help needed PinPopular
Luc Pattyn28-Oct-10 9:07
sitebuilderLuc Pattyn28-Oct-10 9:07 
AnswerRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:19
kadaoui el mehdi28-Oct-10 11:19 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:34
mvePete O'Hanlon28-Oct-10 11:34 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:39
kadaoui el mehdi28-Oct-10 11:39 
GeneralRe: help needed Pin
Pete O'Hanlon28-Oct-10 11:47
mvePete O'Hanlon28-Oct-10 11:47 
GeneralRe: help needed Pin
kadaoui el mehdi28-Oct-10 11:49
kadaoui el mehdi28-Oct-10 11:49 
AnswerRe: help needed Pin
TweakBird28-Oct-10 23:38
TweakBird28-Oct-10 23:38 

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.