From f51e9c1bc04c36c50b6bbcc12b771be1d2c49fdb Mon Sep 17 00:00:00 2001 From: Nitesh Seram Date: Wed, 30 Apr 2025 12:44:05 +0530 Subject: [PATCH] [qns] sync: sync system design question (#1435) --- .../system-design/__prompts__/requirements.md | 84 ------------------- .../solution/en-US.langnostic.json | 4 +- .../dropdown-menu/solution/zh-CN.mdx | 52 ++++++------ .../solution/en-US.langnostic.json | 4 +- .../image-carousel/solution/zh-CN.mdx | 2 +- .../solution/en-US.langnostic.json | 8 +- .../modal-dialog/solution/zh-CN.mdx | 54 ++++++------ .../solution/en-US.langnostic.json | 4 +- .../rich-text-editor/solution/en-US.mdx | 5 +- .../rich-text-editor/solution/zh-CN.mdx | 21 +++-- 10 files changed, 80 insertions(+), 158 deletions(-) delete mode 100644 contents/questions/system-design/__prompts__/requirements.md diff --git a/contents/questions/system-design/__prompts__/requirements.md b/contents/questions/system-design/__prompts__/requirements.md deleted file mode 100644 index 33cec57f7..000000000 --- a/contents/questions/system-design/__prompts__/requirements.md +++ /dev/null @@ -1,84 +0,0 @@ -I'm authoring system design questions for front end engineers. The system design questions are mainly for client applications and focus on product, user interface, user experience and less about the back end and distributed systems. - -Requirements exploration involves understanding the problem thoroughly and determine the scope by asking a number of clarifying questions. - -Given the following applications and example questions within code blocks, generate a suitable set of clarifying questions candidates should be asking for . The title of the question is before the "===". - -``` -News Feed -=== - -### What are the core features to be supported? - -- Browse news feed containing posts by the user and their friends. -- Liking and reacting to feed posts. -- Creating and publishing new posts. - -Commenting and sharing will be discussed further down below but is not included in the core scope. - -### What kind of posts are supported? - -Primarily text and image-based posts. If time permits we can discuss more types of posts. - -### What pagination UX should be used for the feed? - -Infinite scrolling, meaning more posts will be added when the user reaches the end of their feed. - -### Will the application be used on mobile devices? - -Not a priority, but a good mobile experience would be nice. -``` - -``` -Chat Application -=== - -### What are the core functionalities needed? - -- Sending a message to a user. -- Receiving messages from a user. -- See one's chat history with a user. - -### Is the message receiving real-time? - -Yes, users should receive messages in real-time, as fast as possible without having to refresh the page. - -### What kind of message formats should be supported? - -Let's support formats text which can contain emojis. We can discuss supporting images if there's time. - -### Does the application need to work offline? - -Yes, where possible. Outgoing messages should be stored and sent out when the application goes online and users should still be allowed to browse messages even if they are offline. - -### Are there group conversations? - -We can assume it's a 1:1 messaging service. -``` - -``` -Travel booking (e.g. Airbnb) -=== - -### What are the core features to be supported? - -- Search and browse accommodation listings. -- Viewing accommodation details such as price, location, photos, and amenities. -- Make reservation for accommodations. - -### What does the user demographics look like? - -International users of a wide age range: US, Asia, Europe, etc. - -### What are the non-functional requirements? - -Each page should load under 2 seconds. Interactions with page elements should respond quickly. - -### What devices will the website be used on? - -All possible devices: laptop, tablets, mobile, etc. - -### Do users have to be signed in? - -Anyone can search for listings and browse details but users need to be logged in to make a booking. -``` diff --git a/contents/questions/system-design/dropdown-menu/solution/en-US.langnostic.json b/contents/questions/system-design/dropdown-menu/solution/en-US.langnostic.json index 9f7150d34..b0b13ebbe 100644 --- a/contents/questions/system-design/dropdown-menu/solution/en-US.langnostic.json +++ b/contents/questions/system-design/dropdown-menu/solution/en-US.langnostic.json @@ -56,7 +56,7 @@ "f533e100", "291d8871", "9707b6ec", - "100177d9", + "43c1fed2", "a5940b33", "4e94cf49", "7aa49345", @@ -161,7 +161,7 @@ "f533e100", "291d8871", "9707b6ec", - "100177d9", + "43c1fed2", "a5940b33", "4e94cf49", "7aa49345", diff --git a/contents/questions/system-design/dropdown-menu/solution/zh-CN.mdx b/contents/questions/system-design/dropdown-menu/solution/zh-CN.mdx index 82f0a17ce..22811a41a 100644 --- a/contents/questions/system-design/dropdown-menu/solution/zh-CN.mdx +++ b/contents/questions/system-design/dropdown-menu/solution/zh-CN.mdx @@ -128,11 +128,11 @@