It still seems to me that the actual updating of the article should
be
a Node method (it is the Node object's article that is being
updated,
after all).
Yes, the owner of the data should update it.
Call it node_linkify. The new thought is to create two new
methods for the TP_file class:
-
Alan Gauld said unto the world upon 2005-02-10 02:58:
Pseudo code:
class Body:
def __init__(self,content):
self.contents = contents
self.nodes = []
def parse(self):
for line in self.contents:
if line == NodeStartTag:
Brian van den Broek wrote:
Alan Gauld said unto the world upon 2005-02-10 02:58:
Pseudo code:
class Body:
def __init__(self,content):
self.contents = contents
self.nodes = []
def parse(self):
for line in self.contents:
The main change in refactoring is moving it to OOP. I have a method
that serves as the entry point for parsing the files.
Not an object? If you are thinking terms of what the methods
do its probably not OOP...
I would expect to see an object for the File, another for the Header,
a third for
Alan Gauld said unto the world upon 2005-02-10 02:58:
The main change in refactoring is moving it to OOP. I have a method
that serves as the entry point for parsing the files.
Not an object? If you are thinking terms of what the methods
do its probably not OOP...
Hi Alan,
That may well be :-)
Alan Gauld wrote:
The main change in refactoring is moving it to OOP. I have a method
that serves as the entry point for parsing the files.
Not an object? If you are thinking terms of what the methods
do its probably not OOP...
I would expect to see an object for the File, another for the Header,