Author Topic: A Coding Syntax Question On Spaces  (Read 2577 times)

i use torsion ;-;

don't code like marble man you will give coders who later go to read your code cancer

It seems that you don't even read my code.

Sure I use 1 letter variables occasionally and less whitespace around function calls, but it's still easy to read.

I either write code to be compact, or to be functional

I was jokingly over exaggerating

I was jokingly over exaggerating
not sure if you're trolling or just being yourself


It's strictly preference in most languages.

For TorqueScript, the standard formatting is Allman style. But it doesn't change how the code is processed because whitespace is ignored.
loving whitesmith

Who even thinks this stuff up urgh

It's like the brackets are floating gurghrht

Allman or K&R plz

Don't use notepad. Use Notepad++.

yes, notepad is very basic and using a text editor that's made for coding is a much better idea

i personally prefer sublime text 2, but afaik there isn't torquescript syntax available for it. C# or C++ works fine though.

I already have been using Notepad++

The whitespace was the main problem I had been running into and spent useless time trying to perfect.  Thanks for the valuable information :)

i use torsion ;-;

I bought Torsion years ago but I still like Sublime Text 3 much more and only use that.

I use this one
No idea where it comes from though
https://dl.dropboxusercontent.com/u/143512782/TorqueScript.rar

You should add Sublime Text to the list, as well as the TorqueScript bundle (for TextMate and Sublime Text). Or my slightly improved version of the bundle.

I use Sublime Text 3 but I may as well use notepad, I hardly use any of the fancy features. My favorite editor in the world is Vim, so I'm a pretty minimalistic guy. As far as indentation goes, most people use tabs (I prefer tabs) but some people decide that they want to make it a bunch harder to delete indentations and use spaces. Thankfully all good editors allow you to use tab to insert a certain number of spaces, cause I'd go crazy if it didn't.

I use TorqueDev and Notepad++ for TorqueScript work. Is there any real advantage to switching over to Sublime? Also, won't I have to pay for Sublime once it leaves beta?

Also, won't I have to pay for Sublime once it leaves beta?

What?

Sublime Text 2 is not in beta, and anyone can use it (although you'll have to pay if you want it to stop nagging every few 100 saves).
Sublime Text 3 is in beta, and as of recently anyone can use it (although you'll have to pay if you want it to stop nagging every few 100 saves).

As Port said, it gives you a popup every so many saves. I think it's less than 100, but all you have to do is hit "No" or whatever the do-not-buy equivalent is.

Quote from: Port link=topic=243285.msg6968653#msg6968653 date=1381696184
[/quote
Ooooh so that is where I got it from

I either write code to be compact, or to be functional
What? Why would you not do both?
And why would you ever write code that's not functional?