|
Well, seing that it's going to come up sooner rather than later, I might as well mention it right away:
VB.Net!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
A Haiku about VB.NET coding:
No no no no no
No no no no no no no
No no no no no
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Shouldn't there have been a GoTo somewhere in there?
And an On Error Resume Next
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
No no no no no
No no no no no no no
No no no no no
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
On Error Resume Next
10 Print "No no no no no"
20 Goto 10
Happy now?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
The line numbering takes me way further back than VB.Net, all the way to Commodore 64 (and as you know, I'm in a nostalgic mood today )
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
In VB3 you could use optional line numbers. We had a doofus who would put them in as it 'helped with debugging'. We had him humanely destroyed.
veni bibi saltavi
|
|
|
|
|
You can still do that (use line numbers, that is) - I just checked in my VS 2015.
Not only for VB, even for C#!
Tools / Options / Text Editor / Basic (or C#) - And there it is: The Line numbers checkbox
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
modified 18-Mar-16 9:05am.
|
|
|
|
|
You can still use line numbers in the latest version of VB.NET:
10: Dim i As Integer = 1
20: Console.WriteLine("Nope")
30: If i < 10 Then
40: i += 1
50: Goto 20
60: End If
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Ah, yes... line numbering... and then you realize you need a chunk of code in the middle and no line numbers are left. That created a need for a program that could renumber your code.
Fondly remembered...
|
|
|
|
|
IIRC most, if not all, BASIC systems supported a RENUM command.
veni bibi saltavi
|
|
|
|
|
Missing in Commodore BASIC and C-64 BASIC which was an even older version of Commodore BASIC.
Commodore BASIC had decent garbage handling; C-64.. not so much.
|
|
|
|
|
That is VB6, not VB.NET. VB.NET is object oriented, VB6 is language of MS office macros
|
|
|
|
|
VBA is the language of Office macros. It's like VB6-lite - all the horrible syntax and design decisions, with some extra restrictions on top.
And VB.NET still supports both On Error ... and Goto .
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
On Error...
legacy. Just because it exists, doesn't mean you have to use it. You could use regex to traverse XML documents and yet, most people use XmlDocument and related classes
Or you could use COBOL...
goto exists in C# too and I'm sure there is some obscure reference or use for it in java too
I know for sure it is used in various SQL variations in stored procedures
|
|
|
|
|
Sinisa Hajnal wrote: VB.NET is object oriented
Yes, but you can still use GoTo!
Anything that is unrelated to elephants is irrelephant Anonymous
- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944
- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
So? You can do it in C# too and no one complains
See MSDN
[^]
|
|
|
|
|
Must write VB code?
Only one thing you can do
Call JSOP
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Visual Basic 4 calling into 32 bit MASM.
|
|
|
|
|
|
|
No swearing in the lounge!
Feckin Java Feckin Script!
veni bibi saltavi
|
|
|
|
|
Javascript!
A perfectly dysfunctional language!
(and also a perfectly cromulent one! )
|
|
|
|
|
megaadam wrote: Who can recommend a decent dysfunctional language?
Python
Ruby
VB
PHP
Javascript
C++ (yes, C++, because from what I've seen, what was once elegant has become a monster in symbol obfuscation hell)
Marc
|
|
|
|
|