while(confused) {
buy("$NOOB");
profit = true;
}
The only coin that appreciates your console.log() debugging skills
pragma solidity ^0.8.0;
contract NoobCoding {
// For everyone who googles "how to center a div"
// For those who forget semicolons
// For the true copy-paste masters
string public motto = "It works, don't touch it";
function isNoob() public returns(bool) {
return true; // We're all noobs here
}
}
If it compiles, ship it. We'll fix it in production.
90% of our code comes from accepted answers.
More caffeine = Better code. Science.
$ npm install
Error: 17,453 vulnerabilities found
$ npm audit fix
✓ Fixed 0 vulnerabilities
Me: *sweats profusely*
// TODO: Fix this later
// FIXME: This is a hack
// HACK: Don't judge me
// Last update: 2019
Still in production
if (code.works()) {
// Don't touch it
} else {
console.log("It works on my machine");
}