C# code arrangement tool recommendations [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have been looking for a great code arrangement tool for c#. It would be nice to have something that can arrange code into regions etc and put items into alphabetical order.
I have tried NArrange and while it works well it is a little clunky in the integration department and did give us issues mixing up xml comments.
Any recommendations free > paid would be fantastic.
Thanks.

Not free(sorry), but take a look to Resharper.

Have a look at regionerate

I use fxCop along with the r# plugin and find it pretty ok

What is the benefit of ordering methods alphabetically? Shouldn't they rather be ordered logically according to the problem they solve. Generally I believe that if you have so many methods in a class/file that you think it makes sense to order them alphabetically your model is wrong, and it would be more beneficial to split your code in more classes/files.
With regards to regions, I have a hard time seeing what the benefit is. I recommend that you read Jeff Atwood's (CTO of stackoverflow) blog post on regions.

Related

Understanding Diagrams [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
I want to learn about Design Patterns and everywhere I see diagrams like this:
Is it UML or something else? I just need a quick reference to learn what do each of different lines mean? which one is inheritance, etc..
1 Yes it is UML. You can read more (with examples) about class diagrams and other UML diagrams e.g. at http://www.uml-diagrams.org/class-diagrams-overview.html
2 Although it is possible to Google out and print and pin up on your notice board some "UML cheat sheet" or "UML quick reference card" (e.g. http://www.holub.com/goodies/uml).
3 it is much better to first read a good book so that you know what is/is_not possible what is the structural/behavioral modeling etc. Explaining UML is not a thing that can be done on 1 single sheet of paper or in one single Stack Overflow answer
Here is a key that I found here
***EDIT #xmojmr's request, here is an updated diagram that I found here (detailed definitions can be found in the linked page):
I recommend you to read UML superstructure specification. Read Classes section to get
information about types of relationship applicable to structural diagrams defined in UML, and much more. This document is base document if you want to learn UML. Dowload it from this site UML Superstructure
Yes, is U.M.L.
You do can learn about applying Design Patterns, without getting into U.M.L., but, the original book, as well as, a lot of documentation uses U.M.L.
I suggest to learn about U.M.L., without Design Patterns, and later, learn about Design Patterns, with & without U.M.L.
Just my 2 cents.

Artificial Bee Colony library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm working on the implementation of Artificial Bee Colony algorithm in optimization of fuzzy c-means clustering. Can anyone provide a link for C# library or class that might help in the code of the ABC algorithm?
I think this should help. Its a ready to implement ABC algorithm library written in C++ that I had developed.
Google doesn't immediately seem to reveal a C# implementation of the ABC algorithm, though there is a Java implementation which should translate quite well to C#.
ABC souds similar to ant colony optimisation. I found this app, which you can probably get the source for if you contact the authors. It requires .NET, so it might as well be written in C#. It's not exactly what you asked for, but it's something ;)
There is a recent article in MSDN magazine that has an implementation in C#, on a specific problem. It should provide a good starting point!

C# DataBinding tutorial [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anyone know a good data binding tutorial for beginners? I'm trying to get it to work for the last few hours and my head is spinning already.. Is there any simple tutorials, WITHOUT unnecessary code where is shown how just bind property to a variable and something like that?
You could try this CodeProject article, code samples in it seem pretty small and straight forward. Though if you're having specific issues, you should post those as questions and someone will help you figure it out.
http://www.nbdtech.com/Free/WpfBinding.pdf
Definitely something that's very, very useful!
I spent a long time trying to understand how to even do the most simple of binding... the syntax just didn't make any sense to me. When I finally stumbled across this tutorial, it felt like a light bulb suddenly turned on. Extremely simple, step-by-step explanations helped me understand the relation between the visual element and the code-behind.
http://www.c-sharpcorner.com/UploadFile/mahakgupta/simple-data-binding-in-wpf/
Some samples with that focus are here:
http://archive.msdn.microsoft.com/wpfsamples#databinding

Where can I learn to refactor code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Where can I learn to refactor code?
Books.
See http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672/ref=sr_1_1?ie=UTF8&s=books&qid=1279262199&sr=1-1
You can learn on the job by using a refactoring tool such as Resharper and asking yourself, why is it suggesting this change? It will show you places where you can make your code simpler as well as which code is not being used any where. One you have taken this first step, it is easier to see what your code is doing and then you can perform your manual refactoring as suggested by the other answers.
Refactoring - C# Tutorials | Dream.In.Code
http://www.dreamincode.net/forums/topic/77242-refactoring/
C# 2.0 Code Refactoring
http://www.premier-club.com/codemag/Article/20143
See Martin Fowler's material: http://www.refactoring.com/
His articles are very good, recommended to anybody who wishes to learn beyond the basics
of just writing code.
Robert Martin's blogs (Uncle Bob) are also excellent.
In practise, choose any IDE which supports common refactoring like Eclipse or IntelliJ (latter is my favorite). But it's just a tool -- it helps to learn what are the reasons why a piece of code should be refactored and how.
Fowler's book is a good place to begin, but before doing any refactoring you should make sure you have automated tests for your code. Refactoring without tests is risky at best.
Visual Studio supports the most common refactoring operations, but you may also want to take a look at Resharper, which adds additional tools.
Head over to LosTechies and have a look at the ebook 31 days of refactoring, its an easy way to start.
Then as others here have said, read Fowler's book when you have the time.

C# compare algorithms [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?
It would be super cool if it had some way of highlighting what exact areas where changed in the text document also.
There's also a c# port of Google's (Neil Fraser) diff, match and patch.
There is Menees Diff which will provide you with a C# diff implementation. The source code is included. I've used it in the past with good success wrapping it in my own implemenation.
How about this one? : DIFFPLEX
Check out diff. Here it is in the gnu project (open source, of course), and many more links to implementations are found in the wikipedia article. A comparison of different such programs is found here.
check this link
"good line by line Diff Algorithm "
http://www.codeproject.com/KB/recipes/diffengine.aspx

Categories