Go back to Read free chapters

Content Marking Pattern

How Hashtags work - Hashtags as Content Marking Pattern

Content Marking Pattern

The first one of our Social Networking Patterns includes a pattern to give the text content more depth. It's like highlighting the most important words in a complex content. Your eyes will fix on the words in a glimpse and your brain will understand the meaning faster. 

The Content Marking has become popular through the use of hash tags. The hashtag symbol in front of a word # is used to simply mark the word for indexed content. This marking is called meta tags. Meta tags were widely used in webpage header tags to give search engines a faster glimpse for the keyword in the text content, but when the search engines have developed so have the webpage meta keyword tags been missing. 

So why are hash tags so popular? One reason is that the content is more searchable through hashtags.

This chapter presents a new pattern that's widely used in social networks for browsing, following and searching content. The pattern Content Marking Pattern consists of the following components:

 

Image of Message and Hashtag many to many relation.

The Content Marking Pattern describes the relationship between a message and its corresponding hash tag. One message can have multiple hashtags and one hashtag can be included in multiple messages. 

This relation gives us two lists: a list of Messages with hashtags and a list of hashtags. 

List of Messages may be used to obtain the messages with a hashtag or with multiple hashtags.

List of Hashtags may be used to obtain hashtags that are popular number of messages a hashtag occurs in. 

We offer you an Implementation article based on this pattern and a Tutorial to build a microblog service in example a Twitter Clone application. 

 

The tutorial application works also as a base that you can use to

- Learn Java server and Database programming.

- Learn how to build a runnable Microservice.

- Learn Social Networking core components and describe them to others.

- Learn to build a database and make simple queries to it.

- Learn to build a web page and show it to users.

- Learn to send messages from a web page.

- Learn to sort messages by hashtags. 


 

What new ideas or thoughts this chapter gave you?