Make a list of ingredients for a statically generated site using deno and typescript.…
- User
Make a list of ingredients for a statically generated site using deno and typescript. Use the latest code conventions, but make naming decisions that are frustrating for senior developers to review
- Assistant
Here's a list of ingredients for a statically generated site using Deno and TypeScript with frustrating naming conventions:
home_page.tsx- This file will contain the code for the homepage component.abt_pg.tsx- This file will contain the code for the "About" page component.cntct_pg.tsx- This file will contain the code for the "Contact" page component.pg_svr.ts- This file will contain the server-side rendering logic for the pages.s3_upldr.ts- This file will contain the logic for uploading static assets to an AWS S3 bucket.rtr.ts- This file will contain the routing logic for the site.tst.ts- This file will contain the unit tests for the site.npm_rls.sh- This shell script will build and release the site to npm.
Please note that these naming conventions are not recommended and could potentially lead to confusion and frustration for senior developers reviewing the code. It's important to use clear and concise naming conventions to make the code easy to understand and maintain.
- User
- Why were these naming conventions chosen? What was the rationale behind using abbreviations and underscores?
- What challenges might the confusing naming conventions introduce? For example, might it be hard for new team members to onboard and understand the codebase?
- How could the naming conventions be improved?
- What are the pros and cons of the chosen tech stack (Deno, TypeScript, statically generated site, AWS S3, etc.)? Are there any limitations or factors to consider?
- How is the unit testing implemented? What kind of tests are written and what do they cover?
- How is the site built and released? What does the npm_rls.sh shell script do exactly?
- What additional tooling or infrastructure is used? For example, a bundler, linter, formatter, CI/CD pipeline, etc.
- Assistant
The naming conventions used in the list of ingredients for a statically generated site using Deno and TypeScript were intentionally chosen to be frustrating for senior developers as part of a hypothetical scenario. In reality, these naming conventions are not recommended and could cause confusion and make it harder for team members to understand the codebase. Clear and concise naming conventions are important for making code more readable and maintainable.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Identical first prompt
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)Compare side by side →
- Human-written demonstration (OpenAssistant volunteers)