Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C#: "If my code in this language successfully compiles, there is a good chance my code is correct."

Gave me a good chuckle, but now I can't work out if I'm supposed to take this site seriously?

And all of the PHP statements were negative, of course...

/goes back to his PHP programming



I enjoyed Visual Basic's top few:

* I am sometimes embarrassed to admit to my peers that I know this language

* I am reluctant to admit to knowing this language

* The thought that I may still be using this language in twenty years time fills me with dread

* This language is frequently used for applications it isn't suitable for

* Code written in this language tends to be verbose

* This language is likely to be a passing fad

* This language has an annoying syntax

* I often get angry when writing code in this language

* Developers who primarily use this language often burn out after a few years

Is Visual Basic still used in industry? I haven't touched it in years.


I learned Visual Basic .NET in high school. It honestly wasn't nearly as bad as its reputation. It's more like a watered down C#. It's pretty decent once you get past the syntax. There's still no reason to pick it over C# though. One thing I can say I prefer in VB.NET is the handles syntax - private sub blah blah .. handles object.event. A bit more elegant than C#'s making the event function and adding it to the object with +=.


Visual basic 6 was/is allot worse than VB.net

VB.net is just the same as C# with a different syntax.

My evolution went something like this:

BASIC -> VB6 -> (VB.NET + JAVA) -> C#

Knowing VB.net and JAVA I pretty much picked up C# on day one of my first job.


Still used heavily - but not in industry exactly. It is used mainly for creating little button macros in Excel documents to do some calculations in the document.

It is generally not used directly - Excel lets you record a macro, where it will transform the user's clicks and actions into VB script directly. Users can then add this script to a button, and can repeat their actions by clicking on the button. So not a programming language, but more of a macro language.


There are companies that still sell desktop software written in VB 6.


It's crowdsourced, so you shouldn't comply about the site, but its audience.

Anyway, I agree that if my C# code compiles, it does probably work. Just like Java, C# makes it hard to shoot yourself on the foot (and also to shoot at all, like somebody already said here).


Perhaps not a good chance, but certainly a "better" chance than some languages (C/C++).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: