In response to Farkas
Farkas wrote:
Revenant Jesus wrote:
This is a terrible guide for people to learn from. I don't suggest anyone even bother looking at it. Hell even the "sample code" you provide is WRONG.

> > mob/verb/OOC(mst as text)
> > world<<"[usr] has said:[mst]"
> > return
> >

First off MST should be MSG, second off you didn't need to use usr there, you could have used src. Third, you don't even need a return at the end of that.

---

Your attitude stinks, firstly, if he wants to put mob/verb/OOC(IMSAYINGSUMTHINGNOW as text) it will make no difference what so ever.

Although true, it is ugly. MSG is of no requirement. Some people use T as well. But I imagine his point spans from the fact that msg is commonly used.


Secondly, he can use "usr" there, because it's a verb, verbs will only ever be called by the usr, therefore, he's perfectly entitled to use "usr".

Yes, usr is safe in verbs. But if someone gets used to it, they might also think it's okay in procs as well. Which isn't ture. My general theory is to just leave usr alone, unless you're in something like Topic().


Thirdly, he doesn't need a return there no, you're right, but will it make the slightest bit of difference? No. Are you trying to be negative for the sake of being negative? Yes.

It's bad programming practice to put statements where they aren't necessary. It makes code ugly and actually does take up more processing power.

K, Thanks... Bye.

Have a good day.
In response to Farkas
Farkas wrote:
Secondly, he can use "usr" there, because it's a verb, verbs will only ever be called by the usr, therefore, he's perfectly entitled to use "usr".

Verbs can also be called without usr, but the practise is it make such verbs procs instead.

Generally I use usr if it affects the person who used the verb and src if it affects the container of the verb.

In a say verb, for instance, usr would get the "what do you want to say?" input, wheras src would be the one to send the message as.

-- Data
In response to Revenant Jesus
Hey buddy that was at typo, and it still works so calm down
In response to Trinkit
Trinkit wrote:
As I haven't offered anything to the community, you're one step ahead of me. I highly appreciate the effort that went into it. As much as everyone else is downing you for this guide, I understood it, it's one of few/none walking through a few basic features of 4.00, and, (I am probably blind) but, I don't see anyone that's complaining about your guide having anything else out.

While I do agree that most of us were pretty harsh, I think most of us offered fairly constructive criticism as well. There were only a couple exceptions.

As for whether writing guides of our own is all that gives us licence to point out the flaws of others, I don't agree to that at all. If that were the case, then we would not have a right to complain about our government because we're not in politics ourselves. If the United States was founded on the right to protest, if Canada was built on the idea of Commonwealth independence, if the United Kingdom was established by Magna Carta, then we have every right to speak our minds. =)
Page: 1 2