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.

Refactor existing areas to use readable ids rather than numeric

See original GitHub issue

Description

Having numeric IDs such as limbo:1 and craft:2 makes it very difficult to tell exactly what the room/item/NPC is that is being referenced.

This makes it tough for beginning builders to work with the existing areas, and also leads to the misconception that IDs have to be numeric.

Expected outcome

An ID for an entity reference should be at least somewhat human readable, such as craft:greenplant.

Actual outcome

Many IDs are not human-friendly and consist of a single-digit number.

Steps to reproduce

Look at the default bundle item definitions.

Version of Ranvier

2.0.0 (and all other versions thus far)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Vindexuscommented, Jul 17, 2018

Any update on that pr?

0reactions
shawncpluscommented, Oct 21, 2018

Closed in #340

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to refactor String id to class Id in a big legacy project?
Refactor the current method String getId() to Id getUniqueID(); Where ID is compared to a string directly using id.equals("String") or id.
Read more >
How to refactor code and why you should
Refactoring is when you take existing, working code and rewrite all or part of it to improve it in some way that doesn't...
Read more >
Where is the best place to start refactoring js?
A. You are using many Magic String Values. These can make readability and maintainability difficult. You could move them into constants.
Read more >
Chapter 8. Refactoring, testing, and debugging - Java 8 in Action
It presents several recipes showing how you can refactor existing code to make use of lambda expressions and gain more readability and flexibility....
Read more >
43% Less Code With A Better Data Structure
In this session we review & refactor an interesting problem. ... improved compared to the code in the video using a Set instead...
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