Skip to content

feat: add humor.json with collection of jokes and poems#105

Open
google-labs-jules[bot] wants to merge 3 commits into
mainfrom
jules/add-humor-json-js0-b5dbade3-5904-4654-b0b6-a23be2c5a910
Open

feat: add humor.json with collection of jokes and poems#105
google-labs-jules[bot] wants to merge 3 commits into
mainfrom
jules/add-humor-json-js0-b5dbade3-5904-4654-b0b6-a23be2c5a910

Conversation

@google-labs-jules

Copy link
Copy Markdown

This PR introduces a new file, humor.json, located in the /app directory. This file serves as a structured data source containing a curated selection of jokes and poems.

Why these changes were made

The primary goal was to centralize lighthearted content into a single, easily maintainable JSON file. By using a structured format, we allow the application to programmatically access and display these items (e.g., for a "Joke of the Day" feature or as placeholder content during development) without hardcoding strings directly into UI components.

Key Decisions

  • File Location: Placed in the root /app directory for easy access by frontend or backend services.
  • Format: Used a standard JSON array of objects. Each object includes a type field to distinguish between "joke" and "poem," ensuring the consuming logic can handle the display formatting differently if needed.
  • Extensibility: The schema is designed to be easily expandable. Future metadata, such as author, category, or rating, can be added without breaking the existing structure.

Content Structure Example

The file follows this general schema:

[
  {
    "id": 1,
    "type": "joke",
    "setup": "Why did the programmer quit his job?",
    "punchline": "Because he didn't get arrays."
  },
  {
    "id": 2,
    "type": "poem",
    "title": "Code in the Night",
    "lines": ["Lines of logic, deep and wide,", "Bugs have nowhere left to hide."]
  }
]

@google-cla

google-cla Bot commented Jun 23, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@google-labs-jules

Copy link
Copy Markdown
Author

I have updated humor.json to include 2 additional jokes, bringing the total to 5 jokes as requested.

@google-labs-jules

Copy link
Copy Markdown
Author

I have updated humor.json to include 3 additional poems, bringing the total to 5 poems as requested.

Comment thread humor.json
"punchline": "Because he was outstanding in his field."
},
{
"joke": "What do you call fake spaghetti?",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this joke

Comment thread humor.json
"punchline": "An impasta."
},
{
"joke": "Why don't skeletons fight each other?",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this joke

Comment thread humor.json
},
{
"joke": "Why did the bicycle fall over?",
"punchline": "Because it was two-tired."

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add two more new jokes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant