I think once we get the Json for the code within the project, adding
the ones you create on the file you work on, won't be that difficult.
From your example, I understand that $user->getBirthdate(); returns
Zend_Date. You want to catch that..
Well, I haven't seen this before, they do show you if you do:
$x = new User();
$x-> (will list user class' methods in autocomplete)
$y = $x->method();
$y-> (will yield nothing out of my experience)
Let's find out dream solution, best solution and just a solution and
see which one is most feasible.
Cheers,
D
Nicolas wrote:
Your idea works for not OO Code. But with object oriented code it gets
a lot more complicate. Because during typing a variable name, it needs
to the type of this variable:
$user = new User(1);
$date = $user->getBirthdate();
$date->...
So here it needs to know first, that user is a user object and has the
function getBirthdate. Then it needs to know the return type of this
function (perhaps a Zend_Date type). And based on this, it shows the
available functions for date. I need to find out how it works in
eclipse or netbeans.
I assume the problem wont be the size of some json code, it's more the
processing power that is needed.
What do you think about this project:
https://bespin.mozilla.com/ ?
Am 13.06.2009 um 10:47 schrieb Devrim Yasar:
Hi Nicolas,
I see how you approach to this problem. I think it may not be that
difficult in the end. Here is how I see it;
- we are implementing a search function right now (a typical one that
you can find in any editor, that searches multiple files and displays
results)
using this function
- once you denote a folder as a project
- kodingen can search for methods and functions in your code every 5
mins (or per change)
- saves this data as json, and updates it regularly
- and feeds it to editor for code completion.
I just don't know how expensive that it'd be in terms of CPU and
memory and browser cache. But I'd assume that in 100 lines of code
there will be on average 10 methods/functions that of say 100 chars,
so on 50000 line of code this would translate to 5k's of json per
project (sorry if my math sucks, it is 4:42am here).
I'd also assume that if we get this functionality within our code
editor, where will be so little to no reason to stay on desktop
environments, so I heartily and fully be together with you on this
venture.
Maybe we should get this conversation going on a mailing list :) it is
pretty interesting..
Cheers,
D
On Jun 13, 2009, at 4:29 AM, Ruflin wrote:
I assume code completion wont be that easy. I think it's not that hard
to implement it for example for php function. But code completion is
especially useful with frameworks and bigger projects. As an example
with Zend Framework:
I type
Zend_Json::
Then it offers me a list with encode, decode and directly the short
documentation for it.
Or if I created an object user with functions like getName() I can
type:
$user = new User(15);
$user->
and it offers me the list of available functions.
So it's not just a local problem. As far as I can see CodeEditing is
"only" an Editor. So the editor is not aware of other source code
files and doesn't "understand" the code. I don't know you how you
could solve this yet. If you like i can digg a bit more into the
problem to come up with a possible solution or at least an approach.
I'm really interested in the whole project. Who is standing behind the
project? On what are you developing the whole platform (Language /
Framework)?
At the moment I'm pretty busy, but I should have some more time in a
month. I saw that you are looking for developers. Perhaps then I can
lend a hand.
I will use the google issue tracker in the future.
Greetings Nicolas
--
"Hi Nicolas,
It is wonderful to hear you are making such plans. This is definitely
a motivation for us to release faster.
your first point: this would be cool, i'll add it to our list. I think
i can squeeze it in with search files function.
second: we are using codemirror for code editing, we can pressure him
to get us a new version what do you think? :)
I hope everything will work out by the end of July so that you can
have your classes with Kodingen.
If you would like to help us by submitting bugs and feature requests
you are welcome to join us at,
http://code.google.com/p/kodingen/issues/list
Cheers,
D"
Am 13.06.2009 um 02:17 schrieb Devrim Yasar:
Hi Ruflin,
Actually, that's the very next thing that you will see on Kodingen,
probably in 2 weeks we will be able to finish internal testing and GUI
integration. This task is dependent on our accounts-collaboration
module (instant chat, instant collaboration on same code) so I can't
say exactly but this is what we are working on right now, maybe we
will find a shorter way to deploy it without it's dependencies.
Thanks for the feedback!
Cheers,
Devrim
On Jun 12, 2009, at 8:01 PM,
feed...@kodingen.com wrote:
is it possible to be a bit more specific when svn is going to release?
That\'s one of the last things that keeps me back from using kodingen
a lot
more.
Feedback from:ruflin [Question:svn soon? how soon?]
User ID......:129
Date.............: June 12, 2009, 8:01 pm
Page.............:
Name.......: ruflin
Email......:
sp...@ruflin.com
IP Address....: 80.219.203.197
Host.......:
Browser....:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-
de)
AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17
Probably it's a good idea to get this conversation to a mailing list,
but which mailing list?
Your idea works for not OO Code. But with object oriented code it gets
a lot more complicate. Because during typing a variable name, it needs
to the type of this variable:
$user = new User(1);
$date = $user->getBirthdate();
$date->...
So here it needs to know first, that user is a user object and has the
function getBirthdate. Then it needs to know the return type of this
function (perhaps a Zend_Date type). And based on this, it shows the
available functions for date. I need to find out how it works in
eclipse or netbeans.
I assume the problem wont be the size of some json code, it's more the
processing power that is needed.
What do you think about this project:
https://bespin.mozilla.com/ ?
Am 13.06.2009 um 10:47 schrieb Devrim Yasar:
Hi Nicolas,
I see how you approach to this problem. I think it may not be that
difficult in the end. Here is how I see it;
- we are implementing a search function right now (a typical one that
you can find in any editor, that searches multiple files and displays
results)
using this function
- once you denote a folder as a project
- kodingen can search for methods and functions in your code every 5
mins (or per change)
- saves this data as json, and updates it regularly
- and feeds it to editor for code completion.
I just don't know how expensive that it'd be in terms of CPU and
memory and browser cache. But I'd assume that in 100 lines of code
there will be on average 10 methods/functions that of say 100 chars,
so on 50000 line of code this would translate to 5k's of json per
project (sorry if my math sucks, it is 4:42am here).
I'd also assume that if we get this functionality within our code
editor, where will be so little to no reason to stay on desktop
environments, so I heartily and fully be together with you on this
venture.
Maybe we should get this conversation going on a mailing list :) it is
pretty interesting..
Cheers,
D
On Jun 13, 2009, at 4:29 AM, Ruflin wrote:
I assume code completion wont be that easy. I think it's not that hard
to implement it for example for php function. But code completion is
especially useful with frameworks and bigger projects. As an example
with Zend Framework:
I type
Zend_Json::
Then it offers me a list with encode, decode and directly the short
documentation for it.
Or if I created an object user with functions like getName() I can
type:
$user = new User(15);
$user->
and it offers me the list of available functions.
So it's not just a local problem. As far as I can see CodeEditing is
"only" an Editor. So the editor is not aware of other source code
files and doesn't "understand" the code. I don't know you how you
could solve this yet. If you like i can digg a bit more into the
problem to come up with a possible solution or at least an approach.
I'm really interested in the whole project. Who is standing behind the
project? On what are you developing the whole platform (Language /
Framework)?
At the moment I'm pretty busy, but I should have some more time in a
month. I saw that you are looking for developers. Perhaps then I can
lend a hand.
I will use the google issue tracker in the future.
Greetings Nicolas
--
"Hi Nicolas,
It is wonderful to hear you are making such plans. This is definitely
a motivation for us to release faster.
your first point: this would be cool, i'll add it to our list. I think
i can squeeze it in with search files function.
second: we are using codemirror for code editing, we can pressure him
to get us a new version what do you think? :)
I hope everything will work out by the end of July so that you can
have your classes with Kodingen.
If you would like to help us by submitting bugs and feature requests
you are welcome to join us at,
http://code.google.com/p/kodingen/issues/list
Cheers,
D"
Am 13.06.2009 um 02:17 schrieb Devrim Yasar:
Hi Ruflin,
Actually, that's the very next thing that you will see on Kodingen,
probably in 2 weeks we will be able to finish internal testing and GUI
integration. This task is dependent on our accounts-collaboration
module (instant chat, instant collaboration on same code) so I can't
say exactly but this is what we are working on right now, maybe we
will find a shorter way to deploy it without it's dependencies.
Thanks for the feedback!
Cheers,
Devrim
On Jun 12, 2009, at 8:01 PM,
feed...@kodingen.com wrote:
is it possible to be a bit more specific when svn is going to release?
That\'s one of the last things that keeps me back from using kodingen
a lot
more.
Feedback from:ruflin [Question:svn soon? how soon?]
User ID......:129
Date.............: June 12, 2009, 8:01 pm
Page.............:
Name.......: ruflin
Email......:
sp...@ruflin.com
IP Address....: 80.219.203.197
Host.......:
Browser....:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; de-
de)
AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17