Solved

Could you point a framework of classes to optimize working time in .net?

Posted on 2014-01-05
7
533 Views
Last Modified: 2014-01-06
Hi Experts

I'm going to translate an app from a discontinued language to .net using C#

In order to minimize the work and optimize time - avoiding reinventing the wheel everytime it could be done, could you point a framework- library of classes that deals with the more common tasks that I could use in my project?  

(Something equivalent to in .net to KoolPHP - a set of features easily usable)

Thanks in advance.
0
Comment
Question by:Eduardo Fuerte
7 Comments
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 100 total points
ID: 39757945
VB has it with its My namespace.

But since C# is not seen as an entry level language by the people at Microsoft, there is nothing equivalent in VB.

In any case, if you are a professional programmer, I would not advise using such type of shortcut. They usually hide a lot of stuff that could be useful in some situations, and you are better off taking the time of learning to work with the basic classes.

For instance, the My.Computer.FileSystem class in VB gives you all the basic methods and properties to work with files, directories and drives. The System.IO.File class deals only with files, but gives you more properties and methods than FileSystem.

You won't be able to do everything with the shortcut and will have to use the standard framework classes anyway from time to time. Why not make yourself comfortable with these right from the start.

And be sure that you won't have to reinvent the wheel. With more than 10000 classes, any wheel you might need is in there. Stuff that took 50-60 lines of codes before .NET can often be done with only 1 line in .NET. You just have to find the class.method or class.property that does it.
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 39757959
I do not quite understand the question. But if you need time measuring technique consider the TimeSpan class (http://msdn.microsoft.com/en-us/library/system.timespan(v=vs.110).aspx )

Even better approach is to use System.Diagnostics.Stopwatch class:

// some code

Stopwatch sw = new Stopwatch();

sw.Start();

// Some code is executed

sw.Stop();

System.Diagnostics.WriteLine("Elapsed={0}",sw.Elapsed);

Open in new window

0
 
LVL 35

Assisted Solution

by:Miguel Oz
Miguel Oz earned 100 total points
ID: 39758143
One way to minimize work (assuming that  you are not using third party libraries) is to use reflector (or similar tool) to decompile your program IL code to C#.

The .NET framework 4.0 and 4.5 may cover most of your needs but it depends what "common tasks" you require, for example:
- String handling: http://www.dotnetperls.com/string
- File handling: http://www.dotnetperls.com/file
- Generics: http://www.dotnetperls.com/collections
and so on

If you have time, my preference is rework specially if the app is still using .NET 1.1. Some constructs are not only old but can be optimized (perfoming much faster) using generics. Furthermore, you need to think on UI as well (but that in itself is a separate question as you have many choices depending of what kind of app is)

If you require further help, please specify:
App current  language.
App current .NET version.
App new .NET version (4.0 or 4.5) and VS (2010 or 2013)
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 52

Accepted Solution

by:
Carl Tawn earned 200 total points
ID: 39758695
From the look of KoolPHP it would appear you are looking for 3rd party control libraries, rather than a programming framework.

These two are quite common in the .Net arena:

http://www.componentone.com
http://www.infragistics.com
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 100 total points
ID: 39759203
I agree with Carl Tawn's assessment. I'd like to add that you may end up needing to write your own user controls--if the ready-built components you find don't suit your needs. I would therefore point you to tutorials for such:

http://msdn.microsoft.com/en-us/library/y6wb1a0e(v=vs.100).aspx
http://msdn.microsoft.com/en-us/library/3457w616(v=vs.90).aspx
0
 

Author Comment

by:Eduardo Fuerte
ID: 39759657
Hello!


Thank you for your assistance.
I'm carefully checking the suggestions you gave me and will return back soon...
0
 

Author Closing Comment

by:Eduardo Fuerte
ID: 39759780
After reading I concluded need  to be more conceptual than simply found ready to use library classes that could be util in a second phase.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question