Oh wow you’re *totally* right, our code really should be rewritten to use minimal whitespace so that we can save space and meet your arbitrary requirements to how our code should be laid out. This excess use of whitespace really makes our code harder to read and in turn harder to maintain. I can’t believe we let it get this bad, it really must be the top problem to be solved in the project!
In case you haven’t realised I’m being sarcastic. I can think of much better uses of my time than spending it reformatting our code to meet someone else’s beliefs on what makes readable code, like watching cats be funny on youtube.
Aaron Powell
MVP - Internet Explorer (Development) | FunnelWeb Team Member
http://apowell.me | http://twitter.com/slace | Skype: aaron.l.powell | Github | BitBucket
From: funnel...@googlegroups.com [mailto:funnel...@googlegroups.com] On Behalf Of Dave Schinkel
Sent: Monday, 28 May 2012 2:28 PM
To: funnel...@googlegroups.com
Subject: Codebase: enough with the overkill on line returns
To me this is totally unecessary and even more unreadable. Why put line returns on every single DOT or comma depending on what you're coding out.
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
Then the page just gets more long and conveluted
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
context.MapRoute(
"Admin_Install",
"admin/install/{action}",
new {controller = "Install", action = "Index"}
);
instead of
Seriously please just make it nice and readable and a hell of a lot shorter/compact code:
context.MapRoute( "Admin_Install", "admin/install/{action}", new {controller = "Install", action = "Index"});
context.MapRoute( "Admin_Install", "admin/install/{action}", new {controller = "Install", action = "Index"});
context.MapRoute( "Admin_Install", "admin/install/{action}", new {controller = "Install", action = "Index"});
context.MapRoute( "Admin_Install", "admin/install/{action}", new {controller = "Install", action = "Index"});
context.MapRoute( "Admin_Install", "admin/install/{action}", new {controller = "Install", action = "Index"});
I don't understand why some dev's style is to put a tone of line returns on everything or in the middle for example of a method param list when the list is not that long and you can turn wrapping on in VS, it just clutters the page and makes code longer.
There are time sit makes sense, these are not one of them.
Another example
var serviceRoutesUrls = serviceRoutes
.Select(serviceRoute => serviceRoute.Url.Replace("{*
pathInfo}", ""))
.ToArray();
Seriously, why are there all these line returns? This line is not that long.
var serviceRoutesUrls = serviceRoutes.Select(serviceRoute => serviceRoute.Url.Replace("{*pathInfo}", "")).ToArray();
There needs to be a code style standard doc or something for FunnelWeb for whoever is helping develop this project. And too many line returns should be one you don't follow....use your judgement IMO and that does not mean default to line returns on everything...if this is the habit, get rid of it. I know everyone has their style but this is extremely annoying and just weird IMO.
IMO..but I bet I'm not the only one who hates seeing lines like this with unnecessary returns like this. Anyway that's my rant when popping open this code for the first time.
Just a pet peeve bro :P I don't like messy code lets just say. I can't fathom how developers read this shit when it's seperated on 4 - 10 lines for a one line statement.
I knew someone would throw a fit with my post :P.
Here is my 2 cents. http://www.codejourney.com/carriage-returns-in-csharp-a-happy-medium
On May 28, 5:41 am, Aaron Powell <m...@aaron-powell.com> wrote:
> Oh wow you’re *totally* right, our code really should be rewritten to use minimal whitespace so that we can save space and meet your arbitrary requirements to how our code should be laid out. This excess use of whitespace really makes our code harder to read and in turn harder to maintain. I can’t believe we let it get this bad, it really must be the top problem to be solved in the project!
>
> In case you haven’t realised I’m being sarcastic. I can think of much better uses of my time than spending it reformatting our code to meet someone else’s beliefs on what makes readable code, like watching cats be funny on youtube.
>
> Aaron Powell
> MVP - Internet Explorer (Development) | FunnelWeb Team Member<http://funnelweblog.com/>
>
> http://apowell.me<http://apowell.me/> |http://twitter.com/slace| Skype: aaron.l.powell | Github<http://github.com/aaronpowell/> | BitBucket<http://hg.apwll.me/>
Here is my 2 cents. http://www.codejourney.com/carriage-returns-in-csharp-a-happy-medium
> Oh wow you’re *totally* right, our code really should be rewritten to use minimal whitespace so that we can save space and meet your arbitrary requirements to how our code should be laid out. This excess use of whitespace really makes our code harder to read and in turn harder to maintain. I can’t believe we let it get this bad, it really must be the top problem to be solved in the project!
>
> In case you haven’t realised I’m being sarcastic. I can think of much better uses of my time than spending it reformatting our code to meet someone else’s beliefs on what makes readable code, like watching cats be funny on youtube.
>
> Aaron Powell
> MVP - Internet Explorer (Development) | FunnelWeb Team Member<http://funnelweblog.com/>
>
> http://apowell.me<http://apowell.me/> |http://twitter.com/slace| Skype: aaron.l.powell | Github<http://github.com/aaronpowell/> | BitBucket<http://hg.apwll.me/>
>