Click here to Skip to main content
15,891,513 members

The Insider News

   

The Insider News is for breaking IT and Software development news. Post your news, your alerts and your inside scoops. This is an IT news-only forum - all off-topic, non-news posts will be removed. If you wish to ask a programming question please post it here.

Get The Daily Insider direct to your mailbox every day. Subscribe now!

 
NewsNew language features in Visual Basic 14 Pin
Kent Sharkey9-Dec-14 7:07
staffKent Sharkey9-Dec-14 7:07 
GeneralRe: New language features in Visual Basic 14 Pin
Duncan Edwards Jones9-Dec-14 8:12
professionalDuncan Edwards Jones9-Dec-14 8:12 
GeneralRe: New language features in Visual Basic 14 Pin
Jörgen Andersson9-Dec-14 9:03
professionalJörgen Andersson9-Dec-14 9:03 
GeneralRe: New language features in Visual Basic 14 Pin
Tim Carmichael9-Dec-14 8:16
Tim Carmichael9-Dec-14 8:16 
GeneralRe: New language features in Visual Basic 14 Pin
Jörgen Andersson9-Dec-14 8:50
professionalJörgen Andersson9-Dec-14 8:50 
GeneralRe: New language features in Visual Basic 14 Pin
Dan Neely10-Dec-14 3:00
Dan Neely10-Dec-14 3:00 
GeneralRe: New language features in Visual Basic 14 Pin
JMK-NI9-Dec-14 9:44
professionalJMK-NI9-Dec-14 9:44 
GeneralRe: New language features in Visual Basic 14 Pin
Sander Rossel9-Dec-14 10:55
professionalSander Rossel9-Dec-14 10:55 
Kent Sharkey wrote:
There must be at least/most one of you interested in these
I don't get all the VB hate... VB is a great language that does the same as C#, but with a slightly different syntax. C# is beautiful, but VB has great stuff too! With this new release VB becomes even better (and more like C#)!

Examples?
variable declaration:
VB
' In my opinion this is beautifull and expressive syntax!
Dim obj As New Object()

C#
// This looks like an object sandwich or something...
object obj = new object();
// Not making it much better...
var obj = new object();

Vertical spacing:
VB
' Only five lines of code!
If something Then
   ' Stuff...
Else
   ' Other stuff...
End If

C#
// Eight lines of code!
if (something)
{
   // Stuff...
}
else
{
   // Other stuff...
}
The vertical spacing is even worse with else if-statements and try-catch-finally blocks.

Don't get me started on cases... C# needs a break; in each case even though it can't fall through to the next case anyway. Speak of redundancy.

I know there's a lot of legacy VB code out there that is just the worst. VB has a non-OO history and it shows. It just doesn't show in the language (a lot).
C# has very neat stuff that can really be missed in VB, but that doesn't make VB a bad language.
That said I love C# and usually prefer it over VB, not because VB is a bad or ugly language, but because C# has more support online.
It just seems like people forget C# code can be as bad as bad VB code. It's the programmers that suck, not the language!
My blog[^]
C#
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

GeneralRe: New language features in Visual Basic 14 Pin
Marc Clifton10-Dec-14 2:40
mvaMarc Clifton10-Dec-14 2:40 
News3D SSD drives Pin
Mike Hankey9-Dec-14 4:31
mveMike Hankey9-Dec-14 4:31 
GeneralRe: 3D SSD drives Pin
BillWoodruff9-Dec-14 20:41
professionalBillWoodruff9-Dec-14 20:41 
NewsTypesafe survey: Java 8 adoption strong, users anxious for Java 9 Pin
Kent Sharkey8-Dec-14 13:06
staffKent Sharkey8-Dec-14 13:06 
GeneralRe: Typesafe survey: Java 8 adoption strong, users anxious for Java 9 Pin
Dan Neely9-Dec-14 2:26
Dan Neely9-Dec-14 2:26 
GeneralRe: Typesafe survey: Java 8 adoption strong, users anxious for Java 9 Pin
Eddy Vluggen9-Dec-14 7:27
professionalEddy Vluggen9-Dec-14 7:27 
NewsBoost.org committee battles library log-jam Pin
Kent Sharkey8-Dec-14 13:03
staffKent Sharkey8-Dec-14 13:03 
NewsRejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
Kent Sharkey8-Dec-14 10:50
staffKent Sharkey8-Dec-14 10:50 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
Ron Anders8-Dec-14 11:41
Ron Anders8-Dec-14 11:41 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
ledtech38-Dec-14 14:31
ledtech38-Dec-14 14:31 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
JMK-NI9-Dec-14 2:13
professionalJMK-NI9-Dec-14 2:13 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
Dan Neely9-Dec-14 2:28
Dan Neely9-Dec-14 2:28 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
JMK-NI9-Dec-14 2:35
professionalJMK-NI9-Dec-14 2:35 
GeneralRe: Rejoice, Windows 10 testers; Microsoft wants to make RTM a one-click update Pin
Dan Neely9-Dec-14 3:12
Dan Neely9-Dec-14 3:12 
NewsMicrosoft's alt-OS strategy strikes loyalists as class warfare Pin
Kent Sharkey8-Dec-14 10:33
staffKent Sharkey8-Dec-14 10:33 
GeneralRe: Microsoft's alt-OS strategy strikes loyalists as class warfare Pin
dexterama8-Dec-14 11:43
professionaldexterama8-Dec-14 11:43 
NewsMobile is the next 'sea change' in recruiting Pin
Kent Sharkey8-Dec-14 9:42
staffKent Sharkey8-Dec-14 9:42 

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.