[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] The #include re-read work-around ... Stopped working !



PureBytes Links

Trading Reference Links


Tomasz,
 
As I wrote to Fred, I don't pretend to know about what editors others find comfortable.  If someone finds 'vi' / 'emacs' editors comfortable, then be it. I do not consider myself to be qualified to 'ROTFL' because of the choice of editor someone might make.  My attitude about this is 'to each his (her) own'.  (You seem to have a different attitude about this.)
 
How much or how little sense source code control makes for individual use depends completely upon how exactly the individual is using it.
 
Bottom line - AmiBroker did not re-read the #include file after about 15 to 20 executions and I am wondering about how to force AmiBroker to re-read the #include file from disk short of exiting and invoking it again.
 
Regards,
 
- Salil V Gangal
Tomasz Janeczko <amibroker@xxxxxx> wrote:


Salil,
 
Re: most important point #9:

>9) Most important, you get to be in the environment that you are
>    most comfortable with. (Be it 'vi' or 'emacs' or 'TextPad' or 'ConText' or ....)
 
Especially 'vi' and 'emacs' must be most preferred editors among AmiBroker users, ROTFL :-))))
 
Re: RCS
Source control is used for CO-OPERATION in developer group to manage 'reserving' (checking out)
and 'submission modified code' (checking-in) formulas so multiple developers know who works
on which part of bigger project.
Using it by single person makes very little sense.
 
To summarise:
if you really want you can write any editor you wish (vi for example if you are Unix evangelist), 
but I am thinking towards MAJORITY of users that need built-in editor, 
auto hi-lite, context help, auto-complete and parameter info, the features
not provided by external editors.
 
Bottom line: I have my to-do list full of features that 99% of users would highly appreciate
(like recently introduced AFL improvements, portfolio backtesting, more plugins (IB for example),
etc) that I am far from implementing features that only 1% (or less) of users would use.
 
Best regards,Tomasz Janeczkoamibroker.com

----- Original Message ----- 
From: Salil V Gangal 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, May 10, 2003 7:41 PM
Subject: Re: [amibroker] The #include re-read work-around ... Stopped working !



Tomasz,

 
Alas ... you seem to have ignored the 'Most important' #8 point.
 
Please be fair and admit that you do not have complete idea of the editing requirements/habits of every programmer who codes some AFL.  A feature that you find as 'essential' in editing, may be 'trivial' for someone else and what you find as 'trivial' may be 'essential' for someone else.

 

>>Be fair and admit that source control is NEVER used to write AFL formulas.<<
Nope ....  I will admit no such thing !
 
All of my personal code including even the small AFL scripts, are under source code control.  A single user free source code control is available at the following URL ="" href="">http://www.componentsoftware.com/products/rcs/dlconfirm.htm)
 
Regards,
 
- Salil V Gangal
Tomasz Janeczko <amibroker@xxxxxx> wrote:


Salil,
 
You seem to forget that AFL codes are much shorter than C++ / Delphi / VB
codes. They have a few hundreds (rarely thousands) of lines.
 
The features you mention are targeted to write big programs
like AmiBroker (that has millions of lines).
 
So although some of them are nice they are not essential,
and not that important as the ones I listed (especially for the beginners)
 
Be fair and admit that source control is NEVER used to write AFL formulas.
Source control is needed only if you work in a GROUP of developers working together 
and sharing sources simulatenously
on SINGLE BIG project.
 
Lack of it can not be compared to lack of context help, or auto-completion.
 
It is nice to have a car with air-condition but first you have to have the engine and
steering wheel.
 
I consider most the features you listed as minor compared to those mentioned by me
and already available in AmiBroker.
 
A few exceptions are 4 and 8 that will appear sometime in (not too distant) future.
 
Best regards,Tomasz Janeczkoamibroker.com

----- Original Message ----- 
From: Salil V Gangal 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, May 10, 2003 6:17 PM
Subject: Re: [amibroker] The #include re-read work-around ... Stopped working !


Tomasz,

 

If you use external programmers' editor you gain:
 
1) Infinite level of 'undo/redo'.
2) Automatic or timed back-up of your code
3) 'Source-code control' of your code
4) Automatic intelligent indenting
5) 'Regular-expression' search-n-replace.
6) Incremental search
7) Column copy-n-paste
8) Multiple windows over the same program and
    multiple windows over different programs
9) Most important, you get to be in the environment that you are
    most comfortable with.
   (Be it 'vi' or 'emacs' or 'TextPad' or 'ConText' or ....)
 
