TB RPGs Are Slightly Difficult

Posted by Taizen Chisou on March 28, 2012, 8:35 a.m.

> wake up

> "oh i know maybe i can retool the ricerca strano engine today"

oh yeah that's right i hate modifying this game

Comments

sirxemic 12 years, 9 months ago

Quote: Cesque
I just remembered the problem wasn't automatic indentation alone - it was that indentation is by default 4 spaces, as opposed to an actual tab. The difference is, if you press left or backspace, you go/delete just one space left, not to the beginning of the indented line. And if you have a serious nervous tic involving alterating between pressing backspace and tab whenever you're idling… yeah.
I just checked game maker and it seems that even though it does insert 4 spaces, if you press backspace, you delete 4 spaces, as if it were a tab. I don't see the problem :| EDIT: oh, just noticed it creates a little problem for pressing left, I guess…

Rob 12 years, 9 months ago

Quote:
Yeah. I'm indenting and using == now for the same reason.

Pretty much I saw the fat chick get teased and now I'm going to the gym.

Well those are two different things. The == instead of = is because in almost every language there is a distinction that they mean different things.

…the indentation is just to save lots of rage/confusion/wasted time for anyone who has to read it, yourself included. The only language I can think of that requires indentation is python, but it just makes it so much more readable in any language, especially when you have lots of nested code. You can usually get away with it when you're only going one curly brace in, but when you have a lot, it just makes more sense to visually show it by indentation.

Quote:
Since we're on the subject and I'm ignorant, can someone explain to me the benefit of putting a semicolon after statements?

It's good practice. Most programming languages require them. It can also change what happens in certain situations, like with for loops.

for (i = 0; i < 64; i ++)
std::cout << i + 1 << ", ";

This will output "1, 2, 3, 4, 5, 6,…..63, 64, "

vs

for (i = 0; i < 64; i ++);
std::cout << i + 1 << ", ";

This will output "65, "

Taizen Chisou 12 years, 9 months ago

Quote:
I don't suspect Taizen of using C++ though

Haha think again

Rob 12 years, 9 months ago

Quote:
Haha think again

Then why is your semicolon usage so inconsistent and why do you use single equals signs for testing expressions? And why don't you put your if statements inside parentheses?

firestormx 12 years, 9 months ago

Quote:
The only language I can think of that requires indentation is python
Who the fucking hell thought it would be a good idea to replace curly braces with indentation? Fuck Python so hard in the ass with a cactus.

Acid 12 years, 9 months ago

Rez 12 years, 9 months ago

^lmfao

Cesque 12 years, 9 months ago

Quote:
I just checked game maker and it seems that even though it does insert 4 spaces, if you press backspace, you delete 4 spaces, as if it were a tab. I don't see the problem :| EDIT: oh, just noticed it creates a little problem for pressing left, I guess…

Yeah. Also, backspace deleting all 4 spaces only works for initial tabs, not when there's more than one of them, IIRC (no GM on this laptop).

Quote:
Who the fucking hell thought it would be a good idea to replace curly braces with indentation? Fuck Python so hard in the ass with a cactus.

It may sound weird coming from me, but I got used to it and actually like it :P (assuming I can use my tabs and not quadruple spaces)

Astryl 12 years, 9 months ago

Think that's bad? You should see the Linux 0.0.1 source. It'll make you appreciate the relative cleanness of your own code.

sirxemic 12 years, 9 months ago

Quote:
Who the fucking hell thought it would be a good idea to replace curly braces with indentation? Fuck Python so hard in the ass with a cactus.
How can you not see that it makes sense? 99% of the time when you use curly braces you will use indentation anyways (and if you don't, then that's very silly). Consequently, it makes curly braces useless.

Putting a line between curly braces is stupid anyways.