![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here's a reason why javascript sucks so bad. The following *SIMPLE* piece of code will not work properly. Jesus, how I yearn for the day when a real programming language can be substituted for this patched together scripting horror. I suspect the string object's methods are simply not robust enough for this because neither of the strings appear to have the value they should when this loop runs. Perl would handle this kind of thing with no problem. Javascript definitely needs to catch up. (Sorry about the rant, but for a long-time programmer this is terribly frustrating!) ----------------- for (x=0; x<=theStr.length; x++); { theNewStr += theStr.charAt(x); } |
#3
| |||
| |||
|
|
Here's a reason why javascript sucks so bad. The following *SIMPLE* piece of code will not work properly. Jesus, how I yearn for the day when a real programming language can be substituted for this patched together scripting horror. I suspect the string object's methods are simply not robust enough for this because neither of the strings appear to have the value they should when this loop runs. Perl would handle this kind of thing with no problem. Javascript definitely needs to catch up. (Sorry about the rant, but for a long-time programmer this is terribly frustrating!) for (x=0; x<=theStr.length; x++); { theNewStr += theStr.charAt(x); } |
#4
| |||
| |||
|
|
Perl would handle this kind of thing with no problem. |
|
----------------- for (x=0; x<=theStr.length; x++); { theNewStr += theStr.charAt(x); } ----------------- --pstone |
#5
| |||
| |||
|
|
Here's a reason why javascript sucks so bad. |
|
----------------- for (x=0; x<=theStr.length; x++); |
|
{ theNewStr += theStr.charAt(x); } |
#6
| |||
| |||
|
|
Here's a reason why javascript sucks so bad. The following *SIMPLE* piece of code will not work properly. Jesus, how I yearn for the day when a real programming language can be substituted for this patched together scripting horror. I suspect the string object's methods are simply not robust enough for this because neither of the strings appear to have the value they should when this loop runs. Perl would handle this kind of thing with no problem. Javascript definitely needs to catch up. (Sorry about the rant, but for a long-time programmer this is terribly frustrating!) ----------------- for (x=0; x<=theStr.length; x++); { theNewStr += theStr.charAt(x); } ----------------- --pstone |
|
Grant Wagner <gwagner (AT) agricoreunited (DOT) com |
#7
| |||
| |||
|
|
Patrick Stone wrote: Here's a reason why javascript sucks so bad. [snippy-snip] So yeah, I guess you're right, JavaScript is just a non-functional mess that can't do anything. Better go back to Perl where you can loop through every character in a string to accomplish the same goals. |
![]() |
| Thread Tools | |
| Display Modes | |
| |