Maybe we should put up our abbreviations for other to have a look see.
Here are mine so far
/* COMMENTS */
menu=--@categorie:CAT;name:NAME;description:DESC
header=
--******************************************************************************************************
-- Created: 00-00-2009
-- Last Updated: 00-00-2009
-- Version: 0.10
--
-- Author : Johan Boekhoven / johan.boekhoven@gmail.com / subd.nl
-- Version: 3ds max 2009 (10) (should work in older versions too!)
--
-- Discription: DESCRIPTION
-- Usage: RUN IT
--
-- Wishlist:
--
--******************************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
doc=/*
<DOC> Description here.
Arguments:
<bool> arg_a: A description of the argument.
Return:
<bool> Function returns (anything?).
*/
/* CODE STRUCTURES */
if=if ARG then
(
STATE1
) -- end if
else
(
STATE2
) -- end else
fn=fn NAME arg_a arg_b =
(
doc
fnBody
)
str=struct NAME
(
VAR1,
VAR2,
fn
)
fora=for in do
(
)
foraw=for in where ARG1 == ARG2 do
(
)
fori=for i = 0 to 100 do
(
)
foriw=for i = 0 to 100 where ARG1 == ARG2 do
(
)
foribw=for i = 0 to 100 by where ARG1 == ARG2 do
(
)
rol=rollout ""
(
btn
spn
)
/* GENERIC */
start=menu header
(
)
/*CONTROLS*/
btn=button btn_ "" width: height: offset:[0,0] across:
pbn=pickButton pbn_ "" width: height: offset:[0,0] across:
spn=spinner spn_ "" width: range:[,,] type: offset:[0,0] across:
chb=checkButton chb_ "" width: height: offset:[0,0] across:
grp=group ""
(
btn
spn
chb
pbn
)
Some are obviously specific for my needs, but maybe somebody can use it.
I think especially in the commenting and UI building and CA building department lot of speed can be gained by some well balanced abbreviations.
Has any also checked out the great work Rob is doing over at TAO and I try to follow the http://tech-artists.org/wiki/TAO:Code_Conventions, I think some public accepted abbreviations could help on good coding practice, but that’s me.
@Mathieson, that’s a really good tip!!
Cheers,
-Johan