C# IntelliSense is suck!

  • Thread starter Thread starter Dave
  • Start date Start date
* "Fergus Cooney said:
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...
 
<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
 
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
 
* "Tom Spink said:
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...

;-)
 
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
 
What did I tell you Spock, - Bones and you just have different ways of
measuring.

Kirk out.
 
Hi Tom,

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

Regards,
Fergus
 
* "Fergus Cooney said:
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 said:
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.
 
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
 
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
 
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.
 
Hi Herfried,

With Pleasure and Merriment ;-))

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

Regards,
Fergus
 
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
 
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
 
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
 
Back
Top