|
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
|
|
|
|
|
|
I'm rapidly approaching 50, and for some reason, I find that I'm getting more and more sentimental for every year that passes. It didn't use to be like that. Don't know where it came from all of a sudden... Mid-life crisis most likely...
In a sentimentality attack a couple of days ago, I googled my old elementary school. I lost all of the old school photos some years ago when my mom died, and I forgot to secure them from her possessions before the rest was thrown out. I'm kinda sad about that, actually.
I had hoped that it might be possible to locate some of them online. It wasn't. Instead I located an article in one of Denmarks biggest newspapers. About my old school, and how the walls had been filled with asbestos and that one of the teachers had officially been diagnosed with lung cancer because of it (and died two months later). Apparently, it was a big scandal in the Danish papers.
It was MY old class teacher. She had worked at the school for 15 years, and I attended the school as a student for 11 of those years (kindergarten included).
Right now, I must admit that I'm quite worried, and I don't really know if I ought to go see a doctor and get a lung x-ray done. Am I too nervous? There must have been hundreds of pupils there while I attended the school, and at least 15-20 teachers. And one of them died. What are the chances that the rest of us have been affected?
Anyway, that was only the (long) background for this post. Because of the find and my subsequent worry, I thought "Why not try to contact some of my old class mates? They might have heard something." At least, they're still in Denmark, I live in Sweden now...
I googled some of them. I didn't manage to locate my very best friend from back then. He doesn't appear to have neither FB nor anything else. But I did find some of the others (I think). It was harder than you should think, because I didn't recall the last names of all of them, and of course, the girls could have changed name by marriage. But once I found one of them on FB, most of it unravelled by itself, because a lot of them had actually kept more or less in contact throughout the years.
Today I composed a quick email to one of them whom I was good friends with (and semi-secretly had a HUGE crush on) and sent it to what I believe is her current email address.
Now I'm quite nervous. Did I find the right person? What is she going to say to being contacted by someone she knew 35 years ago and has had NO contact with since then?
What would you say? Would you be amused? Annoyed? Rather not reminded of such old misery (it was school after all)??? Should I have left bygones be bygone?
To be honest, I don't know. What do you think? What would you have done? I'm really curious to know
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 6:55am.
|
|
|
|