Providing a single API for the non-GUI parts of Tahrir

31 views
Skip to first unread message

Ian Clarke

unread,
Mar 10, 2014, 3:33:04 PM3/10/14
to tahrir-de...@googlegroups.com
Hey guys,

So as I've mentioned before, we have an architectural problem right now where there is no clean separation between GUI code and the rest of the codebase.  This is a problem because we have multiple people working on different GUIs.

I spoke to Oliver most recently about this and I think he was going to try something here.

Oliver, would you mind explaining what we were going to do?

Ian.

--
Ian Clarke
Message has been deleted

Kevin Wang

unread,
Mar 11, 2014, 11:34:38 PM3/11/14
to tahrir-de...@googlegroups.com
Agree. It will make the structure more clear.

On Monday, March 10, 2014, Oliver Lee <exos...@gmail.com> wrote:
Basically, we're going to create an interface class which abstracts out the guts of Tahrir, and every GUI that we make will extend it, the desktop application, browser application, mobile phone application, all of them.

Right now, we have to be passing around a Node object, and calling methods from that class and various other classes from "back end" aspects of Tahrir, all of which may possibly be changed if we want to change the way the back end works, which if we did would break all of our GUIs, which is obviously bad- in other words we haven't been using the Model View Controller design pattern.

The GUI only needs to interface with the "back end" in 3 ways, 1) to create a new user identity, 2) to broadcast a message to other nodes, and 3) to receive messages from other nodes (so that those messages can be displayed however the user wants).  To that effect, the boilerplate code that we've just written has only 3 methods.  So the idea is we'll just implement that once, and all the GUIs will call those methods.  It'll be much cleaner than what we have now.

--
You received this message because you are subscribed to the Google Groups "Tahrir Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tahrir-developm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
All the best,
Kevin Wang
Reply all
Reply to author
Forward
0 new messages