"Fuzzing" In Python Can PREVENT Your Functions From FAILING

11,038
0
Published 2023-01-13
Have you heard of fuzzing? In this lesson we will be going over what it is, and how we can use it to make sure that our functions are robust and cannot be broken.

▶ Become job-ready with Python:
www.indently.io/

▶ Follow me on Instagram:
www.instagram.com/indentlyreels

All Comments (17)
  • Good shit! 😀
  • @kilatev
    Although it looks interesting approach, would it be better to use something like Hypothesis librarym that not only searches for inputs that may fail and provides that data, but also have some more tricks?
  • Good stuff and good example as it very simple and not opinioned so to show the concept. But would be nice if you show a real life scenario where to use i. For instance I dont think do this makes sense everywhere but only in some places /block of codes, but where it does yea , could save in apfront huge amunt of money to a company!
  • Hi I have a question, when you write: text:str="hello world" What does the ":" mean? Thanks in advance !
  • @VojtechMach
    Correct me if Im wrong, but this concept doesnt seem very useful in practice because of its (possibly infinite) runtime (unless stop condition) and resource consumption. Testing functions with random inputs doesnt seem very systematic, since the tests will pass once and fail next time. If the inputs were not random, then maybe one is better of using some library for that, e.g. hypothesis.
  • Isn't better to just use ''.join(random.choices(characters, k=length)) ?
  • @SkyyySi
    Why are you using an int as a boolean value?
  • @LambdaCreates
    Great video! Also, why are you STILL CHANGING THE PROFILE PICTURE? (by now most youtube channels would have stuck to a single icon)
  • @Mywifeleftme3
    My corpse will be preserved in the cold my corpse will be preserved in the cold my corpse will be preserved in the cold my corpse will be preserved in the cold
  • @larseneivind
    Well made! Great video. The historical reasons why this technique was invented is quite interesting as well. https://en.wikipedia.org/wiki/Fuzzing#History