Code cleanup: use classes
See original GitHub issueI think it would be much better if we move away from loose functions and use classes for Skin
, Avatar
, Render
, Cape
, Profile
, etc. This would make things a lot easier.
for example:
var skin = new Skin(uuid);
var avatar = new Avatar(skin, true);
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
JavaScript code cleanup: how you can refactor to use Classes
Here, I'll show you how to use a Class (instead of exporting individual functions and variables) to organize your code.
Read more >Code style options and code cleanup - Visual Studio (Windows)
First, configure which code styles you want to apply (in one of two profiles) in the Configure Code Cleanup dialog box. To open...
Read more >Code cleanup | ReSharper Documentation - JetBrains
Right-click the selection and choose Cleanup Code in the context menu. Choose a cleanup profile as described above. Click Run to clean up...
Read more >JavaScript Clean Code — Objects and Classes
In this article, we'll look at how to organize our data in a way that's easy for us to use. Use Classes Over...
Read more >How to use cleanup code in Visual Studio - Developers Log
Running Code Cleanup with any of the available profiles will automatically apply to the file we are working on, the fixes we have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RobertHerhold Having any discussion here would be best. Future contributors can reference it and anyone that has ideas/concerns can chime in here.
As commented below the line, it’s possible to have a UUID but not have a profile, which means the user does not exist. The comment doesn’t really indicate that, sorry. It was introduced in 3fdd942c0f1c507b86bb530adf051c9dac64aeef as a fix for #93.
PS: When you link to source code on GitHub, press Y to get a permalink.