Wednesday, October 25, 2006

Nibaq I need to have a look at the aggregator’s code. I haven’t touched a single line of code for more than 5 years now, so I’m a bit rusty. The example below will give you an idea of how to organize the aggregator. The whole idea is to make it easy for a reader to identify the most popular post by identifying the number of comments left by unique reader. In other word the most worth reading post would most likely have the highest number of comments by users, if users comment twice or more in a single post, a count will be taken for one. This way you have an alternative way to sort posts that is useful, or at least I think!! I’m not very literate I think writing code in this situation is more rhetoric.

Int cmt_count /* the number of commets left by users */
Var blg_name /* name of the blog*/
Var blg_name_permalink /* the actual blog url */

fscanf (each_outgoing_blog_permalink);
while(blog_post_comments == 0) cmt_count = 0;
else (cmt_count== blog_post_comments);

fprintf(blg_name,);
fprintf(blg_name_permalink, “has” cmt_count, “commets”);

/* blog_post_comments and each_outgoing_blog_permalink supposedly are both functions I still have to figure the algorithm */

This is a very simplistic example of how to execute such code. A lot of work is required to have this function work correctly. Nibaq I need the code for the aggregator.

4 comments:

Delicately Realistic said...

E wallah
khoooooosh fikraaa!

K.thekuwaiti said...

Sounds like a good idea ..

Here is Nibaq's digg-style concept for Kuwaitblogs:

http://sowtt.kuwaitblogs.com/


People vote for the best posts; you could implement your code into that site to compare highest voted/commented posts.

error said...

DR
I've been very busy and lost intrest in the idea!

K
the idea is somewhat different from the digg concept. instead of voting, commnets count as votes.

error said...

and i forgot to say kha6ach essooow salamat!!