7 2718
"gaidar" <ga****@vbstreets.ru> wrote in message
news:ON**************@TK2MSFTNGP14.phx.gbl... Hi, everybody,
I'm just wondering if someone really need stuff like this: http://msdn2.microsoft.com/library/ms123401.aspx. If you answer yes than explain, please.
I've been too busy to keep up with what is proposed for VS2005.
But in VS2003, Regions "within" a method are not supported.
I find myself using them quite a bit, especially because I miss the Single
Procedure view of VB6.
I group related things, such as all the properties of a Class, and other
related procedures.
Keep things grouped, when they're finished off, just collapse them.
In rare cases, such as very long and complex methods where refactoring just
isn't appropriate, I think I would like the option to have regions "within"
a method as well.
Personally, I like them. However, with the proposed ability to break classes
into seperate files, I might choose that instead. If I had a Single
Procedure view still, I would probably use Regions less.
Gerald
"gaidar" <ga****@vbstreets.ru> schrieb: I'm just wondering if someone really need stuff like this: http://msdn2.microsoft.com/library/ms123401.aspx. If you answer yes than explain, please.
Personally I don't need them. I almost never use regions.
BTW: The link you posted is pointing to the index and not to a specific
topic.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
I agree, they can definitely make code more organized. If a Class is very
long it can make editing code much easier by allowing you to fit the
procedures you are editing on your screen at the same time. Some people
might argue that this can be done without using #Region, which is true, but
when you have a large amount of related declarations or many small
procedures that are related to each other, it can be nice to have them
shrunken to a line that is a little more descriptive than the actual
declarations. I will admit that I have not yet used them, but I am also a
bit of an amature who uses VB.NET only for ASP.NET. But even if I don't use
them much in my own code, I am very glad they exist because the code that is
automatically generated by Visual Studio is usually put in a #Region, and
without that I would have to scroll down to find my own code in every page
every time I opened one, and as I mentioned, the descriptive part helps me
know why the automatically generated code is there.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
"Gerald Hernandez" <Cablewizard@sp*********@Yahoo.com> wrote in message
news:eT**************@TK2MSFTNGP14.phx.gbl... "gaidar" <ga****@vbstreets.ru> wrote in message news:ON**************@TK2MSFTNGP14.phx.gbl... Hi, everybody,
I'm just wondering if someone really need stuff like this: http://msdn2.microsoft.com/library/ms123401.aspx. If you answer yes than explain, please.
I've been too busy to keep up with what is proposed for VS2005. But in VS2003, Regions "within" a method are not supported. I find myself using them quite a bit, especially because I miss the Single Procedure view of VB6. I group related things, such as all the properties of a Class, and other related procedures. Keep things grouped, when they're finished off, just collapse them. In rare cases, such as very long and complex methods where refactoring just isn't appropriate, I think I would like the option to have regions "within" a method as well.
Personally, I like them. However, with the proposed ability to break classes into seperate files, I might choose that instead. If I had a Single Procedure view still, I would probably use Regions less.
Gerald
Hi,
I think it would be nice to have.
Some functions or subs are so big that i would like to structure them a
bit with #Regions.
p.s. I use it a lot, and it makes long code much more readable, and
easier to find things back.
Regards
Peter
gaidar wrote: Hi, everybody,
I'm just wondering if someone really need stuff like this: http://msdn2.microsoft.com/library/ms123401.aspx. If you answer yes than explain, please.
Thanks!
Gaidar
"Peter Verijke" <pe***@verijke.com> schrieb: Some functions or subs are so big that i would like to structure them a bit with #Regions. p.s. I use it a lot, and it makes long code much more readable, and easier to find things back.
Maybe you should refactor your code :-).
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Herfried, Maybe you should refactor your code :-).
--
You won't believe it, I had the same idea as you reading this thread,
:-)
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lawrence |
last post by:
I've been bad about documentation so far but I'm going to try to be
better. I've mostly worked alone so I'm the only one, so far, who's
suffered from my bad habits. But I'd like other programmers...
|
by: C# Learner |
last post by:
1) How often do you put regions into your code?
a) very often
b) occasionally
c) infrequently
d) never
2) If you didn't answer (d), what do you use regions for?
a) hiding ugly code
|
by: Simon |
last post by:
Just starting on C# and would like to know what suggestions
there are for the order in which declarations, event
handlers, properties, private code, nested classes, etc,
etc appear in your files....
|
by: julien |
last post by:
Hello,
I posted this question on the NDoc-user mailing list, but it looks like
a dead list (no messages for 10 days!).
I'd like to use NDoc tags or custom tags inside methods like:
void...
|
by: pemo |
last post by:
Is C really portable? And, apologies, but this is possibly a little OT?
In c.l.c we often see 'not portable' comments, but I wonder just how
portable C apps really are.
I don't write...
|
by: Adam Hartshorne |
last post by:
Hi All,
I was wondering if somebody could post a few lines of code which would
produce random colors, which will be used in defining different regions
on a mesh. So in addition to having n...
|
by: Spleenwort |
last post by:
With regard to XML comments in c#.
I think that #regions should be self-documenting relative to XML
comments or that a <region> tag should be defined and auto-inserted
when you type #region...
|
by: Louis B. (ldb) |
last post by:
I have a long running program that eventually crashes when valloc()
returns a 0. This program is relatively non-trivial as it's written in
Ada, is multithreaded, has alot of SSE routines. A memory...
|
by: nickels |
last post by:
Well im writing a program in java and my program had to do with Sudoku but its only 4 by 4 not 9 by 9. My program checks to see weather the rows, columns, and regions add up to 10. The output would...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |