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 reading about (AOP) Aspect Oriented Programming and I could not find any good article on internet with its implementation in C#. Everyone are talking about AOP Frameworks.
The code the described in below reference is not working at all.
http://www.codeproject.com/Articles/11387/Aspect-oriented-programming-in-NET-Part-II
Can someone share any good implementation code on aspect oriented programming?
Or Else suggest a good AOP Framework to be implemented easily?
As, we are in need to implement AOP in our Project for logging printing and sending mails on completion of specific operations.
Have a look at PostSharp. It is a framework for AOP in .NET that is widely used. In contrast to other frameworks, it uses an approach that weaves the generated code into the intermediate language which is good for performance reasons.
On the website there are also lots of resources about AOP in general and how it can be used. There also is a free edition and a trial version.
However, if you need to only decorate some small portions of your code, using the Decorator pattern or something similar might also be an option.
http://www.codeproject.com/Tips/624586/Introducing-the-KingAOP-Framework-Part-1 seems to fit your need (I've not yet tested it though)
Related
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 want to use a graph in C++, so that I can use it for storing cities and distances between them, and then try some path finding algorithms on it. Is there any built-in library, etc. which I can include in my project?
Like #include<vector>, etc. If not, kindly tell me same for C#.
If you want to do path-finding you just need some special forms of trees. Most of them are well described when you look at path-finding algorithms. As an example, you can use a priority queue which is suitable for storing the successors at the top of your tree (fast access).
Concrete implementations I can suggest are A*:
You can build your own heuristic method, which means that you can put in your own logic for travelling.
One implementation of it is a-star-algorithm-implementation.
How about the Boost Graph Library?
Boost usually provides very good libraries for data structures and algorithms.
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!
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.
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
What is recommended tutorial of F# for Haskell programmer? F# seems to borrow a lot from Haskell but there are little traps which makes hard to write.
Generally I need walkthrough the F# which would not explain what is the difference between mutable data and immutable (Haskell is much more strict in this area) etc.
I know C# a little so I know more or less what .Net is about as well.
Since you will already know 90% of the concepts, I would just focus on the syntax, and read e.g. the F# Language Reference on an as-needed basis. Pick a few basic tasks for yourself, try to code them up, use the reference to get un-stuck, and ask questions here when you get really stuck.
(You won't find many docs aimed at you, since the "I know Haskell, but not ML or F#" set of people is much much smaller than the "I know C#, but not Haskell, ML, or F#" group.)
(You might also consider picking and choosing from my blog; I write both beginner stuff and advanced stuff.)
Free:
The F# Survival Guide
F# Wiki Book
Good books:
Programming F# for beginners
Expert F# for those who already write simple F# programs
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 am looking for some (preferably) online tutorials on making controls with 'Rich design-time support'
By Rich design time support i mean like how the menustrip works on a form and such.
Any links to websites, good books or code samples (c# or vb.net) would be great.
You can start with Dissecting A C# Application which goes into many aspects of creating SharpDevelop, C# IDE written in .NET. This covers many aspects of the designer architecture and it is free in a PDF. However, the PDF is hard to find (original links no longer work, but I believe this is a valid copy).
While that will get you started on the ins and outs of the designer, it probably doesn't go into detail on some of the more interesting features such as actions and tasks. For this, MSDN has some extensive information and examples (it didn't used to).
Finally, I find the best resource to be .NET Reflector. Using this tool to look at how Microsoft has done it in various places within the framework has been a great learning exercise when working in design-time support areas. Find a control that does what you want and then go see how it does it.
All of these resources are free, however your time is not. I have found that design-time support can be a breeze in some areas but a complete nightmare in others. Good luck.