• ProgrammerSmart Profile Picture

    🐸Smart🐸Contract🐸Programmer🐸 @ProgrammerSmart

    3 weeks ago

    Idea for making solidity contracts more secure. 1. Sprinkle your code with asserts 2. Stripe it away with the compiler for production build Example (not tested) Failing asserts crash the program in unit and fuzz tests. When PROD = true, compiler + optimizer removes Dev.check

    ProgrammerSmart tweet picture

    7 5 95 5K 36
    Download Image
  • no_side666 Profile Picture

    no_side666 @no_side666

    3 weeks ago

    This is not good advice. It's generally considered insecure and bad practice to mix testing concerns within production contracts. One of the top causes of bugs are copying/pasting/adding/removing code. If you have code or macros that are toggled depending on environment, you can very likely have a bug in your infra where the testing concerns won't be properly excised or neutralized from your code.

    1 0 3 86 0
  • MidvelCorp Profile Picture

    Pavlo Midvel 🇺🇦 @MidvelCorp

    3 weeks ago

    @ProgrammerSmart Finally, regular practices from C++/Rust are making their way to web3. It is a bit of re-inventing a wheel, but it is a solid practice which is proven by time in web2, I vote for it.

    0 0 2 156 0
  • __alexlazar__ Profile Picture

    Alex Lazar @__alexlazar__

    2 weeks ago

    @ProgrammerSmart This is interesting, but also I can see it biting back. Example: in Rust in debug mode underflows/overflows panic, in prod mode they don't. I've had it before that someone didn't know this and wrote code that would underflow but they thought it'd panic and they were safe.

    0 0 1 28 0
  • viktoronweb3 Profile Picture

    Viktor on Web3 @viktoronweb3

    3 weeks ago

    @ProgrammerSmart thanks for innovating a new security standard

    0 0 1 167 0
  • UnityGameStart Profile Picture

    s @UnityGameStart

    3 weeks ago

    @ProgrammerSmart Assert should only be used to test for internal errors, and to check invariants.

    0 0 1 39 0
  • EChinagozim Profile Picture

    Nelson @EChinagozim

    3 weeks ago

    @ProgrammerSmart Programmer Smart 🤓

    0 0 1 115 0
  • idontmintrugs Profile Picture

    chobby @idontmintrugs

    5 days ago

    @ProgrammerSmart if we add asserts while writing the actual code, will there be any need to test it? or are you saying that by doing this we code and test at once? genuinely trying to understand your point of view here

    1 0 0 20 0
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer