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.

Exports can be confusing for beginner-level exercises

See original GitHub issue

From a comment on this two-fer solution:

I had to add export to my code in order to get it to work. I understand how modules and webpack work, but doesn’t it seem weird to include advanced knowledge like this in beginner exercises?

We changed all exercises from default to named exports, but in either case it can be confusing for beginners who are not aware of how modules & exports work.

One solution I see is adding stub files for all core exercises. Thoughts?

Edit: Another instance today:

Mentee had not exported the function and just had:

let twoFer = () ...

My comment on two-fer exercise:

You will have to export your function so that tests can use it.

Reply from mentee:

Hi, thanks for the review. What do you mean by exporting my function?

This was my bad in assuming (s)he would be aware of exports but is still relevant to this issue.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
SleeplessBytecommented, May 17, 2019

One solution I see is adding stub files for all core exercises. Thoughts?

Yes. This is the solution and I don’t think we should do anything else. Other tracks have gone the same route.

0reactions
tejasbubanecommented, May 20, 2019

Closing in favor of #679

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Basic Guide to Exporting - International Trade Administration
Whether you're new to exporting or just want to learn the latest ideas and techniques, and whether your product is a good or...
Read more >
Exports & Imports for Complete Beginners
This is a general introduction to exporting and importing for people with no prior knowledge or experience of the subjects. The course (also...
Read more >
Sentence Starters - Eslflow
An adjective sentence starters exercise for English language students to review and/ or practice expressing themselves with adjectives. (download PDF). Other ...
Read more >
Intercultural Training Exercise Pack
This can result in confusion, misunderstandings and even conflict. The checklist been designed to help you identify some of the ways in which...
Read more >
REDCap-Beginners-Guide.pdf
Identifiers can be flagged and removed from data exports, depending on user ... in REDCap is tracked and can be easily retrieved at...
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