We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bad:
var a = document.getElementById("a") var b = document.getElementById("b") var c = document.getElementsByClassName("c") var d = document.getElementsByTagName("body")[0]
Good:
const $ = (v) => document.querySelector(v) let a = $("#a") let b = $("#b") let c = $(".c") let d = $("body")
console.log(a) console.log(b) console.log(c) console.log(d)
const log = (v) => console.log(v) log(a) log(b) log(c) log(d)
Sugeri estas ideias no repositório inglês, mas não aceitaram. Se quiser adicionar apenas na versão português...
Opinião do bot gringo:
Minha opinião:
The text was updated successfully, but these errors were encountered:
Closed discussion link: ryanmcdermott/clean-code-javascript#293
Sorry, something went wrong.
Achei ótimas ideias @Gurigraphics !!
@ficast Como só aceitavam conteúdo do livro coloquei as ideias aqui https://github.com/Gurigraphics/javascript
No branches or pull requests
Learn with Jquery how to use the vanilla javascript
Bad:
Good:
Stop repeating console.log
Bad:
Good:
Sugeri estas ideias no repositório inglês, mas não aceitaram.
Se quiser adicionar apenas na versão português...
Opinião do bot gringo:
Minha opinião:
The text was updated successfully, but these errors were encountered: