| Blockland Forums > General Discussion |
| OH MY GOSH IM LEARNING TO CODE |
| << < (7/12) > >> |
| M:
--- Quote from: Kaphonaits² on September 08, 2012, 04:51:57 AM ---Yes but there are reasons that the traditional types exist. So you don't need things like useless duplicates of operators. --- Code: ---if(%blah $= %blergh) { //... } --- End code --- --- Code: ---if(%blah == %blergh) { //... } --- End code --- --- End quote --- My comment wasn't decrying traditional types, it was explaining Torque. I acknowledge Torque is the one that's wrong. --- Quote from: Isaac Fox on September 08, 2012, 05:04:08 AM ---Why, why, why are my parents forcing me to learn Python? I want to learn TorqueScript, dammit! --- End quote --- Trust me - you're better off. If you don't like Python, you could go for Javascript or Lua instead - each one has different upsides and downsides. Python has very wide adoption - documentation is abundant even on individual libraries, and it does have a lot of other libraries you can use for a lot of different applications. Javascript is, obviously, used in browsers - though use outside the browser is picking up with Node.js and other embedded V8 environments (V8 being the Javascript engine used in Google Chrome). Lua is widely embedded in many different games and game engines - case in point is Garry's Mod, although it uses a variant (GLua - it supports C-like operators like &&, || where normal Lua only supports 'and', 'or'). Torque, on the other hand, will teach you a lot of bad habits with regards to its quirks and certain behaviours of the language. You're much better off learning another language first and applying the concepts you learn there to Torquescript. Plus, it's pretty awesome that it's your parents who are making you learn to code - my parents wanted me to learn to play the bagpipes. |
| Kaphonaits²:
--- Quote from: M on September 08, 2012, 05:31:53 AM ---My comment wasn't decrying traditional types, it was explaining Torque. I acknowledge Torque is the one that's wrong. --- End quote --- Yes I know. :( <3. --- Quote from: M on September 08, 2012, 05:31:53 AM ---Trust me - you're better off. If you don't like Python, you could go for Javascript or Lua instead - each one has different upsides and downsides. Python has very wide adoption - documentation is abundant even on individual libraries, and it does have a lot of other libraries you can use for a lot of different applications. Javascript is, obviously, used in browsers - though use outside the browser is picking up with Node.js and other embedded V8 environments (V8 being the Javascript engine used in Google Chrome). Lua is widely embedded in many different games and game engines - case in point is Garry's Mod, although it uses a variant (GLua - it supports C-like operators like &&, || where normal Lua only supports 'and', 'or'). Torque, on the other hand, will teach you a lot of bad habits with regards to its quirks and certain behaviours of the language. You're much better off learning another language first and applying the concepts you learn there to Torquescript. Plus, it's pretty awesome that it's your parents who are making you learn to code - my parents wanted me to learn to play the bagpipes. --- End quote --- I agree with all of this. Learn something like Python or Lua first. Then move on to whatever if you want. But please, stay away from Torque Script until you really understand how things work. He will teach you awful habits that suck. Torque Script is the weird meth smoking kid. Stay away from him. On a totally unrelated note, I'm ashamed that I pretended to use weird fake enums in Torque Script. --- Code: ---$Pref::BlockyTraitors::Enum::ROLE_DEAD = 1; $Pref::BlockyTraitors::Enum::ROLE_INNO = 2; $Pref::BlockyTraitors::Enum::ROLE_TATER = 3; $Pref::BlockyTraitors::Enum::ROLE_WATCH = 4; --- End code --- |
| Swat 3:
Lugnut should make a class for us. He is the teacher. Teach us Torque! |
| Yosher:
*learning to steal and horribly edit addons |
| nerraD:
--- Quote from: Swat 3 on September 08, 2012, 07:58:34 AM ---Lugnut should make a class for us. --- End quote --- Don't even- |
| Navigation |
| Message Index |
| Next page |
| Previous page |