How to understand whole flow of this project?

62 views
Skip to first unread message

maneesh patel

unread,
Dec 11, 2013, 6:53:56 AM12/11/13
to ajax...@googlegroups.com
Hi All,

Might be my subject is not specifying whole points which  i want to ask. Here is my question:- 

I want to understand line by line flow of code. Means when user open open the chat page then which block of code is being executed? which method is being called?

Is anyone understood whole code from scratch? I hope many have done,so please help me on this issue.
Is any IDE needed or any debugger?


Thanks in advance.

Frug

unread,
Jan 5, 2014, 1:21:49 PM1/5/14
to ajax...@googlegroups.com
Some kind of flow chart would be useful for developers so they don't have to code-trace everything, which can be difficult because the AJAX nature of the project makes it a little non-linear.

Most of the project was made using Eclipse but I use NetBeans or notepad++ when working on it. I recommend notepad++ for everyone.

maneesh patel

unread,
Jan 6, 2014, 7:51:24 AM1/6/14
to ajax...@googlegroups.com
Thanks Philip. 
I want to implement OMEGLE type random chat feature. But due to complex & long AJAXCHAT class, it's quite difficult.
Your any suggestion will be helpful for me. 

Frug

unread,
Jan 6, 2014, 12:24:46 PM1/6/14
to
Chat is well commented and the code functions are well named, so it's easy to read through it. Basically
1) index.php loads >
2) processes configuration files and session variables and sets them to internal variables >
3) authenticates you by using whatever authentication method you have chosen >
4) checks to see if you are requesting an AJAX update ( you have a GET variable of ?ajax=true ) are viewing logs ( ?logs=true) or if you are logged out ( ?logout=true ) otherwise it assumes you want to load the loggedIn.html template and sends you that.

This is off the top of my head but I think this covers the most general logic flow. Most of the logic that you will actually be concerned with is contained in AJAXChat.php and the other files are basically a framework for things like database connections and character type handling that you don't need to worry about.

5) I believe the majority of the logic in the AJAXChat class deals with the case when ajax=true and determining what sort of xml content to send and how to handle certain user commands.

If you want to see the raw data chat is sending to clients, you can just add ?ajax=true to your url to view the XML. If you know the basics of AJAX applications you can get a sense of how the php and javascript talk to eachother.
Message has been deleted

Ingrid Sedé

unread,
Feb 25, 2014, 11:33:35 AM2/25/14
to ajax...@googlegroups.com
I.m reading this now for a better understanding of it. 

Kevin Ingwersen

unread,
Feb 25, 2014, 11:35:14 AM2/25/14
to Ingrid Sedé, ajax...@googlegroups.com
Looks legit :) Have fun!
--
You received this message because you are subscribed to the Google Groups "AJAX-chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ajax-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply all
Reply to author
Forward
0 new messages