C# IntelliSense is suck!

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

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

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

\\\
///

And I _hate_:

\\\
///
 
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
 
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
 
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
 
Herfried's Brain Supreme.

ROFL

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
 
* "Tom Spink said:
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
);
///
 
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
 
* "Tom Spink said:
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).
 
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
 
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 Spink said:
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" _
}
///
 
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
 
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
 
Back
Top