Programming is really damn hard, and I'm bad at it! | The Farmer Was Replaced

Sdílet
Vložit
  • čas přidán 20. 08. 2024
  • Program and optimize a drone to automate a farm and watch it do the work for you. Collect resources to unlock better technology and become the most efficient farmer in the world. Improve your problem solving and coding skills.
    That's what the steam pages says.
    Find it here:
    store.steampow...
    -- Watch live every Saturday at:
    / keanomy
    -- Inactive on socials here:
    compiled.socia...

Komentáře • 6

  • @SETHthegodofchaos
    @SETHthegodofchaos Před měsícem +2

    If loops :D

    • @Keanomy
      @Keanomy  Před měsícem +1

      The power of engineering! 💪😅

  • @Kasperbjerby
    @Kasperbjerby Před 3 měsíci +3

    You dont need ( ) around everything in python 🤗

    • @Keanomy
      @Keanomy  Před 3 měsíci +3

      JS/C# bleeding through. It's hard enough to remember to not end each line in semicolon(;), at least the parenthesis won't out right not work. Haha

  • @SFoX-On-Air
    @SFoX-On-Air Před 3 měsíci +2

    Let's say you were born in 1990 and the current year is x.
    The electronic form on the website shouldn't write your birthdate in your profile because it's private. Instead, it should only display your age.
    You could show "time.year % user.birthdate.year" in your profile, which would result in 34 (in the year 2024). Just a simple example of the modulo operator.
    Additionally, with "if x % 2 == true," you can easily determine if x is an even or odd number.
    Let's say you're creating a program where you can set a grid. However, the grid can't be crooked or uneven. You have a point every 3 pixels. The user wants to set their grid to a width of 28 pixels. Is 28 a multiple of 3? Otherwise, the grid would be uneven. So you write "if user.value % 3 != 0: raise.error("Please enter a valid size!")

    • @Keanomy
      @Keanomy  Před 3 měsíci

      Those are both good use cases. I'm very much a hobby developer and have very limited experience with user input😅 most of my programs are just some simple tools for some repetitive tasks I do daily 👍
      Appreciate the examples, knowledge is never heavy to carry!