Skip to content

karachi-katas/social-network-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Social Networking Kata

Credits to Sandro Mancuso and Samir Talwar for the original idea.

Implement a console-based social networking application (similar to Twitter) satisfying the scenarios below.

Scenarios

Posting: Alice can publish messages to a personal timeline

> Alice -> I love the weather today
> Bob -> Damn! We lost!
> Bob -> Good game though.

Reading: Bob can view Alice’s timeline

> Alice
> I love the weather today (5 minutes ago)
> Bob
> Good game though. (1 minute ago)
> Damn! We lost! (2 minutes ago)

Following: Charlie can subscribe to Alice’s and Bob’s timelines, and view an aggregated list of all subscriptions

> Charlie -> I'm in New York today! Anyone wants to have a coffee?
> Charlie follows Alice
> Charlie wall
> Charlie - I'm in New York today! Anyone wants to have a coffee? (2 seconds ago)
> Alice - I love the weather today (5 minutes ago)

> Charlie follows Bob
> Charlie wall
> Charlie - I'm in New York today! Anyone wants to have a coffee? (15 seconds ago)
> Bob - Good game though. (1 minutes ago)
> Bob - Damn! We lost! (2 minute ago)
> Alice - I love the weather today (5 minutes ago)

General requirements

  • Application must use the console for input and output;
  • User submits commands to the application:
    • posting: <user name> -> <message>
    • reading: <user name>
    • following: <user name> follows <another user>
    • wall: <user name> wall
  • Don't worry about handling any exceptions or invalid commands. Assume that the user will always type the correct commands. Just focus on the sunny day scenarios.
  • "posting:", "reading:", "following:" and "wall:" are not part of the command. All commands start with the user name.
  • Use whatever language and frameworks you want. Use something that you know well.
  • Provide a README with instructions on how to compile and run the application.
  • You must release your work with an OSI-approved open source license of your choice.

IMPORTANT: Implement the requirements focusing on writing the best code you can produce.

List of features

  • Posting: Alice can publish messages to a personal timeline
  • Reading: Bob can view Alice’s timeline
  • Following: Charlie can subscribe to Alice’s and Bob’s timelines, and view an aggregated list of all subscriptions
  • Mentions: Bob can link to Charlie in a message using “@”
  • Links: Alice can link to a clickable web resource in a message
  • Direct Messages: Mallory can send a private message to Alice

Further References:

http://www.tddbuddy.com/katas/Social%20Network.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages