Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

C# IntelliSense is suck!

0 views
Skip to first unread message

Dave

unread,
Oct 10, 2003, 11:02:36 AM10/10/03
to
I am a VB.NET guy, recently i tried to write program using C#, having being
pampered by VB.NET's IntelliSense i find that the C#'s IntelliSense is SUCK!

Robin Tucker

unread,
Oct 10, 2003, 11:30:24 AM10/10/03
to
Thankyou for offering your opinion.

Err, perhaps it would be useful to say WHY it sucks? Otherwise, I have just
wasted 4 seconds of my life reading your message.

"Dave" <da...@nowhere.com> wrote in message
news:3f86c8f6$1...@news.starhub.net.sg...

Fergus Cooney

unread,
Oct 10, 2003, 12:12:20 PM10/10/03
to
Damn!!
8 seconds gone.
Pity the poor person who reads <my> reply too!!


:\\derian

unread,
Oct 10, 2003, 12:26:41 PM10/10/03
to
i think thats the reason c# developers usually think they are better than vb
developers
at least thats the way it is over here... all the # guys think they have it
so tough b/c intelisense doesn't change a word to uppercase
and blah blah blah... since i'm relatively lazy, i like hitting ctrl +
spacebar and having my class names typed out...

thats just me though!

"Dave" <da...@nowhere.com> wrote in message
news:3f86c8f6$1...@news.starhub.net.sg...

Cowboy (Gregory A. Beamer)

unread,
Oct 10, 2003, 12:31:23 PM10/10/03
to
Is suck or sucks? I do not have a problem with the Intellisense, but rather
with the fact that C# does not keep up with you like VB.NET (for the record,
I code mostly in C#). That should change in the next version, from the
rumors I have heard.

The syntax in VB.NET helps some, as you have to type in declarations like so
in C#:

SqlConnection conn;

But, you can use fully qualified names:

System.Data.SqlClient.SqlConnection conn;

to get Intellisense. Or an alias:

using System.Data.SqlClient = sql;

VB.NET is easier here, as you type:

Dim conn As SqlConnection

and have a drop down.

Is this what you are talking about?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************


"Dave" <da...@nowhere.com> wrote in message
news:3f86c8f6$1...@news.starhub.net.sg...

Cor

unread,
Oct 10, 2003, 12:33:39 PM10/10/03
to
4*4*4 seconds gone


Daniel Pratt

unread,
Oct 10, 2003, 2:14:58 PM10/10/03
to
Hi :\\derian,

":\\derian" <der...@someplace.com> wrote in message
news:O0jCLt0j...@tk2msftngp13.phx.gbl...


> i think thats the reason c# developers usually think they are better than
vb
> developers
> at least thats the way it is over here... all the # guys think they have
it
> so tough b/c intelisense doesn't change a word to uppercase
> and blah blah blah... since i'm relatively lazy, i like hitting ctrl +
> spacebar and having my class names typed out...
>
> thats just me though!

FWIW, ctrl + spacebar works just as well in C#. It even corrects the
capitalization, which is quite handy. Actually I consider myself both a VB
programmer and a C# programmer, which leaves me in the odd position of
feeling that I'm better than myself.

Regards,
Dan


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 2:35:13 PM10/10/03
to
* "Dave" <da...@nowhere.com> scripsit:

> I am a VB.NET guy, recently i tried to write program using C#, having being
> pampered by VB.NET's IntelliSense i find that the C#'s IntelliSense is SUCK!

ACK. C# sucks. VB.NET rules.

SCNR

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

Fergus Cooney

unread,
Oct 10, 2003, 3:03:51 PM10/10/03
to
ROFL


Tom Spink

unread,
Oct 10, 2003, 3:13:51 PM10/10/03
to
110% accurate.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message
news:#ZjVi31j...@TK2MSFTNGP10.phx.gbl...

Fergus Cooney

unread,
Oct 10, 2003, 3:04:11 PM10/10/03
to
ROFLMAO


Tom Shelton

unread,
Oct 10, 2003, 3:48:28 PM10/10/03
to
In article <#ZjVi31j...@TK2MSFTNGP10.phx.gbl>, Herfried K. Wagner [MVP] wrote:
> * "Dave" <da...@nowhere.com> scripsit:
>> I am a VB.NET guy, recently i tried to write program using C#, having being
>> pampered by VB.NET's IntelliSense i find that the C#'s IntelliSense is SUCK!
>
> ACK. C# sucks. VB.NET rules.
>
> SCNR
>

Personally, all my development is in C#.... I like it :)

--
Tom Shelton
MVP [Visual Basic]

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 3:48:45 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> ROFLMAO

It's the truth.

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 3:55:38 PM10/10/03
to
* Tom Shelton <t...@mtogden.com> scripsit:

>>> I am a VB.NET guy, recently i tried to write program using C#, having being
>>> pampered by VB.NET's IntelliSense i find that the C#'s IntelliSense is SUCK!
>>
>> ACK. C# sucks. VB.NET rules.
>>
>> SCNR
>
> Personally, all my development is in C#.... I like it :)

I use VB.NET and C#, but I don't like C#.

:-)

Cor

unread,
Oct 10, 2003, 3:58:16 PM10/10/03
to
Hi Tom,
When I read this, I think I have to go start using C#
Do you know if I can use the microsoft basic functions in it, because my
experimences showed me that they are such a lot faster?.
Cor


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 4:04:26 PM10/10/03
to
* "Cor" <n...@non.com> scripsit:

> When I read this, I think I have to go start using C#
> Do you know if I can use the microsoft basic functions in it, because my
> experimences showed me that they are such a lot faster?.

I hope this is a joke.

Fergus Cooney

unread,
Oct 10, 2003, 4:09:27 PM10/10/03
to

VB.NET is a friendly Labrador which wags its tail and knocks things over.
It's just a bit boisterous and clumsy at times. Always seems to take up more
space than you'd expect. It does the most horrendous farts.

C# is a Police-trained German Shepherd. Sharp is a good word for it. Its
moves are clean and efficient. Cuddly it ain't - though it's quite beautiful.
You wouldn't have it for the children to play with - not because it's
dangerous (too well trained for that) but it just wouldn't be as much fun as a
Labrador.


Fergus Cooney

unread,
Oct 10, 2003, 4:18:06 PM10/10/03
to
Hi Cor,

I would recommend learning C# with as much fervour as I could muster. So
many of the things that VB obscures become clear when you do them in C#.

Part of this is the fact that a 100 line block of VB can be done in 20
lines of C# - so you can <see it all>. C# and elegance can be as one with each
other. I'd rarely say that with VB.

Regards,
Fergus


Cor

unread,
Oct 10, 2003, 4:21:59 PM10/10/03
to
Hi Brutus,
No I told you that I did expirimences and that the Visual Basic functions
are faster that the system.net members.
I gave you that test program.
Cor


Cor

unread,
Oct 10, 2003, 4:23:21 PM10/10/03
to
I am waiting on the comments or Armin


Daniel Pratt

unread,
Oct 10, 2003, 4:26:32 PM10/10/03
to
This is the insidiousness of VB. It promotes "loose" thinking, which leads
to "top posting" and not recognizing simple logic such as the fact that no
statement can ever be more than 100% accurate.

Regards,
Dan

"Tom Spink" <thomas...@ntlworld.com> wrote in message
news:OydjfK2j...@TK2MSFTNGP11.phx.gbl...

Cor

unread,
Oct 10, 2003, 4:27:39 PM10/10/03
to
Hi Brutus,
I forgot the reference

> > When I read this, I think I have to go start using C#
> > Do you know if I can use the microsoft basic functions in it, because my
> > experimences showed me that they are such a lot faster?.
>
No I told you that I did expirimences and that the Visual Basic functions
are faster that the system.net members.
I gave you that test program.
:-))
Cor


Tom Shelton

unread,
Oct 10, 2003, 4:37:21 PM10/10/03
to

What functions are faster? Almost all of the VB.NET functions delegate
to actuall .NET functions anyway...

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 4:35:28 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:

ROFLM*O

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 4:36:04 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> Part of this is the fact that a 100 line block of VB can be done in 20
> lines of C# - so you can <see it all>. C# and elegance can be as one with each
> other. I'd rarely say that with VB.

Are you sure?!

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 4:36:56 PM10/10/03
to
* "Cor" <n...@non.com> scripsit:

> No I told you that I did expirimences and that the Visual Basic functions
> are faster that the system.net members.

I know that (your test program), but I thought you wanted to turn to C# *shock*.

Tom Shelton

unread,
Oct 10, 2003, 4:41:30 PM10/10/03
to

I don't see how they can be faster, since most of them are just wrappers
around the .NET framework classes... But, yes - if you like you can use
them. Just reference Microsoft.VisualBasic.dll, make your appropriate
using statements, and off you go.

Cor

unread,
Oct 10, 2003, 4:48:47 PM10/10/03
to
Hi Fergus,
I love the {}, the way a variable and an object is declared, the unifomity
of the program control,
do you real think I did not do some expirimences with it; I can do the most
strange things with JavaScript.

I find the word "then" absolute unneccesary in Visual Basic (that is a word
that I always forget to write).

But I realy hate the == and the case sensitive (probably because that
strange document object model, that has the uppercases on the most strange
places).

You must understand that, it has a lot of plusses for me, one of the things
to that C is for what is the code, almost natural language independent. But
because of the framework it is not and has therefore almost no benefits
about that above Visual Basic.

But I love it, if a it is posible to make a program that don't need comment
blocks.

And I think that is better to do with Visual Basic than C#

Therefore I don't understand those people who ask for comments blocks in
Visual Basic,

(You understand than too why I don't like the regular expression).

Cor


Cor

unread,
Oct 10, 2003, 4:57:32 PM10/10/03
to
Tom,

I use the system.members, I don't like it that the index of the functions
start at 1.

But I was always arguing with Herfried about them, and thought why not it is
a benefit of a natural language when you can use more words to express
yourself.

Last week there was an arguing in this newsgroup with Jay B. and some others
about the regular expressions, the functions and the system members.

Jay B, said it was too discussed in the C# group but nobody did make a
testprogram, so I did.

With a String the Visual.Basic function Find was twice as fast as the
system.member indexof exactly on the same way used.
The regulair expression was 15 times slower than the indexof.
Only with a character, (that is not in the functions), the indexof was
faster.

I was perplex.

Cor


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 4:58:07 PM10/10/03
to
* "Cor" <n...@non.com> scripsit:

> You must understand that, it has a lot of plusses for me, one of the things

C++
++

Four "plusses".

Fergus Cooney

unread,
Oct 10, 2003, 5:23:51 PM10/10/03
to
Hi Dan,

ROFL.

Although in Tom's defense I have to say that there's Spock logic (range 0%
to 100%) and there's McCoy logic. The latter can have 'percentages' far in
excess of 100 - calculated, as it is, with emotionally fuzzy logic.

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 5:28:53 PM10/10/03
to
Hi Tom,

That's what I thought.

But this character counting loop
Do
iResult = InStr(iStart, strInput, strDelimiter)
If iResult = 0 Then Exit Do
iCount += 1
iStart = iResult + 1
Loop
is actually faster than
Do
iResult = strInput.IndexOf (sDelimiter, iStart)
If iResult < 0 Then Exit Do
iCount += 1
iStart = iResult + 1
Loop
(though not when IndexOf uses a Char)

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 5:35:28 PM10/10/03
to
Hi Herfried,

Sure, I'm sure.

Take:
Public Property Foo As String
Get
Return m_Foo
End Get
Set
m_Foo = Value
End Set
End Property
vs
public string Foo { get { return m_Foo; } set { m_Foo = value; }}
for instance.

That's perhaps an extreme example (8 to 1), but C# has lots of space
savers.

Regards,
Fergus


Tom Shelton

unread,
Oct 10, 2003, 5:43:11 PM10/10/03
to

Interesting... Did anyone look at the IL to see what was going on? Just
curious.

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 5:44:40 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:

ACK. IMO the C# version is "unreadable".

Rick Mogstad

unread,
Oct 10, 2003, 5:51:41 PM10/10/03
to
FWIW, i would tend to agree. They are getting compiled into the same IL anyhow, so id rather have
code that makes sense just by looking at it.


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message
news:u%23tN5e3j...@TK2MSFTNGP11.phx.gbl...

Fergus Cooney

unread,
Oct 10, 2003, 6:15:46 PM10/10/03
to
Hi Tom,

I haven't done so and no one else mentioned it. If you find yourself
delving, it would be interesting to know, but STD_OUTPUT_HANDLE might keep you
too busy! ;-)

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 6:21:17 PM10/10/03
to
Hi Herfried,

|| IMO the C# version is "unreadable".

That's useful to know - ponder and recall that feeling, then multiply it.
Many one-language-only speakers feel <that>, and more, when they see a page of
German or French, or English, or Russian, Greek, Sanscrit, Korean,
Babylonian....

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 6:29:35 PM10/10/03
to
Hi Herfried, Rick,

Europeans once discovered a tribe of natives who had lived their entire
lives in the jungle. A few of these natives once had occasion to travel with
the Europeans and eventually came to areas of plains where herds of grazing
animals lived. They could be seen for miles around. The natives couldn't
believe how some of these creatures were so big and yet others (of the same
type) were so tiny. They simply couldn't understand how the images were small
because of perspective. They had never perceived anything like it in the
jungle where the longest as-far-as-the-eye-can-see distance is measured in
mere metres.

So it is with C# and VB.

======================================
The standard formatting of braces in C# is
string foo()
{
Code at this level.
}

I <hate> it - for my eyes are used to
string foo()
{
Code at this level.
}

The former makes me feel very uncomfortable because my eyes can't parse it
as readily as the style I've been using for all these years.

Regards,
Fergus


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 6:37:02 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:

It's not unreadable because I don't "speak" C#, but my eyes need much
more time to understand the code.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET

<http://www.mvps.org/dotnet> (updated!)

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 6:52:00 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> So it is with C# and VB.
>
> ======================================
> The standard formatting of braces in C# is
> string foo()
> {
> Code at this level.
> }
>
> I <hate> it - for my eyes are used to
> string foo()
> {
> Code at this level.
> }
>
> The former makes me feel very uncomfortable because my eyes can't parse it
> as readily as the style I've been using for all these years.

ACK. One of our professors used this indentation style:

\\\
class Foo {
public void makeIt() {
doIt();
}
}
///

IMO really stupid because the eyes cannot parse it.

OT:

You always complain about my posts, so I will complain about your posts
too. In the usenet ">" is used to quote the text of the post you are
answering. Some newsreaders are able to parse the ">>>" at the
beginning of the lines and display them as vertical lines, the text is
sometimes displayed in different colors, depending on the quuting
depth.

When using non-standard quoting characters like "||" and large
indentations, the text will be "unreadable" with some newsreaders. My
newsreader, for example, displays the "||" as a smiley and is unable to
quote the text. I always have to remove the "||" and the indentation to
get it work...

Tom Spink

unread,
Oct 10, 2003, 6:59:39 PM10/10/03
to
<Mouth flaps like a fish>

"The Banana increased in size by 300%"

Anyways..... My statement was not meant to be taken literally, but as an
indication to my feelings on the fact that VB.NET is by far the best
language EVER.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Daniel Pratt" <kolREMOVET...@hotmail.com> wrote in message
news:uZywMz2j...@TK2MSFTNGP12.phx.gbl...

Tom Spink

unread,
Oct 10, 2003, 7:04:35 PM10/10/03
to
Hi Fergus, Success!!! VB wins again

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Fergus Cooney" <filt...@tesco.net> wrote in message
news:#O0#0W3jDH...@TK2MSFTNGP09.phx.gbl...

Tom Spink

unread,
Oct 10, 2003, 7:06:54 PM10/10/03
to
Hi,

It's not even well formed C, IMO. You should see some of my C++ code:

BOOL IsAdminOwnerW ( LPWSTR wszFile )
{

LPSTR szFile;
DWORD dwLen = 0;

dwLen = WideCharToMultiByte( CP_ACP, 0, wszFile, -1, NULL, NULL, NULL,
NULL );

szFile = ( LPSTR ) LocalAlloc( LMEM_FIXED | LMEM_ZEROINIT, dwLen );
WideCharToMultiByte( CP_ACP, 0, wszFile, -1, szFile, dwLen, NULL,
NULL );

BOOL bRet = IsAdminOwnerA( szFile );

LocalFree( ( HLOCAL ) szFile );

return bRet;

}

See? Spaces everywhere.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:u#tN5e3jD...@TK2MSFTNGP11.phx.gbl...

James T. Kirk

unread,
Oct 10, 2003, 7:09:23 PM10/10/03
to
What did I tell you Spock, - Bones and you just have different ways of
measuring.

Kirk out.


Fergus Cooney

unread,
Oct 10, 2003, 7:11:22 PM10/10/03
to
Hi Tom,

By far the best VB ever, for sure, but are you saying that it's better
than Lisp?

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 7:12:11 PM10/10/03
to
LOLWPAM


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 7:06:24 PM10/10/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:

> Anyways..... My statement was not meant to be taken literally, but as an
> indication to my feelings on the fact that VB.NET is by far the best
> language EVER.

I am not alone with this feeling...

;-)

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 7:26:31 PM10/10/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
> It's not even well formed C, IMO. You should see some of my C++ code:
>
> BOOL IsAdminOwnerW ( LPWSTR wszFile )
> {
>
> LPSTR szFile;
> DWORD dwLen = 0;
>
> dwLen = WideCharToMultiByte( CP_ACP, 0, wszFile, -1, NULL, NULL, NULL,
> NULL );
>
> szFile = ( LPSTR ) LocalAlloc( LMEM_FIXED | LMEM_ZEROINIT, dwLen );
> WideCharToMultiByte( CP_ACP, 0, wszFile, -1, szFile, dwLen, NULL,
> NULL );
>
> BOOL bRet = IsAdminOwnerA( szFile );
>
> LocalFree( ( HLOCAL ) szFile );
>
> return bRet;
>
> }
>
> See? Spaces everywhere.

I _hate_ the spaces, I would write:

\\\
BOOL IsAdminOwnerW(LPWSTR wszFile)
{
...
}
///

Notice the 8 spaces used for indentation.

Fergus Cooney

unread,
Oct 10, 2003, 7:27:59 PM10/10/03
to
Hi Herfried,

<http://www.mvps.org/dotnet> (updated!)

What's new, pussycat?

Regards,
Fergus


Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 7:27:16 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> LOLWPAM

What does this acronym stand for?

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 7:24:05 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> By far the best VB ever, for sure, but are you saying that it's better
> than Lisp?

By far the _only_ VB.NET ever. VB Classic is a _different_ programming
language.

Tom Spink

