It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
After learning about state machines, I want to place it in every class of my code. That's a great pleasure for me to declaratively (or "fluently") construct a machine, handle events and be sure that any logic violation will throw an exception.
Can you please critisize me on this practice? Or, may be, you install Stateless package habitually for each project (like I do)?
Any examples of state machines overusing?
Whilst design-patterns are very good practice, you should be cutting code to solve a particular problem that potentially will use a design-pattern to solve that problem in a tried-and-tested manner.
We do not write code from a "let's use this design-pattern" perspective because a single design-pattern is not a one-size fits all solution!
Do not write all your code around the state machine idiom. It will make many simple tasks over-complicated and difficult to maintain.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Is there any tool available which can find/suggest possible places in code which can be re-factored to use parallelism for improving performance.
To be able to suggest places in code that can be optimised by parallelism or concurrency would be a very tough job to implement in to any static analyser. I don't know of any tool that can do this out-of-the-box.
As one of the commenters said, the best approach would be to read and gain a solid understanding of where parallelism or concurrency can help you and combine this with tools such as the Visual Studio profiler.
One tool which maybe of some interest to you is JetBrains' Resharper. I don't belive it does what you require, but it is a great tool and who knows, what you require may be added in future releases?
I hope this helps.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have some source code in C# that lies in a number of folders.
I need to understand this code as it wasn't written by me. Not only that, I want to learn how enterprise applications are coded. The best way to do that is if I have a graphical representation of classes, inheritance etc. I should be able to see the source code in multiple layers: e.g how classes relate to each other, how properties/methods in these classes relate and call each other, etc. I've heard of enterprise architecture and checked it out, but I don't understand what I've read.
Can anyone suggest something else?
Have you looked at NDepend? It can show you all the dependencies withing the code - eg through graphs;
http://www.ndepend.com
Simply use Microsoft Debug Canvas to get acquainted with the solution.
If you are using Visual Studio right click on project and choose "View Class Diagram".
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Edit: (Being more concise to avoid rubbing up against other questions)
I see the link for some suggested books... Books are good but I prefer the web. I can try them out free right away. And I'm a guy that likes multiple sources of information either way.
I am also a big believer in tutorials over just reading. Something I can try out and then modify or do my own way. (I just made a blog in PHP/Zend since that was originally going to be the project language)
And I didn't see what made the best references (which is in my mind entirely different from a learning resource). Though I'm sure I'll figure this out naturally as I google issues that crop up.
There's this website called Stackoverflow that's pretty good
According to MS: http://www.asp.net/
Theres also channel 9: http://channel9.msdn.com/
I enjoy Pluralsight's video offerings and TechEd online videos.
Another good resource is 4GuysFromRolla.
Microsoft has a Beginners' Learning Center.
For paid training, Pluralsight (mentioned above) and TekPub are both highly rated.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Hey guys reading some of the posts I came to realise something:
Reflecting parameter name: abuse of C# lambda expressions or Syntax brilliance?
Why is it that atm im learning how to implement operations but I have no bearing on the foundations its made of.
I can write a program to do a specific task but I dont know where its taking it from... kind of hard to explain what I mean but I dont understand what the system is doing for me. If that makes sense.
When will I get to the stage I truley understand C or any code? How can I get to that stage?
I hope I understood your question.
My answer is:
Learn hardware basics (e.g. I/O - memory .. etc)
Learn operating systems basics (e.g. threading - processes .. etc)
Learn networking basics (e.g. HTTP - TCP/IP - Data packets .. etc)
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I'm searching for a good cache manager for generic objects.
I'm using C# with ASP.NET. I want to use System.Web.Cache. So I want a cache manager that will care about the caching and implement functions like ADD, GET, and UPDATE.
NVelocity, NCache, and the Microsoft P&P Caching block
For in-process memory caching take a look at the following:
For .NET 4: http://msdn.microsoft.com/en-us/library/dd997357(v=VS.100).aspx
For earlier versions:
http://msdn.microsoft.com/en-us/library/xsbfdd8c(v=vs.71).aspx
http://codemaverick.blogspot.com/2007/01/caching-in-windows-application-i-was_8639.html
Those can easily be used to cache objects, though the latter is mostly intended for caching ASP.net pages - if that's what you want :)