Re: Why I believe that using class based prototyping is suboptimal

2017-12-16 Thread Terry Brown
On Sat, 16 Dec 2017 14:05:58 -0800 (PST) vitalije wrote: > How I did it? You can read it here: > http://computingart.net/functional-programming-for-prototyping.html > > All comments are welcome. You're blog doesn't support comments ;-) I read all three parts and found it interesting, although

Re: Why I believe that using class based prototyping is suboptimal

2017-12-16 Thread 'tfer' via leo-editor
Hi, The unresponsiveness after load may have to do with the number of lines the current node contains. As the editor for nodes is all written in python, it has problems when the number of lines in a node is large. On Saturday, December 16, 2017 at 5:05:58 PM UTC-5, vitalije wrote: > > As I pro

Why I believe that using class based prototyping is suboptimal

2017-12-16 Thread vitalije
As I promised in other thread few days ago, that I will write in more detail about what I believe to be a better way to make prototype, I am glad to report that text is on the web. Text is not short and perhaps needs some spelling and grammar corrections. I would appreciate all feedback that yo

Re: Requirements for Curses console mode

2017-12-16 Thread Matt Wilkie
Found it! The missing dependency is python-tk, which I needed to install with apt. I discovered it by loading LeoPlugins.leo in graphical Leo, navigating to @file cursesGui2.py and using Ctrl-B, where I then received a Tk import error. ​ Now this begs the question, is Python-tk actually required o

Requirements for Curses console mode

2017-12-16 Thread Matt Wilkie
What are the requirements for the Curses console mode of Leo? It doesn't work for me on Linux py2.7 and the messages haven't been enough to point me in the right direction. Full report at https://github.com/leo-editor/leo-editor/issues/638 apt reports that ncurses-base and ncurses-bin are install

Re: I restarted Leo and my 800+ line script was replaced by one blank root node

2017-12-16 Thread Terry Brown
I don't think you attached the attachment. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this

ENB: replacing regexs by ast tests

2017-12-16 Thread Edward K. Ream
Only three cc methods now use regexs: two helpers of cc.before_Assign and cc.before_Call. Imo, regex matches were essential to revving up energy in the early phases of this project. Now, however, they are impeding progress by hiding the details of what is going on. Happily, it is has been str

Re: ENB: The collapse of the CCTraverser class

2017-12-16 Thread Edward K. Ream
On Saturday, December 16, 2017 at 3:14:16 AM UTC-6, Edward K. Ream wrote: *Notice*: this code calls getattr(*self.cc*,...) to get before/after > methods and calls getattr(*self*,...) to get node visitors. > We could use getattr(self) in both case if the cc class were a subclass of cct. But I l

ENB: The collapse of the CCTraverser class

2017-12-16 Thread Edward K. Ream
This Engineering Notebook post documents a spectacular collapse in complexity. All of the difficult issues I discussed in previous ENB posts have been resolved, completely and cleanly. The highlight of the work is the complete collapse of the CCTraverser (*cct*) class. Here it is, *in full*: