Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleTwitter

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 want to have a coffee?
> Charlie follows Alice
> Charlie wall
Charlie - I'm in New York today! Anyone want 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 minute ago)
Bob - Damn! We lost! (2 minutes ago)
Alice - I love the weather today (5 minutes ago)

Details

  • The application must use the console for input and output.
  • Users submit commands to the application.
  • There are four commands. “posting”, “reading”, etc. are not part of the commands.
  • Commands always start with the user’s name.
  • posting: user name -> message
  • reading: user name
  • following: user name follows another user
  • wall: user name wall

NOTE: Add instructions about how to run the application.

What we are looking for:

  • Use the language you feel more comfortable.
  • Don't use any framework, we want to see your code. But feel free to use any library you think would make the solution better, like any library for the testing.
  • Pay attention about how your code is organized.
  • How you are reflecting the domain in the code.
  • We love clean code.
  • We don`t think 100% of code coverage is a must, but we love tests.
  • We are looking forward to seeing your code and discuss with you your solution.

About

hexagonal test

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages