I agree with Mike, this hard going for me. I don't know any other
language besides xtalk, in which I am fluent. Declaring variable types
is foreign, to me a "list" is a sequence of delimited text, I don't know
what "block scoped" or "passing handlers as values" means. I'll reserve
judgement on "easier to test"; my experience so far is that error
messages are opaque and vague, but that may be because I was testing in
the wrong LC version.
I think my inexperience makes me the ideal candidate for testing the
lessons, but I could write a LCS library in a fraction of the time it
would take me to write something in LCB. I will probably learn it but it
will be a long journey. The "eureka" moments are rewarding though.
People who are coming to LC from other languages would likely share
Peter's view.
On 7/30/2016 1:45 PM, Mike Kerner wrote:
What I read is that you are saying that you prefer LCB because it is more
of a traditional language. I am completely the other way. Traditional
languages turn me off. So, for someone who can choose any tool there is,
but chooses LC, why LCB for libraries over LCS?
On Sat, Jul 30, 2016 at 12:59 PM, Peter TB Brett <peter.br...@livecode.com>
wrote:
On 30/07/2016 17:52, Mike Kerner wrote:
The thing I don't have my brain wrapped around, yet, is why one would use
the LCB library-building functionality instead of building a library
stack. I'm interested in what you're doing, Trevor, and how you're using
LCB, as I have ideas on how to make adopting LCB easier, for me, anyway.
I prefer writing libraries in LCB because:
- LCB libraries aren't in the message path; they get selected for dispatch
in the same way that engine commands do
- I find LCB libraries easier to test (built in unit test syntax)
- LCB has block scoped, strongly-typed variables
- LCB lets you pass handlers around as values
- LCB has lists
Peter
--
Dr Peter Brett <peter.br...@livecode.com>
LiveCode Technical Project Manager
LiveCode 2016 Conference https://livecode.com/edinburgh-2016/
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode