- Joined
- May 1, 2008
- Messages
- 1,605
Moin moin =)
Well I'm not the first one who open a discuss about these BJ's but I want get it clearly now.
I remember, when I started with Jass I often heard "omg why you use bj's" or "wtf remove this stupid bj's" and since this time I start to avoid each BJ. Now yesterday I had a little problem and I asked Bribe for help and he gave me a solution with:
As you see it's red marked, so I thought, because it's bad, I have to replace it and I did:
After I posted it to Bribe he asked me why I replaced it and I simply said "because it's red marked and this is bad". He told me then that some Bj's aren't bad include these Math Bj's and the discussion started.
Now we want ask for some more opinions, because I get ± . ± when I see a bj and I need! to replace them, while he says that's ok to have some Bj's and/or red marked things.
But there's more; lets take the math bj's again. I was wondering, if this "ModuloInteger" is a good one, why does JassHelper give a solution how to use another way where nothing is red marked and why not use it then?
One more point was the fix would increase the map size and I tested 100 of the "red-marked-way" and 100 of the "no-red-fix" and well the map size increase by 0.3 kb. I said to him if someone comes and say "omfg this 0.3 kb will save the world it's imba important" I would just say "shut up".
========
Who said and why that these TriggerRegister Bj's are ok? like:
So many say "Bj's are bad" but if you looking at this one now, how you know that this is a good one, even when you can replace it so easily?
========
Also what about Bj's like this:
Well they aren't marked red but there's a bj_ in front of it, so I thought I must replace them as well, but again they should be ok when I can type instead of bj_MAX_PLAYER_SLOTS, 15 and instead of bj_PI, 3,14159265?
========
Another thing is this:
So many here say this one is fine, anyway that this is a BJ but it's also a leak as far as I know and Pharaoh_ said it too, but what make this one ok for using?
========
One more thing is this:
As I understand Bribe he said, it's ok to use this one and it never gets destroy during the game, but isn't this bad? Why not just creating a local group only when you need it?
========
So at the end I want know what bj's you think are ok to use and why? Also how you, or I can, see that this Bj is ok? I mean is there a formula for it or something?
Hope some people here can give good critics of they opinion and why useing/mot using what bj and/or what kind of bj's.
Greetings and Peace
Dr. Boom
Well I'm not the first one who open a discuss about these BJ's but I want get it clearly now.
I remember, when I started with Jass I often heard "omg why you use bj's" or "wtf remove this stupid bj's" and since this time I start to avoid each BJ. Now yesterday I had a little problem and I asked Bribe for help and he gave me a solution with:
JASS:
ModuloInteger()
JASS:
local integer modulus = dividend - (dividend / divisor) * divisor //check if 0
Now we want ask for some more opinions, because I get ± . ± when I see a bj and I need! to replace them, while he says that's ok to have some Bj's and/or red marked things.
But there's more; lets take the math bj's again. I was wondering, if this "ModuloInteger" is a good one, why does JassHelper give a solution how to use another way where nothing is red marked and why not use it then?
One more point was the fix would increase the map size and I tested 100 of the "red-marked-way" and 100 of the "no-red-fix" and well the map size increase by 0.3 kb. I said to him if someone comes and say "omfg this 0.3 kb will save the world it's imba important" I would just say "shut up".
========
Who said and why that these TriggerRegister Bj's are ok? like:
JASS:
TriggerRegisterAnyUnitEventBJ
========
Also what about Bj's like this:
JASS:
bj_MAX_PLAYER_SLOTS or bj_PI
Well they aren't marked red but there's a bj_ in front of it, so I thought I must replace them as well, but again they should be ok when I can type instead of bj_MAX_PLAYER_SLOTS, 15 and instead of bj_PI, 3,14159265?
========
Another thing is this:
JASS:
bj_mapInitialPlayableArea
So many here say this one is fine, anyway that this is a BJ but it's also a leak as far as I know and Pharaoh_ said it too, but what make this one ok for using?
========
One more thing is this:
JASS:
bj_lastCreatedGroup
As I understand Bribe he said, it's ok to use this one and it never gets destroy during the game, but isn't this bad? Why not just creating a local group only when you need it?
========
So at the end I want know what bj's you think are ok to use and why? Also how you, or I can, see that this Bj is ok? I mean is there a formula for it or something?
Hope some people here can give good critics of they opinion and why useing/mot using what bj and/or what kind of bj's.
Greetings and Peace
Dr. Boom