Visual Basic needs more credit
-
Actually it just got a lot more credit... Swift is Apple's version of VB. :-D
You'll never get very far if all you do is follow instructions.
Swift looks like C# almost exactly
-
Yes. And I really don't like that Extension Methods require the
using
directive. Very powerful are aliases though. Recently I used an alias to resolve a namespace conflict, rather than havegloball::
scattered throughout some code:namespace PIEBALD.Data.MySql
{
using MySqlClient=global::MySql.Data.MySqlClient ;public sealed class DatabaseInfo : PIEBALD.Data.DatabaseInfo<MySqlClient.MySqlDbType>
You'll never get very far if all you do is follow instructions.
Thank God I don't need SQL anymore. I use Unidex which I wrote in Visual basic ;)
-
Swift looks like C# almost exactly
Of course my comment is tongue-in-cheek, but you must not have looked at Swift hard enough yet.
You'll never get very far if all you do is follow instructions.
-
Catch End Try Next Catch End Try
End Sub
A rat's tail of different closing elements instead of some simple closing brackets.
The language is JavaScript. that of Mordor, which I will not utter here
I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.Visual basic does not have the closing bracket issue that C# has. It makes it easier for people that have less or no skill to be more productive, oh look win for VB.
-
Of course my comment is tongue-in-cheek, but you must not have looked at Swift hard enough yet.
You'll never get very far if all you do is follow instructions.
No I haven't, I've only seen declaring memory and other basic functions which all were the exact same as C#
-
Most of that code is autocompleted also the inside catch is to ensure the loop continues
Colborne_Greg wrote:
also the inside catch is to ensure the loop continues
Now you're swallowing 10.000 exceptions in a loop :laugh: After that a "File Saved Succesfull" dialog and pretend nothing ever happened.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
Colborne_Greg wrote:
also the inside catch is to ensure the loop continues
Now you're swallowing 10.000 exceptions in a loop :laugh: After that a "File Saved Succesfull" dialog and pretend nothing ever happened.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
No the problem is when one error exists it kills the loop half way through, this code is only run to display results on the GUI, so not only do I not want it to fail for one error, I don't want it to waste time trying to figure out anything related to that error. I am only unidex the only errors that get through to a client are typos, such as bad filenames
-
Visual basic does not have the closing bracket issue that C# has. It makes it easier for people that have less or no skill to be more productive, oh look win for VB.
Colborne_Greg wrote:
It makes it easier for people that have less or no skill to be more productive
And that's exactly what raises my expectations whenever someone comes with VB.
The language is JavaScript. that of Mordor, which I will not utter here
I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript. -
Colborne_Greg wrote:
also the inside catch is to ensure the loop continues
Now you're swallowing 10.000 exceptions in a loop :laugh: After that a "File Saved Succesfull" dialog and pretend nothing ever happened.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
How often I have seen something like that. And then the criminal who wrote this thinks he's being treated unjustly and exclaims something like "But it always has worked!". And then try to explain to Mr. Pointy Hair that this mess only pretended to work at best, fell flat on its face and was more busy covering it up than anything else at worst, and that looking away will not solve anything or save us one single cent.
The language is JavaScript. that of Mordor, which I will not utter here
I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript. -
If pictures is null the memory space creates itself and returns a empty album list
I think he is referring to the empty catch, it was my first thought. Oh a new version of resume next :laugh:
Never underestimate the power of human stupidity RAH
-
So now instead of with I need this. And I would have to write this over and over and over
Colborne_Greg wrote:
I need this
Probably not.
You'll never get very far if all you do is follow instructions.
-
No as you would of written it like this VB.NET Version
New image With
{
.height = height
}C# Version, in the C# version the With Keyword is ommited
new image { height = this.height }
Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON
Simon_Whale wrote:
would of have
FTFY
new image**()** { Height = Height }
In one small test, I see that thethis.
isn't required, but it seems to confuse the debugger a bit. I prefer to usethis.
just because.You'll never get very far if all you do is follow instructions.
-
I think he is referring to the empty catch, it was my first thought. Oh a new version of resume next :laugh:
Never underestimate the power of human stupidity RAH
He asked what if pictures were null. It's actually a shared class, and this procedure is only for displaying what is in the system.
-
Colborne_Greg wrote:
It makes it easier for people that have less or no skill to be more productive
And that's exactly what raises my expectations whenever someone comes with VB.
The language is JavaScript. that of Mordor, which I will not utter here
I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.I came from Cobol and JCL, with 25 years of experience. I own a start up software company. Anyone that has C experience or web experience I find are bad employees, they make great leaders, not great employees, unless your business in devoted to C and C type languages, then you probably have 20 programmers to my one.
-
That's what makes C# better than VB. :-D Try writing an event that returns a value in VB. :cool:
You'll never get very far if all you do is follow instructions.
PIEBALDconsult wrote:
Try writing an event that returns a value in VB
How do you do that in C# that you can't do in VB?
Wrong is evil and must be defeated. - Jeff Ello[^]
-
Catch End Try Next Catch End Try
End Sub
A rat's tail of different closing elements instead of some simple closing brackets.
The language is JavaScript. that of Mordor, which I will not utter here
I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript. -
I think that Visual Basic should be shown off for its beauty and elegance. Here is a sample of what it can do - that no other language can do:
Private Sub AlbumListPopulate()
Try
AlbumsList.ItemsSource = New List(Of Image)For Each AlbumName In Pictures.Albums Try AlbumsList.ItemsSource.Add \_ ( New Image With { .Height = 150, .Width = 150, .Source = RotateStream \_ ( Pictures.Album(AlbumName).Picture, Pictures.Album(AlbumName).Angle ) } ) Catch End Try Next Catch End Try
End Sub
As I frequently say - it's not the tool that is used that's the problem, but the tool that uses it.
========================================================= I'm an optoholic - my glass is always half full of vodka. =========================================================
-
I wouldn't write such empty Try's but.... still I like it over this here ^^
} } }
}
}and this things aint better...
} //For } //If
} //Try
-
No the problem is when one error exists it kills the loop half way through, this code is only run to display results on the GUI, so not only do I not want it to fail for one error, I don't want it to waste time trying to figure out anything related to that error. I am only unidex the only errors that get through to a client are typos, such as bad filenames
Colborne_Greg wrote:
so not only do I not want it to fail for one error
It's wrong. If there's an unexpected error, then the loop should break. That's always better than hiding the exceptions.
Colborne_Greg wrote:
I don't want it to waste time trying to figure out anything related to that error.
You cannot be bothered to check your own code if it reports an error. I would recommend your users to make backups. Very frequent.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
I think that Visual Basic should be shown off for its beauty and elegance. Here is a sample of what it can do - that no other language can do:
Private Sub AlbumListPopulate()
Try
AlbumsList.ItemsSource = New List(Of Image)For Each AlbumName In Pictures.Albums Try AlbumsList.ItemsSource.Add \_ ( New Image With { .Height = 150, .Width = 150, .Source = RotateStream \_ ( Pictures.Album(AlbumName).Picture, Pictures.Album(AlbumName).Angle ) } ) Catch End Try Next Catch End Try
End Sub
No, for the love of something NO! It makes writing code easier for those that don't write code. It only exists as some one else pointed out (probably) in reaction to Borland's Delphi (Object Pascal) MS needed to make there Basic compiler have similar features to compete! Bad programmers can write bad code in any language, the language makes it easier (VB) compare to another (C#) but they compile to the same byte code, you can't tell the difference! :)