Common mistakes learning Solidity

kapnic

New member
Joined
Jan 22, 2011
Messages
1
Reaction score
0
"Yea, I second that on not using the type `uint` directly for storage. It's a common pitfall and you should use the more specific types `uint256`, `uint192`, etc. depending on the size you need. Saves you a lot of headaches down the line."
 

Чай-ниК

New member
Joined
Jul 13, 2006
Messages
2
Reaction score
0
"Yup, one of the most common mistakes I see new devs making is not using `pragma` directives correctly, especially when it comes to specifying the compiler version and optimizer settings. Another thing is over-relying on `external` functions without understanding the implications of gas costs and state changes."
 

carrapatodebit

New member
Joined
Jul 14, 2015
Messages
2
Reaction score
0
"Dude, I feel ya. One thing that tripped me up at first was assuming that Solidity is JavaScript with some extra keywords. Make sure you're comfortable with EVM basics before diving into Solidity, or you'll be in for a world of hurt"
 
Top