Click here to Skip to main content
15,893,622 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: The right tool for the job... Pin
Nemanja Trifunovic8-Feb-15 4:49
Nemanja Trifunovic8-Feb-15 4:49 
GeneralRe: The right tool for the job... Pin
PIEBALDconsult8-Feb-15 5:01
mvePIEBALDconsult8-Feb-15 5:01 
GeneralRe: The right tool for the job... Pin
Sander Rossel8-Feb-15 7:20
professionalSander Rossel8-Feb-15 7:20 
GeneralRe: The right tool for the job... Pin
Sinisa Hajnal9-Feb-15 3:00
professionalSinisa Hajnal9-Feb-15 3:00 
GeneralRe: The right tool for the job... Pin
PIEBALDconsult9-Feb-15 3:46
mvePIEBALDconsult9-Feb-15 3:46 
GeneralRe: The right tool for the job... Pin
Sinisa Hajnal9-Feb-15 20:24
professionalSinisa Hajnal9-Feb-15 20:24 
GeneralRe: The right tool for the job... Pin
PIEBALDconsult10-Feb-15 6:36
mvePIEBALDconsult10-Feb-15 6:36 
GeneralRe: The right tool for the job... Pin
Sinisa Hajnal10-Feb-15 20:25
professionalSinisa Hajnal10-Feb-15 20:25 
PIEBALDconsult wrote:
Case insensitivity made sense when we used punch cards, teletypes, or early terminals that didn't support lowercase anyway. Now it only leads to confusion and increased compile times.


Except when it is autocorrected to proper case by intellisense and DOES NOT cause strange uncaught errors because you were stupid enough to call a property Name, private variable name and a constant NAME. Instead, you write name, intelisense gets the best match (or asks you while you type) and voila!

PIEBALDconsult wrote:
Does that disable the ability to leave off the parentheses on method calls?

Yes. Intelisense adds the parentheses for you. I must admit, I never even considered doing it without parenthesis nor I knew it is possible. As I said, there are nods toward VB6, it doesn't make it as bad.

PIEBALDconsult wrote:
Consider these two simple programs that execute the exact same statement. Do they produce the same IL? Do they behave the same?

They do not. Because you're doing it VB6 way instead of proper way which is:
VB
Namespace EnumTestCS
	Public NotInheritable Class EnumTestCS
		Public Shared Sub Main()
			System.Console.WriteLine(System.Text.RegularExpressions.RegexOptions.None)
		End Sub
	End Class
End Namespace

Notice that you compared class and module, which are not at all the same. This is CLASS with SHARED (static) method main. You could do it with a module ofcourse and I've done it like this, but it is not equivalent.

PIEBALDconsult wrote:
While I may be the only person in the world who needs to do this, show me how it can be done in VB.net .

Sure here it is:
VB
Namespace EventTest
	Public Class EventTest
		Public Delegate Function F() As Integer
		Public Event E As F
		Private Sub RaiseE()
			RaiseEvent E()
		End Sub
	End Class
End Namespace

GeneralRe: The right tool for the job... Pin
PIEBALDconsult11-Feb-15 4:11
mvePIEBALDconsult11-Feb-15 4:11 
GeneralRe: The right tool for the job... Pin
Sinisa Hajnal11-Feb-15 21:02
professionalSinisa Hajnal11-Feb-15 21:02 
GeneralRe: The right tool for the job... Pin
Mycroft Holmes8-Feb-15 11:46
professionalMycroft Holmes8-Feb-15 11:46 
GeneralRe: The right tool for the job... Pin
Electroduck8-Feb-15 21:05
Electroduck8-Feb-15 21:05 
GeneralRe: The right tool for the job... Pin
Nagy Vilmos8-Feb-15 22:35
professionalNagy Vilmos8-Feb-15 22:35 
GeneralRe: The right tool for the job... Pin
MikeTheFid9-Feb-15 3:20
MikeTheFid9-Feb-15 3:20 
GeneralRe: The right tool for the job... Pin
PIEBALDconsult9-Feb-15 4:00
mvePIEBALDconsult9-Feb-15 4:00 
GeneralRe: The right tool for the job... Pin
MikeTheFid10-Feb-15 4:03
MikeTheFid10-Feb-15 4:03 
GeneralRe: The right tool for the job... Pin
Sander Rossel9-Feb-15 4:07
professionalSander Rossel9-Feb-15 4:07 
GeneralRe: The right tool for the job... Pin
MikeTheFid10-Feb-15 3:55
MikeTheFid10-Feb-15 3:55 
GeneralRe: The right tool for the job... Pin
patbob9-Feb-15 5:30
patbob9-Feb-15 5:30 
GeneralRe: The right tool for the job... Pin
Sander Rossel9-Feb-15 8:15
professionalSander Rossel9-Feb-15 8:15 
GeneralRe: The right tool for the job... Pin
Kirk 103898219-Feb-15 7:24
Kirk 103898219-Feb-15 7:24 
GeneralRe: The right tool for the job... Pin
Sander Rossel9-Feb-15 8:32
professionalSander Rossel9-Feb-15 8:32 
GeneralRe: The right tool for the job... Pin
Member 107076779-Feb-15 9:33
Member 107076779-Feb-15 9:33 
GeneralWhat job would you create for yourself? Pin
Kornfeld Eliyahu Peter7-Feb-15 22:14
professionalKornfeld Eliyahu Peter7-Feb-15 22:14 
GeneralRe: What job would you create for yourself? Pin
Mike Hankey7-Feb-15 23:45
mveMike Hankey7-Feb-15 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.