Lots of editors allow programming of the syntax hiliting as well.
 


>>I see no good reason to switch to external editor and loose all these goodies, therefore right now I don't support this idea.<<
As the programming needs grow in the future, perhaps you will and perhaps you may.
 
Regards,
 
- Salil V Gangal
Tomasz Janeczko <amibroker@xxxxxx> wrote:


Hello,
 
If you use external editor you loose:
 
- automatic syntax highlighting for all AFL functions and all loaded plugins 
  (although some external editors have definable syntax hi-lite but it forces you
   to update syntax definiiton file with EACH BETA release or each load of new plugin.
   Built-in AFL editor automatically reacts on all new functions added and automatically
   recognizes functions provided by all loaded plugins)
 
- AFL "Intellisense" technology (auto-completion and parameter information)
 
- automatic context sensitive function reference (F1 over function name)
 
I see no good reason to switch to external editor and loose all these goodies,
therefore right now I don't support this idea.
 
Best regards,Tomasz Janeczkoamibroker.com

----- Original Message ----- 
From: Salil V Gangal 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, May 10, 2003 4:25 PM
Subject: Re: [amibroker] The #include re-read work-around ... Stopped working !


Tomasz,
 
As I wrote below ===> For every execution I was adding a space in the script containing #include statement.  But after about 15 to 20 times, not matter how many spaces I added, no matter how many trivial _N("Hello World!"); I added, the #include file was not getting re-read from the disk.
 
Once I even changed the name of the #include to a non-existing file.  Quite correctly AmiBroker did not include the non-existing  #include file.  Immediately afterwards I changed the #include file name to existing file, but still AmiBroker did not re-read the #include file.
 
BTW, I understand why AmiBroker avoids re-reading.  However, using external programmers' editors for code development, rather than using AmiBroker's internal editor has its own advantages, evenif such development and subsequent inclusion of this code in AmiBroker via #include goes against the idea of the intended use of #include from AmiBroker's perspective.
 
(ORACLE's SQL*Plus has a nice built-in work-around.  It has facility where the developer can set text editor to any one that's installed.  ORACLE invokes this editor in edit mode and re-reads the edited code in execution mode.)
 
Regards,
 
- Salil V GangalTomasz Janeczko <amibroker@xxxxxx> wrote: 




Salil,
 
You must CHANGE the formula in AA. If you add a space and delete it immediatelly afterwards - in fact there is NO CHANGE.
So use either one action or another but not both!
 
Best regards,Tomasz Janeczkoamibroker.com

----- Original Message ----- 
From: Salil V Gangal 
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Saturday, May 10, 2003 6:49 AM
Subject: RE: [amibroker] The #include re-read work-around ... Stopped working !


Dingo,
 
I was developing script for last 1/2 hour. For every execution I was adding a space in the script containing #include statement.  I must have executed it 15 to 20 times. And now looks like AmiBroker is no longer re-reading the #include file, evenif I am  adding / deleting spaces and adding deleting some trivial strings. I saved and re-loaded the 'Formula' file a couple of time also.  Looks like the work-around has stopped working.
 
Any other work-around short of exiting AmiBroker and invoking it again ?
 
Regards,
 
- Salil V GangalSalil V Gangal <salil_gangal@xxxxxxxxx> wrote: 


Dingo,
 
Oh ... okay.
 
Thanks for the work-around. Just adding a space forced the re-reading.
 
Regards,
 
- Salil V Gangaldingo <dingo@xxxxxxxxxx> wrote: 


TJ reported that it worked the way as you describe. So it is "by design".  You need to change the formula in the AA window (add a space) or reload the formula to get it to re-read the Included file.  
 
see msg 37177.
 
d


-----Original Message-----From: Salil V Gangal [mailto:salil_gangal@xxxxxxxxx] Sent: Friday, May 09, 2003 11:13 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] The #include does not get re-read for each execution ?
Tomasz,
 
It looks as if the #include file is not getting re-read from the for every execution (invocation) of the program that contains the #include statement.  It looks like a bug.
 
Create a .AFL file with text (say)
 
"Hello World!";
 
And include this above file using #include in (say) the 'Guru Formula' and get the commentary.  It will contain the string Hello World!
 
Now change the disk file without exiting AmiBroker  to contain the string following string and save it to disk.
 
"Hello World! Hello World!";
 
Flip to 'Guru' Formula and click 'Apply'  ... the string that's show in the commentary still is a single Hello World! rather than double Hello World!
 
Regards,
 
- Salil V Gangal


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.






Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.