Comments (2)
Hi @drandreaskrueger, thanks. Currently, it's written this way because many Solidity programmers are writing problematic code, which they need to change. As such, I chose to go from what they might know (the bad) to the good.
Over time, it's debatable what the ideal order is once the bad is no longer a habit - and it's likely that we'll refactor the Recommendations section to highlight the right way to do things and then show the bad way (or even collapse the bad way). The Known Attacks section will likely always be in bad /good order, as we are focusing on the attack.
If you feel strongly about this and have empirical justification, I might also highlight your point to other popular repos, like the [Airbnb JS Style Guide](https://github.com/airbnb/javascript from which our doc draws inspiration.
from smart-contract-best-practices.
it's written this way because
I understand.
empirical justification
I had shortly tried to find such literature, but gave up. That's why the "I read somewhere..." :-)
I might also highlight your point
Very good. Go ahead. Myself, I have not read that other one, and currently have no need.
If you feel strongly
I don't.
It was just a thought when after reading I was wondering how to contribute.
This is a good time to learn Solidity, now that best practices are found and described.
Keep up the good work!
from smart-contract-best-practices.
Related Issues (20)
- Replace rate limiting example HOT 5
- Meta Issue for Gitcoining HOT 5
- dead link: securify HOT 2
- Oracle Manipulation HOT 1
- Update bounties HOT 1
- update bounties
- Ss
- validDestination modifier HOT 3
- Hi
- Speed bump example code is using unrecommended style
- time out. they didn't care about.
- Rate limiting example uses `transfer`.
- Broken links in `README.md`
- Event Monitoring suggests using `transfer()`
- Explain difference between `tx.origin` and `msg.sender`. HOT 1
- Constructor Naming HOT 1
- Explicitly declare state variables HOT 1
- Delete "Insecure Arithmetic" Page? HOT 1
- Update external-calls.md
- Website blocked by Telstra - Australia
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-contract-best-practices.