ID:137673
 
I've been writing some useful tips on coding style that I thought I would share with everyone. The article linked below focuses on keeping your code compact and readable. It also covers boolean logic. As a bonus, it has some sample code to show how to easily create items that heal or damage players.

The subject of keeping code compact has come up a couple of times recently on the board, so I thought it was a good place to start. I have seen a few examples of questions where someone will post code that is a bit longer and more complex than it needs to be. I just hope this can help someone:

http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw
Skysaw wrote:
I've been writing some useful tips on coding style that I thought I would share with everyone. The article linked below focuses on keeping your code compact and readable. It also covers boolean logic.

The subject of keeping code compact has come up a couple of times recently on the board, so I thought it was a good place to start. I have seen a few examples of questions where someone will post code that is a bit longer and more complex than it needs to be. I just hope this can help someone:

http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw

Not really usefull for me since I already knew anything mentioned, but might be very usefull for a lot of people. Keep writing :)
Skysaw wrote:
http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw

I liked it! please write more!
In response to Ernie Dirt
Ernie Dirt wrote:
Skysaw wrote:
http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw

I liked it! please write more!

??? I keep getting the page can be displayed thing
In response to Nadrew
Nadrew wrote:
Ernie Dirt wrote:
Skysaw wrote:
http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw

I liked it! please write more!

??? I keep getting the page can be displayed thing

The server I host my pages on is acting screwy today. It has been up and down all afternoon. Supposedly they are running some maintainence or something. Sorry about that, but you can try again later today or tomorrow.
http://www.allhands.com/byond/code_1.htm

That page totally does not load for me :oP
I'll be sure to check it out when possible, Skysaw!

I'm having the troubles others are having. I'll try tomorrow =)
The above mentioned document is available again (at least until my hosting service blows up again). Feel free to steal code you find there for your own evil needs.

http://www.allhands.com/byond/code_1.htm

/mob/skysaw
In response to Alathon
Alathon wrote:
Skysaw wrote:
I've been writing some useful tips on coding style that I thought I would share with everyone. The article linked below focuses on keeping your code compact and readable. It also covers boolean logic.

The subject of keeping code compact has come up a couple of times recently on the board, so I thought it was a good place to start. I have seen a few examples of questions where someone will post code that is a bit longer and more complex than it needs to be. I just hope this can help someone:

http://www.allhands.com/byond/code_1.htm

Please let me know if this was helpful. No feedback means I won't bother writing more.

/mob/skysaw

Nice work, I learned a couple of things from it.