You are viewing a single comment's thread from:

RE: Finally Comments - Moderate comment threads hide/delete

in #utopian-io7 years ago

Thanks for the contribution!

That's so cool! I wouldn't even know where to begin if I tried implementing this, so major props to you!

One thing I'd recommend is that you try to avoid having lines of code that are very long. With Python they recommend that you limit it to 80 characters and I think JavaScript is either 80 or 100, but I could be wrong.

Click here to see how your contribution was evaluated.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Sort:  

Hey thanks Amos!

You're totally right! I get lazy working on my cinema display, then kick myself when I'm on the train with a 13" laptop. I do find it hard sometimes to decide between (overly) verbose function names and keeping statements short. I think in general I want to/need to focus more on readability and improve my patterns, I'm sure there are a lot more new ES6 javascript patterns that can tidy things up.

I think it might be 80, which I totally havent thought about for awhile! 🙈

Take a look at Prettier. I use it with VS Code and I don't have to worry about the code formatting anymore - Prettier does it for me when saving.