What language should I use?
-
I especially liked
LET
. Assignment statements once had to start with it:LET A = 1
LET B = 2
LET C = A + BCode sounded much nicer back then. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.4Luc Pattyn wrote:
Code sounded much nicer back then.
Ah, yes. I recall those halcyon days when programming involved requests rather than commands. :-D
-
If you knew BeFunge then you wouldn't say that. There is no BACON which would beat it.
Greetings - Jacek
-
I especially liked
LET
. Assignment statements once had to start with it:LET A = 1
LET B = 2
LET C = A + BCode sounded much nicer back then. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.4 -
Dimension almost makes it sound kind of cool... :^) Wikipedia quote: In computer programming, BASIC (an acronym which stands for Beginner's All-purpose Symbolic Instruction Code) is a family of high-level programming languages designed to be easy to use. Never knew that's what it stood for either! :laugh: BASIC was used before I was even born though... Well, it is probably still used somewhere, but you know what I mean. Ouch, I guess I really lack some historical background knowledge for a VB programmer. Perhaps I should start learning FORTRAN and Lisp and get some historical programmer sense too :)
It's an OO world.
-
The following BeFunge code generates the first 100 digits of PI:
aa* v +------------------------+
vp*9920p*9930< | Pi generator in Bef-97 |:09a*pa*3/1+19a*p09a*g:09b*v | |
v_@# g*b90 p*b910 < p< | 7/2/1997, Kevin Vigor |
19a*g:+1-29b*p19a*g::09v +------------------------+
v*a90g*b90*g*b91: _v#p*9<
g-#v_ 2a*+\$ v :$
\1-aa*ga*+v p
v1:/g*b92p*991:< *
9b*p29b*g*199*g\v9
v*b92p*aa-1g*990-<9
g2-29b*p099*g1-:0^
v -9p*b92:%ag*991 <
#v_ 299*g1+299*p> ^
09b*g:#v_$v
v93p*b90-1<
9*g199*ga/+.v
v:g*992 <p*9 92-<
v_29b*g399*p ^
09b*g:#v_v 1
vp*b90-1 < $ g
199*g9`#v_'9,v *
'0, >' ,299^Huh?!
Greetings - Jacek
-
Reminds me of the Camel cigarette commercials. "I'd walk a mile for a strip of crispy bacon."
-- ** Jack of all trades and master of none.
I've never tried Camel BACON. What's it like? (Apart from crispy, that is.)
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
-
Dimension almost makes it sound kind of cool... :^) Wikipedia quote: In computer programming, BASIC (an acronym which stands for Beginner's All-purpose Symbolic Instruction Code) is a family of high-level programming languages designed to be easy to use. Never knew that's what it stood for either! :laugh: BASIC was used before I was even born though... Well, it is probably still used somewhere, but you know what I mean. Ouch, I guess I really lack some historical background knowledge for a VB programmer. Perhaps I should start learning FORTRAN and Lisp and get some historical programmer sense too :)
It's an OO world.
Naerling wrote:
Well, it is probably still used somewhere, but you know what I mean.
The 3-legged stool of understanding is held up by history, languages, and mathematics. Equipped with these three you can learn anything you want to learn. But if you lack any one of them you are just another ignorant peasant with dung on your boots. R. A. H.
-
LET was supported in VB 6.0, wasn't it[^]? In VB .NET it is still a keyword but isn't used anymore :doh: .
Greetings - Jacek
Jacek Gajek wrote:
LET was supported in VB 6.0, wasn't it
BASIC was designed to mimic assembler. Therefore, every command started with an Op-code. LET, SET and LSET were all used to declare a variable's value.
The 3-legged stool of understanding is held up by history, languages, and mathematics. Equipped with these three you can learn anything you want to learn. But if you lack any one of them you are just another ignorant peasant with dung on your boots. R. A. H.
-
Jacek Gajek wrote:
LET was supported in VB 6.0, wasn't it
BASIC was designed to mimic assembler. Therefore, every command started with an Op-code. LET, SET and LSET were all used to declare a variable's value.
The 3-legged stool of understanding is held up by history, languages, and mathematics. Equipped with these three you can learn anything you want to learn. But if you lack any one of them you are just another ignorant peasant with dung on your boots. R. A. H.
-
I especially liked
LET
. Assignment statements once had to start with it:LET A = 1
LET B = 2
LET C = A + BCode sounded much nicer back then. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Please use <PRE> tags for code snippets, they improve readability.
CP Vanity has been updated to V2.4If you like the
let
keyword you should check out F#. Everything is declaredlet
there. As a bonus(?) it is even less verbose than C# :DIt's an OO world.
-
I'm rather fond of LolCode
HAI
CAN HAS STDIO?I HAS A MOOD
IF (MICROSOFT AN WINDOWSMETRO) IZ HTML5_JS_ONLY
HAI
MOOD ITZ 'WTF'
BYEKTHXBYE
LolCode really made me Lol! :laugh: So, basically, we would sit at our desks laughing all day. I like it! :thumbsup:
-
If Microsoft & WindowsMetro = HTML5_JS_ONLY Then Mood = WTF. End If. I do NOT WANT HTML5 and JS! Also, I'm considering cross-platform. So... Java? C++? Python? Bacon?
-
But neither VB 6.0 nor VB .NET weren't designed to mimic assembler. (I think so) Anyway, MSDN says (VB6):
MSDN wrote:
[Let Statement Let --- Optional. Explicit use of the Let keyword is a matter of style, but it is usually omitted.
Greetings - Jacek
BASIC has been around since 1964. In those days, language interpreters were pretty rigid: computers simply did not have the processing power or memory to be very flexible. It was not until much later that
LET
became optional; it was retained for backwards compatibility and because some programmers liked to use it to help document an assignment rather than a comparison. -
The following BeFunge code generates the first 100 digits of PI:
aa* v +------------------------+
vp*9920p*9930< | Pi generator in Bef-97 |:09a*pa*3/1+19a*p09a*g:09b*v | |
v_@# g*b90 p*b910 < p< | 7/2/1997, Kevin Vigor |
19a*g:+1-29b*p19a*g::09v +------------------------+
v*a90g*b90*g*b91: _v#p*9<
g-#v_ 2a*+\$ v :$
\1-aa*ga*+v p
v1:/g*b92p*991:< *
9b*p29b*g*199*g\v9
v*b92p*aa-1g*990-<9
g2-29b*p099*g1-:0^
v -9p*b92:%ag*991 <
#v_ 299*g1+299*p> ^
09b*g:#v_$v
v93p*b90-1<
9*g199*ga/+.v
v:g*992 <p*9 92-<
v_29b*g399*p ^
09b*g:#v_v 1
vp*b90-1 < $ g
199*g9`#v_'9,v *
'0, >' ,299^Huh?!
Greetings - Jacek
-
Very hard to beat Brainfuck. :-D http://en.wikipedia.org/wiki/Brainfuck[^]
-
LET was supported in VB 6.0, wasn't it[^]? In VB .NET it is still a keyword but isn't used anymore :doh: .
Greetings - Jacek
Its even more weird with VBA now, where object variables have to be used with SET:
Dim something as Sheet Set something = Sheets("blah")
The "compiler" will complain if the SET is omitted... LET... SET.. and then nothing. What evolution :D BTW my first and always mantra for VBA: put an OPTION EXPLICIT in front of every file! :)