unread,
Oct 10, 2003, 7:32:07 PM10/10/03
to
Who spells Lisp with an 's' in it anyway?

And FYI, Fergus, or should I say James T. Kirk? I checked the headers of the
messages and your IP addresses match. ;-)

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Fergus Cooney" <filt...@tesco.net> wrote in message

news:exmHUP4...@TK2MSFTNGP11.phx.gbl...

Tom Spink

unread,
Oct 10, 2003, 7:33:34 PM10/10/03
to
Ooohhh, I'd say the spaces make the code look neater, at least, if you look
at them in a fixed-width font. It helps me distinguish between braces.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:uBdumY4j...@TK2MSFTNGP10.phx.gbl...

Herfried K. Wagner [MVP]

unread,
Oct 10, 2003, 7:33:29 PM10/10/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> <http://www.mvps.org/dotnet> (updated!)
>
> What's new, pussycat?

ROFL

The colors...

;-)

Fergus Cooney

unread,
Oct 10, 2003, 7:55:17 PM10/10/03
to
Hi Bones,

Ith there no eth in Lithp then?

Bones, I'm surprised - given that I mentioned you and Spock in a previous
post under my Fergus alias ....

Kirk out.


Fergus Cooney

unread,
Oct 10, 2003, 7:58:02 PM10/10/03
to
Hi Herfried,

With Pleasure and Merriment ;-))

I felt more joy and amusement than straight humour and laughter.

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 8:03:52 PM10/10/03
to
Hi Tom,

Oh groan,


LocalFree( ( HLOCAL ) szFile );

No, no, please - no more, I can't take any more!!

LocalFree ((HLOCAL) szFile);
Oh, that's better. My eyes are in focus again.

or


LocalFree( ( HLOCAL ) szFile );

Look at those poor lonely brackets all out on their own. They shouldn't be
left to fend for themselves, they're too young.

LocalFree ((HLOCAL) szFile);
That's better - a responsible identifier to look after them.

Regards,
Fergus


Fergus Cooney

unread,
Oct 10, 2003, 8:51:24 PM10/10/03
to
Hi Herfried,

In OE there is a drop-down listbox for choice of quotation character. The
choice is '>', ':' and '|'. I prefer the '|' because it produces clean
vertical lines. It's also easier to type, requiring only one hand. And I
prefer '||' because it seems clearer.

!! However, for you,
!! I am willing to change it.
!! Could you cope with '!!'?

To change the indentation I'll need more persuasion. Start talking. ;-)

Could you email me one of these posts as your reader shows it I'm curious
as to how these smileys look.

Regards,
Fergus


Tom Spink

unread,
Oct 11, 2003, 7:26:40 AM10/11/03
to
> LocalFree ((HLOCAL) szFile);

*Tom cries and breaks down into floods of tears, he will be scarred for
life*

I _hate_ spaces between identifiers and brackets, okay, perhaps I can make
my peace with getting rid of the spaces on the casting statement:

LocalFree( (HLOCAL) szFile );

But, I think it looks much cleaner (especially when you're injecting into
windows ;-)) to put spaces after the parentheses.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Fergus Cooney" <filt...@tesco.net> wrote in message

news:uAAzps4j...@TK2MSFTNGP09.phx.gbl...

Tom Spink

unread,
Oct 11, 2003, 7:28:02 AM10/11/03
to
Actually, I rerouted the demijohn coordinates to include a modulating pulse
phaser, which in turn led to a deionization of the (HI) RISC 64-bit
hyperpiping computer nanotechnology preprocessor processor.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Fergus Cooney" <filt...@tesco.net> wrote in message

news:uus02n4j...@TK2MSFTNGP10.phx.gbl...

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 7:28:51 AM10/11/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> In OE there is a drop-down listbox for choice of quotation character. The
> choice is '>', ':' and '|'. I prefer the '|' because it produces clean
> vertical lines. It's also easier to type, requiring only one hand. And I
> prefer '||' because it seems clearer.

I think that there is no newsreader available that knows that " ||"
is a single indentation level.



> !! However, for you,
> !! I am willing to change it.
> !! Could you cope with '!!'?
>
> To change the indentation I'll need more persuasion. Start talking. ;-)

Why do you use the indentation? I really like it in books, but news
posts are plain text files and it should be possible to show them on any
device.

> Could you email me one of these posts as your reader shows it I'm curious
> as to how these smileys look.

Yep... I will send you a screenshot.

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 7:53:49 AM10/11/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
>> LocalFree ((HLOCAL) szFile);
>
> *Tom cries and breaks down into floods of tears, he will be scarred for
> life*
>
> I _hate_ spaces between identifiers and brackets, okay, perhaps I can make
> my peace with getting rid of the spaces on the casting statement:

Full ACK.

