Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readability #19

Open
jxmked opened this issue Feb 29, 2024 · 1 comment
Open

Readability #19

jxmked opened this issue Feb 29, 2024 · 1 comment

Comments

@jxmked
Copy link

jxmked commented Feb 29, 2024

Readability of a code remains intact. Better to randomly place the comment around and convert some condition into ternary, rename some variables into random shit and any idea you came up with.

@HelloWorld-n
Copy link

  
let $someLet = {'name': `remaining ${"something"}`, 'value': 7, 'updates': `never`}
function stuffToRun(){
;;;;console.log(`takes ${arguments.length} parameters; uses ${0} of them`)
}

// later
if ($someLet['value'] > 5){
;;;;stuffToRun('always')
} else {
;;;;stuffToRun('never')
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants