https://github.com/aretecode/awesome-advice
A collection of awesome pieces of advice
https://github.com/aretecode/awesome-advice
List: awesome-advice
Last synced: 29 days ago
JSON representation
A collection of awesome pieces of advice
- Host: GitHub
- URL: https://github.com/aretecode/awesome-advice
- Owner: aretecode
- Created: 2017-06-13T11:14:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T19:37:50.000Z (about 4 years ago)
- Last Synced: 2025-10-24T20:02:37.013Z (5 months ago)
- Size: 9.77 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Awesome Advice [](https://github.com/sindresorhus/awesome)
> A collection of awesome pieces of advice
## Priority
- The better the problem is defined, the better the solution will be
## Research
- #1. most important thing in programming is knowing how to research.
- #2. is research.
- #3. is research.
## 15 minute rule
> general rule of thumb / proverbial saying, not 100% black-and-white, just don't be an askhole.
- If you ask for help on a problem before doing at least 15 minutes of work researching, debugging, and defining your problem, you're doing the other person a disservice.
- If you wait longer than 45 minutes and you are stuck, you are doing yourself a disservice.
## Proverbial
- Measure twice, cut once
- There is never any code that is more permanent than temporary code
- When you have a hammer, everything looks like a nail
- If you're not using a framework, you're making one.
## General
- Design patterns: don't let the names dictate the form of your code
- Expressive, clearly communicative, clean code
- Have [variable names describe their intention](https://twitter.com/svensauleau/status/856424137493008384)
- Join in the community, conversing with people interested in the same thing, helping solve problems & getting your problems solved
- Don't worry if you think it sucks, contributing open source code helps build important skills, practice makes permanent
- Muscle memory is 10x more effective than memorization: study, but don't forget to _exercise_ your learning
[eslint]: https://www.npmjs.com/package/eslint
[prettier]: https://github.com/prettier/prettier
[tslint]: https://www.npmjs.com/package/tslint-eslint-rules
[xo]: https://github.com/sindresorhus/xo
## Tools
- Consistency - use tools to keep consistent rules [[eslint][eslint], [prettier][prettier], [tslint][tslint], [xo][xo]]
- [Backwards compatibility is for suckers](http://blog.ircmaxell.com/2013/06/backwards-compatibility-is-for-suckers.html)
## Performance
- Premature optimization is the root of all evil
- Make it debuggable
- Ensure that the micro-optimizations are really things to optimize if they may do less benefit and cause more negatives than obvious ones
- [Benchmark](https://github.com/aretecode/bench-chain)
## Always
- Good APIs
- Schema validation
- Good http transactions
- Simple DBs
---
See [best-practices](best-practices.md) for Principles, Laws, and general best practices.
## Contribute
Contributions welcome!
Read the [contribution guidelines](contributing.md) first.
## License
[](http://creativecommons.org/publicdomain/zero/1.0)
To the extent possible under law, James has waived all copyright and related or neighboring rights to this work.