HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 months agoWhy make it complicated?lemmy.mlexternal-linkmessage-square123fedilinkarrow-up1370arrow-down138file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1332arrow-down1external-linkWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 months agomessage-square123fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-squarebandwidthcrisis@lemmy.worldlinkfedilinkarrow-up7arrow-down1·2 months agoBASIC uses (used?) it to declare variables. (I don’t know if earlier languages did.) Not that that’s a reason for other languages to copy it.
minus-squareHiddenLayer555@lemmy.mlOPlinkfedilinkEnglisharrow-up8·edit-22 months agoDoesn’t Basic use Dim a As String?
minus-squaredan@upvote.aulinkfedilinkarrow-up10·edit-22 months agoOlder variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array. In modern BASIC variants, DIM has become a backronym: “declare in memory”.
minus-squaresbv@sh.itjust.workslinkfedilinkEnglisharrow-up6arrow-down1·2 months ago In modern BASIC variants, DIM has become a backronym: “declare in memory”. TIL. I always thought it was a backronym for declare in (yo) momma.
minus-squaretisktisk@piefed.sociallinkfedilinkEnglisharrow-up4·2 months agoTIL Backronyms and cuil BASIC technicalities Much obliged all
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·2 months agoEven older variants required both a let to declare the variable and a dim to set its size. I remember a REDIM command, but I really can’t remember what basic it’s from.
minus-squaredan@upvote.aulinkfedilinkarrow-up2·2 months agoThe first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.
BASIC uses (used?) it to declare variables. (I don’t know if earlier languages did.)
Not that that’s a reason for other languages to copy it.
Doesn’t Basic use
Dim a As String
?Older variants used DIM for arrays and LET for other variables. DIM was originally called that because it was setting the dimensions of the array.
In modern BASIC variants, DIM has become a backronym: “declare in memory”.
TIL. I always thought it was a backronym for
declare in (yo) momma
.TIL Backronyms and cuil BASIC technicalities Much obliged all
Even older variants required both a let to declare the variable and a dim to set its size.
I remember a
REDIM
command, but I really can’t remember what basic it’s from.The first programming language I used was Visual Basic (both VBA in Excel, and VB3 then VB6). I think it used redim to resize arrays.