Code suggestions

From Friend2Friend Wiki

Jump to: navigation, search

This is for suggestions on how to improve the code. Use the page's 'discussion' tab (at the top) for giving feedback on them.

Hardcode To Improve

Name Size Description Status
Global datastores Small/Medium It could be more efficient, but it upsets the modularity and structure a bit. Maybe part of a model readjustment to using URIs for datastores? Suggestion
Adding a 'document node' to soft-systems Medium/Large Add a special node at the top of each soft system would increase tidyness, since it provides a consistent place for doing stuff that normal soft-nodes don't usually do. It also fits neatly with the 'Soft-system as DOM' analogy. Suggestion
getWaitTimePeriod() Small Could accept XSD dateTimes, so that people can say "wait until" Uncoded
call stack Medium I think this is a bit flaky when using callouts from callouts (e.g. public services)  ???
break log file into iterations Medium Will become important to use separate logs when the system is used a lot, since log speed decreases with size. Unfinished
call stack with 'send' Small I think this is not as good as it should be when using 'send'. Does it track created sreqs by alloating @did as expected?  ???
Services definitions Medium Could offer more flexible input schemas by supporting an <f2f:choice> element offering the functionality of <xs:choice> Uncoded
Installation Small Use date_default_timezone_set() to get the timezone from the server Hit a PHP bug.
Multi-iteration Hooks Small/Medium Currently, these are impossible, since the hook doesn't remember which namespace it was dealing with. The spec could be complicated, such as adding f2f:hookreq-ns="", or perhaps with a more complex format to manage this. Hit a PHP bug.
Opening up the model Medium How much of the object structures should we expose to soft code? Would it be good to allow them to add extra attributes to objects, such as messages? Needs thought

Hardcode To Add

Name Size Description
Network checker GUI Small/Medium Page for people to put in an F2F address. A dedicated F2F system will send periodic pings to check whether it is up enough to be listed on the network.

Hardcode To Remove

File Size Description
init.php, crunch.php Small Probably subsumed by other code. Are they even used any more?
call stack Medium I think this is a bit flaky when using callouts from callouts (e.g. public services)