question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve quickstart documentation

See original GitHub issue

Here’re my notes from Building X with JavaScript series

  • add quickstart guide - tutorial is too verbose and README doesn’t say much. In fact, do we have any positive feedback for the React tutorial? I’m thinkng about rewriting it from scratch, but I would like to figure out how to merge/simplify tutorials for various environments, if it’s possible.

  • 29:36 - this part breaks my heart 💔. The reason why he copies id and values might be either because he’s speedcoding or simply because he expects such API from working with react-intl. I think we should a) add docs how to use Lingui without macros/plugins b) make it more clear in docs what’s macro and how it looks under the hood or remove it from tutorial completely

  • prefer local installation of @lingui/cli, related #273

  • ~mention peer dependencies in tutorial (cross-link to @lingui/cli reference)~ It’s actually there, as the 3rd and last step of installation

  • write all imports in code examples

  • other plural form shouldn’t be considered as a default one. In fact, it shouldn’t be the only required form, because some languages (Polish, Russian) use other plural form for decimal numbers, while one, few, many for integers

  • 1:15:02 add note how to figure out plural rules for target language.

Other nice-to-haves:

  • add warnings about missing plural forms in development
  • upgrade to Babel 7, which should be the default version and provide steps how to use the lib with babel 6.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tricoder42commented, Sep 20, 2018

Well, that’s just sad 😄

For me, writing:

<Trans 
  id="See all <0>unread messages</0> or <1>mark them</1> as read." 
  components={[<Link to="/unread" />, <a onClick={markAsRead} />]}
/>

is just more advanced than:

<Trans>
      See all <Link to="/unread">unread messages</Link>{" or "}
      <a onClick={markAsRead}>mark them</a> as read.
</Trans>

…because I need to learn the API and I need to learn the message format.

On the other hand, if I use macros, I don’t have to learn anything (except plurals maybe), because I already know JSX.

Imagine if the macros plugin and CLI worked out of the box and you didn’t spend an hour to set it up? I would rather focus on making the installation and user onboarding right, than recommending more complex variation.

As I said, creat-react-app will soon have macros bundled, next.js have official example using macros, so once other frameworks will catch up, it’ll be much easier to beginners. Also the annoying babel 6/7 situation is making things a bit harder 😕

0reactions
stale[bot]commented, Oct 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

10 Tips for Creating Quick Start Guides
1. Identify the objective(s). What problem does your quick start guide help the user to solve? · 2. Show don't tell · 3....
Read more >
aws-quickstart/quickstart-documentation-example: Base for ...
This folder contains the base structure for AWS QuickStarts (New Repos will be auto populated with this structure · Example: · (scripts templates)...
Read more >
Quick start guides and in-depth API documentation
Quick start guide is in essence a shortened version of a documentation, a useful reference, meant to make prospect API consumer familiar with ......
Read more >
Quick start
Follow the Quickstart Assistant prompts. · Click on Indices in the dashboard's sidebar menu, click the UI Demos tab, and then the Generate...
Read more >
Quickstarts | Cloud Functions Documentation
gcloud Quickstart. Create and deploy a Cloud Function using the gcloud command-line tool. Was this helpful? Send feedback. Except as otherwise noted, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found