RxQuote
Introduction
In life, there are many days when we find ourselves lacking motivation and direction—especially when our hard work is dismissed or ridiculed by others.
- Sometimes, our best intentions are misunderstood or crushed by those around us.
- Just like anything else that requires maintenance, staying motivated and heading in the right direction takes deliberate effort.
Having a curated set of quotes to read can provide that much-needed spark.
- This need inspired the creation of a famous quote generator: RxQuote.
The Design Journey
The development began by levergaing an AI agent to scaffold the core functionalities, which include:
- A smart shuffle button: A randomized shuffling mechanism designed so that a quote will not repeat until the entire stack has been displayed.
- A local data source: Fetching quotes directly from a built-in JSON file.
- An automated pipeline: A Node.js script that automatically parses an Excel sheet into the required JSON format.
While building this, I realized how repetitive it can feel to spin up Progressive Web Apps (PWAs) using Next.js. It often means falling back on the same old routine of configuring familiar boilerplate files, such as:
- _headers in the public folder for strict security and permission policies.
- tsconfig.json for strict TypeScript type-checking.
- biome.json for linting and formatting rules.
- A manual sw.js (Service Worker) setup integrated via service-worker registration in layout.tsx.
- A standard .gitignore file.
Once the configuration was complete, I deployed the application and thoroughly checked the console logs to ensure that both the sw.js and the web app manifest registered successfully without errors.
The Quote Collection Journey
Because of its simplistic design, RxQuote was relatively easy to create.
- The next phase focused on collecting impactful, familiar quotes.
- Instead of defaulting to a pre-made quotes library, I am hand-picking the majority of the 1420 quotes from my own readings, alongside two major references: Bartlett's Familiar Quotations and The New Yale Book of Quotations.
- From the cultural rebirth of Renaissance through the intellectual awakening of the Enlightenment, a steady rise in literacy rates and the spread of the printing press led to a massive influx of preserved Western quotations.
- This explosion of documented thought was championed across eras by by iconic figures like William Shakespeare, François de La Rochefoucauld, and Benjamin Franklin.
- Yet, one unsettling thread remained consistent: a vast collection of deep-seated prejudices regarding women and sex persisted well into the 20th century.
- Part of the reason for this could be that throughout the centuries, the human struggle and experience have been fairly universal; hence, we inevitably reach the same conclusions. After all, geographical separation and historical inaccessibility should have driven us to completely different outlooks on life.
- However, I also think the observation by Herbert Paul holds true - whether it was Roman writers copying the Greeks, or English writers borrowing from the French:"After all, what is originality? It is merely undetected plagiarism."
Summary
My hope is that whenever you feel lost, reading through these quotes will give you the energy to keep moving forward.- Remember: life always goes on, whether we choose to accept the truth or not.
Comments
Post a Comment