Aspect Oriented Programming in C# [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
Are there any good resources to wrap my head around Aspect Oriented Programming?
PS: I need to understand AO programming, not the libraries or frameworks available for .NET or C# :)

Just to get your head around it: It is the ability to hook events such as: creation of objects, setting of properties, etc, and attach general functions to them, that will be populated with relevant context.
Because C# doesn't have an inbuilt facility for this, you need a framework, like PostSharp, to do 'bytecode weaving' (i.e. just writing code to actually make the calls, directly to your classes) to simulate it.

check this out, it is describing how to implement AOP ( log, timing, tracing, exception handling...) using postsharp
http://www.codeproject.com/Articles/337564/Aspect-Oriented-Programming-Using-Csharp-and-PostS

Aspect Oriented Programming means having a meta level where yo can define logging or security/access control features to interweave with your code instead of implementing these feature very time in your code. So instead of beeing one-dimensional, you have to program two-dimensional.
I know this may sound very esotheric but it is easy once you understood it.
AOP often works with proxy classes which intercept calls and do things in the background.

A good link below, shows you how to code up an AOP framework of your own. Unfortunately, all of your consuming classes have to inherit from the MarshalByRefObject (through ContextBoundObject).
http://www.developerfusion.com/article/5307/aspect-oriented-programming-using-net/3/

Related

Tool determining class and method importance [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
When facing new code I often spend time to figure out which classes and methods constitute core functionality in contrary to just ambient stuff. If code adheres to well known architectural design, have visible structure, descriptive names, documentation, unit tests etc. then the task is easier. However that is not always the case. Sometimes the code is just a pasta and God knows what is going on there.
I believe that there are some algorithms that could be use in order to roughly categorize code parts so that the developer can see important things in a glance without manual processing.
For example:
In case of views and view models the tool could highlight bindings in the later so that the developer could see entry points.
Using of methods and classes occurs at some level of invocation chain. Some methods have the opportunity to be invoked only deeply in logic (low priority). Others are invoked directly from user action handlers (high priority).
Is there a tool that will be able to filter or highlight classes and methods in Visual Studio depenging on the code importance?
It could look like the follows:
Under importance I understand here that for example the Main method has high importance because it's a root of everything else. You can go from Main method to any other method in the code. MethodL2 has low importance because it is just a leaf. Calculation of leaves importance should be also derived from they parents importance. I mean that an importance in this meaning is not only about the level of depth or occurencies.

Free UML Design Software [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
I have been doing UML diagrams on paper for awhile now, but I want to start doing it digitally for obvious reasons. I have used many bits of software that can do this, but some are over complicated and some just are not intuitive.
I should point out that I am a .Net programmer, so I don't use Eclipse :(
Can anyone suggest some good UML designers that are free? Online or desktop apps are fine.
You could try GenMyModel, it is online.
Having tried several ones, my choice would be Modelio, which is easy to handle and quite complete.
But it depends what exactly you want to do with it. Core Modelio is free, but some additionnal functionalities are not (I'm not exactly sure which ones, but I suppose code generation would be in the list Edit : Java generation is free but C# is not... sigh...).
ArgoUML is old but still reliable and standalone: http://argouml.tigris.org/
You now have Eclipse UML plugins which are free: https://stackoverflow.com/questions/390438/good-free-uml-tool-for-java-eclipse
A good long list is available at http://en.wikipedia.org/wiki/List_of_Unified_Modeling_Language_tools
Which ones are good is beyond me though. I suggest trying them out and keep the one that is the easiest for you to use.
UML Software as bouml are good,
but I recommand you Eclipse + Ecore / Ecore diagram technologies : You can draw your model and with acceleo generate code automatically.

Find the best prototype design tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
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.
Closed 8 years ago.
Improve this question
I am developing a Windows GUI Application. I need a tool to create a prototype design. Please help me to find the best tools? Thanks.
Visio have some stencils for Windows GUI which can be used to prototype a design.
Another option is to use the Visual Studio designer (for either WPF or WinForms) and just layout the forms, without any code.
It really depends on whether you want a free tool or a paid for one, plus what technology you're going to use in the long run.
For winforms, Anders answer is probably best.
If you're aiming at using Silverlight or WPF then I'd recommend Expression Blend as you can produce a rough working GUI design and quickly transform it into working code.
Microsoft SketchFlow seems like a quite good tool.
You can create more or less working prototypes, the standard skin of the prototypes are pencil-sketch style to give the viewer a feeling that the prototype is just a prototype and not a working application.
If you want to show examples of final look'n feel you can just use the regular WinForms or WPF designer.
I use this one a lot. It's easy to put stuff together and there is a wealth of addons to meet your gui needs.
Balsamiq

Optimal language to develop with Unity? [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
I would like to ask you all about the Unity framework and programming. Unity supports three different languages; Boo, C# and Unityscript. Say you were new to programming and developing on OS X.
What is the best language to learn and use alongside Unity to create games?
First of all, it's a matter of taste. All 3 languages are fully capable. It's also worth mentioning that performance-wise there is no significant difference.
So, which one? You'll have to choose for yourself.
Perhaps this would help:
C#:
pros:
well known, easy to find people who know it
strict (find mistakes during compile time)
usable code bits may be found online, even outside Unity's context
cons:
why so serious?
UnityScript (not really JavaScript):
pros:
easy to learn quickly
cons:
not strict (find mistakes late - only during run-time)
Boo:
pros:
beautiful syntax (pythonesquely clean)
strict (find mistakes during compile time)
cons:
not many people use it (so if you're hiring...)
For me, a web developer, Javascript was easiest to use. I use C# when I need to, but Javascript is fastest for me and I don't notice any performance hits.
You can check out this thread on the Unity forums for choosing a language to work with:
http://forum.unity3d.com/threads/18507-Boo-C-and-JavaScript-in-Unity-Experiences-and-Opinions

Fully managed text editor component for .NET/Winforms [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 basically looking for a replacement for RichTextBox or TextBox components that is fully written in c# without using pinvokes in order to keep cross platform compatibility.
RichTextBox contains for example functionality to highlight URLs in the text and provide a handler for event when user clicks on the link. But there is no way to specify what regex is used for that highlighting so there is no way to add support for URI schemes other than http/https.
Mono's RichTextBox is written in C# and is open source:
http://anonsvn.mono-project.com/viewvc/trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/RichTextBox.cs
It will take some work to separate it from Mono and get it running the way you want it, but it's better than starting from scratch.
Take a look at GtkSharp with TextView. It is cross-platform.
This might be a little overkill for what you're looking for, but have you considered SyntaxEditor from Actipro? (http://www.actiprosoftware.com/Products/DotNet/WindowsForms/SyntaxEditor/Default.aspx)
Yes, it is a commercial (i.e. not free) product, but it is capable of doing what you wanted, and more. Its 100% managed code, and supports some language plugins, e.g. a web-language add-in.
Might be worth a look.
The text editors with SharpDevelop and MonoDevelop may be useful.

Categories

Resources