> LocalFree( (HLOCAL) szFile );
>
> But, I think it looks much cleaner (especially when you're injecting into
> windows ;-)) to put spaces after the parentheses.

I prefer this:

\\\
LocalFree((HLOCAL)szFile);
///

:-)

My bracket-matching algorithm is very fast...

What-a-Tool

unread,
Oct 11, 2003, 8:18:06 AM10/11/03
to
Lab to a Shepherd - I like that!
See C# mentioned occasionally here, along with occasional bits of code here
and there, but never the Visual C++ that is also in Visual Studio.
Is this a totally different animal? (Saw a quote once " "C" makes it
possible for us to blow off our own foot - C++ makes this a bit more
unlikely, but when it does happen, you blow off your whole leg" (or
something like that))

I'm starting to get a foggy picture in my head of of just what the
capabilties of .Net are, and starting to realize that it would probably take
a lifetime to fully mis-understand it all.
Have a lot of friends that are very knowledgeable about computers, but know
squat about programming. I kinda get the impression that I am not taken
seriously when I mention that I am learning VB. Kinda like saying that I'm
studing the complete works of Dr. Suess for English Lit.
(Thats not what I'M saying - I know different!)
Right now I'm only in my 4th week of Advanced VB, and I still get this
strange humming in my ears when I think about abstract classes,
but I've kinda been toying with the idea of trying a C++ class, maybe next
semester. Would this make me more valuable in the job market, or would I be
better off just trying to master (Ha-Ha!) VB? Is it worth it? My professor
seems to think VB is the future, and fewer and fewer people are going to be
learning these other languages.
Opinions?
--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"Fergus Cooney" <filt...@tesco.net> wrote in message

news:%23Ldvcq2...@TK2MSFTNGP09.phx.gbl...
>
> VB.NET is a friendly Labrador which wags its tail and knocks things
over.
> It's just a bit boisterous and clumsy at times. Always seems to take up
more
> space than you'd expect. It does the most horrendous farts.
>
> C# is a Police-trained German Shepherd. Sharp is a good word for it.
Its
> moves are clean and efficient. Cuddly it ain't - though it's quite
beautiful.
> You wouldn't have it for the children to play with - not because it's
> dangerous (too well trained for that) but it just wouldn't be as much fun
as a
> Labrador.
>
>


Fergus Cooney

unread,
Oct 11, 2003, 8:46:03 AM10/11/03
to
Hi Tom,

The last time I rerouted a demijohn, I got very drunk very quickly, hic!

Regards,
Fergus


Fergus Cooney

unread,
Oct 11, 2003, 9:05:53 AM10/11/03
to
Hi Herfried,

Why do I use indentation?

Lol. For a man who likes this:
LocalFree((HLOCAL)szFile);
no explanation will suffice because it involves mention of the word
'space'.

;-))

!! I think that there is no newsreader available that
!! knows that " ||" is a single indentation level.

People know it. I don't understand your statement.

!! However, for you,
!! I am willing to change it.
!! Could you cope with '!!'?

No comment ?

Regards,
Fergus

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 9:23:45 AM10/11/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> !! I think that there is no newsreader available that
> !! knows that " ||" is a single indentation level.
>
> People know it. I don't understand your statement.

But I have to remove your quotes and insert standard quoting myself. I
prefer:

\\\
>>> Bla
>>> Foo
>>
>> Blaba
>> Foo
>
> Baz
> Bar
///

And I _hate_:

\\\
>> || Bla
>> || Foo
>>
>> BlaBla
>> Foo
>
> Baz
> Bar
///

Tom Spink

unread,
Oct 11, 2003, 11:26:19 AM10/11/03
to
I *knew* you were going to say that. ;-)

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Fergus Cooney" <filt...@tesco.net> wrote in message

news:ONz0lW$jDHA...@tk2msftngp13.phx.gbl...

Tom Spink

unread,
Oct 11, 2003, 11:27:32 AM10/11/03
to
Microsoft(r) Bracket Matcher XP?

Anyway, you could at least have a space between the cast and the variable?

> \\\
LocalFree((HLOCAL) szFile);
> ///

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:OWp1h5#jDHA...@TK2MSFTNGP10.phx.gbl...

Mattias Sjögren

unread,
Oct 11, 2003, 12:12:45 PM10/11/03
to

>> But this character counting loop
[...]
>> is actually faster than

Only with Option Compare Binary. It's about the same or somewhat
slower with Option Compare Text.


>Interesting... Did anyone look at the IL to see what was going on?

InStr (with Option Compare Binary) uses
CultureInfo.InvariantCulture.CompareInfo internally. Because
InvariantCulture is constant, it can be cached (and the VB library
does that).

String.IndexOf (and InStr with Option Compare Text) uses
CultureInfo.CurrentCulture.CompareInfo. CurrentCulture can be changed,
and so has to be retrieved every time IndexOf is called.

So for a loop like this one, it's better to manually retrieve the
appropriate CompareInfo to a local variable and call IndexOf on that
instead.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 12:30:26 PM10/11/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
> Microsoft(r) Bracket Matcher XP?

Herfried's Brain Supreme.

> Anyway, you could at least have a space between the cast and the variable?
>
>> \\\
> LocalFree((HLOCAL) szFile);
>> ///

Why?

Tom Spink

unread,
Oct 11, 2003, 2:28:33 PM10/11/03
to
> Herfried's Brain Supreme.

ROFL

> Why?

Why Not? Because it looks pretty, and makes your code readable:

MessageBox((HWND)hWndMyWndPointer,(LPCTSTR)lpszSomeStringPointer,(LPCTSTR)lp
szAnotherUnnecessarilyLongName,(DWORD)dwCastingGalore);

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:uYr10VBk...@TK2MSFTNGP09.phx.gbl...

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 2:41:07 PM10/11/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
>> Why?
>
> Why Not? Because it looks pretty, and makes your code readable:
>
> MessageBox((HWND)hWndMyWndPointer,(LPCTSTR)lpszSomeStringPointer,(LPCTSTR)lp
> szAnotherUnnecessarilyLongName,(DWORD)dwCastingGalore);

I prefer to add spaces after the "," characters. I prefer this:

\\\
MessageBox(
(HWND)hWndMyWndPointer,
(LPCTSTR)lpszSomeStringPointer,
(LPCTSTR)lpszAnotherUnnecessarilyLongName,
(DWORD)dwCastingGalore
);
///

Tom Spink

unread,
Oct 11, 2003, 4:14:36 PM10/11/03
to
Oh no.... don't even get me started.... Multiple lines???? I can think of
nothing worse. I would rather program in FORTRAN (hehe ;)) than put multiple
lines on a call.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:OSdDEdCk...@TK2MSFTNGP12.phx.gbl...

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 4:50:38 PM10/11/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
> Oh no.... don't even get me started.... Multiple lines???? I can think of
> nothing worse. I would rather program in FORTRAN (hehe ;)) than put multiple
> lines on a call.

I use multiple lines in VB.NET too when preparing code for publication
in a book (there must not be more than 80 characters in one line).

Tom Spink

unread,
Oct 11, 2003, 5:15:47 PM10/11/03
to
I was talking about C++, when I gave my previous views, I can allow VB.NET
in certain circumstances, such as creating a ColorMatrix, with an array of
an array of singles:

{ _
..., _
..., _
..., _
..., _
... _
}

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:e9KB3lDk...@TK2MSFTNGP11.phx.gbl...

Tom Shelton

unread,
Oct 11, 2003, 5:21:54 PM10/11/03
to
On 2003-10-11, Mattias Sjögren <mattias.don...@mvps.org> wrote:
>
>>> But this character counting loop
> [...]
>>> is actually faster than
>
> Only with Option Compare Binary. It's about the same or somewhat
> slower with Option Compare Text.
>
>
>>Interesting... Did anyone look at the IL to see what was going on?
>
> InStr (with Option Compare Binary) uses
> CultureInfo.InvariantCulture.CompareInfo internally. Because
> InvariantCulture is constant, it can be cached (and the VB library
> does that).
>
> String.IndexOf (and InStr with Option Compare Text) uses
> CultureInfo.CurrentCulture.CompareInfo. CurrentCulture can be changed,
> and so has to be retrieved every time IndexOf is called.
>
> So for a loop like this one, it's better to manually retrieve the
> appropriate CompareInfo to a local variable and call IndexOf on that
> instead.
>
>
>
> Mattias
>

Mattias,

You are d'Man! Thanks for that. I was going to start looking into it
this afternoon... Now I can go spend time with the fam instead :)

--
Tom Shelton
MVP [Visual Basic]

Herfried K. Wagner [MVP]

unread,
Oct 11, 2003, 7:57:55 PM10/11/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
> I was talking about C++, when I gave my previous views, I can allow VB.NET
> in certain circumstances, such as creating a ColorMatrix, with an array of
> an array of singles:
>
> { _
> ..., _
> ..., _
> ..., _
> ..., _
> ... _
> }

\\\
Dim astr() As String = _
{ _
"Foo", _
"Goo", _
"Bar" _
}
///

Fergus Cooney

unread,
Oct 13, 2003, 5:48:56 AM10/13/03
to
Hi Tom, Herfried

Oh do give me break. ;-))

Preferably after each comma, and closing bracket.

I take it Herfried, that you prefer crowds and parties to the life of a
loner. Me, I need my space!!

Regards,
Fergus


Fergus Cooney

unread,
Oct 13, 2003, 5:39:34 AM10/13/03
to
Hi Tom,

You knew I was going to say that? 'Course you did. There's the man who
does the straight lines, and there's the one who gets the gags! ;-))

Regards,
Fergus


Fergus Cooney

unread,
Oct 13, 2003, 5:49:15 AM10/13/03
to
Hi Herfried,

Commas at the left are much neater.

Regards
Fergus


Cor

unread,
Oct 13, 2003, 6:50:16 AM10/13/03
to
Hi Fergus,
Please a reference by value?
:-))
Cor


Herfried K. Wagner [MVP]

unread,
Oct 13, 2003, 7:14:49 AM10/13/03
to
* "Fergus Cooney" <filt...@tesco.net> scripsit:
> Commas at the left are much neater.

?!?

Fergus Cooney

unread,
Oct 13, 2003, 7:14:07 AM10/13/03
to
Howdy Cor, :-)

A reference by value to what, I wonder?

Regards,
Fergus


Cor

unread,
Oct 13, 2003, 7:27:12 AM10/13/03
to
Hi Fergus.

I was lining up with my mouse, but could not find what it was, and as you
know those OT threads from Herfrid become intresting when the start to
become long.

:-)))))))

Cor


Tom Spink

unread,
Oct 14, 2003, 3:48:11 PM10/14/03
to
ByRef? ByVal? ByEggs?

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations


"Cor" <n...@non.com> wrote in message
news:3f8a8c1c$0$14420$48b9...@reader20.wxs.nl...

Herfried K. Wagner [MVP]

unread,
Oct 14, 2003, 4:12:25 PM10/14/03
to
* "Tom Spink" <thomas...@ntlworld.com> scripsit:
> ByRef? ByVal? ByEggs?

???

Tom Spink

unread,
Oct 14, 2003, 5:33:28 PM10/14/03
to
Fergus was talking about a reference by value. So I thought I'd share
passing an entire object, passing a 32-bit heap pointer, or passing it by
egg. ByUPS might be a bit faster, but it's an overnight delivery.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

" System.Reflection Master "

==== Converting to 2002 ====
Remove inline declarations

"Herfried K. Wagner [MVP]" <hirf-spa...@gmx.at> wrote in message

news:bmhlhs$mu7vn$2...@ID-208219.news.uni-berlin.de...

Alexandre Moura

unread,
Oct 17, 2003, 4:38:10 PM10/17/03
to
I think the quote was something along the lines: "C makes it easy to shoot
your own foot, C++ alows you to reuse the bullet"

Herfried K. Wagner [MVP]

unread,
Oct 17, 2003, 5:00:31 PM10/17/03
to
* amo...@online.microsoft.com (Alexandre Moura) scripsit:

> I think the quote was something along the lines: "C makes it easy to shoot
> your own foot, C++ alows you to reuse the bullet"

In C, we had to code our own bugs. In C++ we can inherit them.

What-a-Tool

unread,
Oct 17, 2003, 5:55:38 PM10/17/03
to
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg."
- Bjarne Stroustrup

maybe it's a misquote - but this is what I found.

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"Alexandre Moura" <amo...@online.microsoft.com> wrote in message
news:l7mQW6Ol...@cpmsftngxa06.phx.gbl...

Fergus Cooney

unread,
Oct 17, 2003, 6:23:18 PM10/17/03
to
Hi Sean,

Yes, that's the one I remember and it still makes me laugh!!

The .NET version doesn't have the same impact at all:
"VB.NET makes it possible to get a paper-cut - C# does too, and you
can also get a splinter."

Referring to your previous post, I'd certainly recommend learning C# as
well. It has advantages that VB doesn't, language-wise, but is not the strange
beast that C++ is, relative to VB.

One nice thing about C# is that some things which don't make sense, or are
a bit fuzzy, become much clearer when you learn the C# version.

Your professor is right about the numbers - but that's always been the
case with Basic versus the world of languages. He's wrong about it being the
future though, - it's just a part of the future.

I've heard rumbles that C# commands more dosh, but haven't confirmed this.
But in view of the numbers game, scarcity = value.

Regards,
Fergus


What-a-Tool

unread,
Oct 17, 2003, 7:45:13 PM10/17/03
to
Am working on a degree in microcomputers and networking systems. Discovered
a liking for programming after a couple of Q-Basic and now VB.Net classes
(this .NET is an amazing tool), but haven't decided in which direction to go
after this semester. C# may be it.
Thanks for the input.
--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"Fergus Cooney" <filt...@tesco.net> wrote in message
news:e5zq91Pl...@TK2MSFTNGP09.phx.gbl...

Fergus Cooney

unread,
Oct 17, 2003, 9:48:02 PM10/17/03
to
Hi Sean,

LOL. Sorry to any ardent VBers.

Microcomputers and networking systems??

C# all the way - unless you go for C++.

Regards,
Fergus


0 new messages