Testing and Defensive Programming

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 56

  • @Lordknight13
    @Lordknight13 5 років тому +22

    I was worried about CS until I found this,I cannot express how grateful I am to have found this,we need more teachers like this so that we all can do well.Thank you.

  • @elliebreeze8323
    @elliebreeze8323 5 років тому +33

    2019 gang rise up

    • @ethancrawley562
      @ethancrawley562 5 років тому +1

      Gang gang

    • @amzy1496
      @amzy1496 5 років тому

      I’m fuckin failing so you might aswell follow my IG: amzzzking

  • @amzy1496
    @amzy1496 5 років тому +8

    7:58 he goes it’s difficult to explain.... LIKE WTAF IVE GOT MY EXAMS TOMORROW

    • @IbrahimContehsl
      @IbrahimContehsl 7 місяців тому +1

      That’s your problem, you have 2 years prior

  • @desiccantmusic
    @desiccantmusic 4 роки тому +2

    Got mocks next month! I've covered this just making sure I've covered it well.

  • @TDKING-ko3pj
    @TDKING-ko3pj 5 років тому +9

    i beg everyone get low so we all pass

    • @Devesteter252101
      @Devesteter252101 5 років тому

      thats not how logic works

    • @leecorp6076
      @leecorp6076 7 місяців тому +1

      @@Devesteter252101Heh, logic when the program does something unintended but it works perfectly finr

    • @Spudnik007
      @Spudnik007 Місяць тому +1

      @@Devesteter252101 he means if everyone get a bad grade then the grade boundaries will lower making it easier to get a better score

    • @Devesteter252101
      @Devesteter252101 Місяць тому

      @@Spudnik007 well, GCSEs are roughly zero-sum - the same proportion of people will be passing/failing irrespective of what the averages are: if everyone does worse, then it just means the thresholds for grades will go down, but the overall distribution of grades would stay exactly the same so it achieves nothing at best
      if its not exactly zero-sum, then everyone doing worse (say, they think the test was fair and the year is just bad) then it'd result in more people doing worse - so there is no way that everyone doing badly can be a good thing for everyone

    • @Spudnik007
      @Spudnik007 Місяць тому +1

      @@Devesteter252101 You're right, but if everyone else did worse then he would get a better grade if he did average for most years (e.g a 5 in say 2023 could be a 7 in another year)

  • @Fyqo
    @Fyqo 5 років тому +2

    shouldn't it be 0 to 4? 9:02

    • @BobMarley-sr8wh
      @BobMarley-sr8wh 5 років тому

      Sometimes in the question it will say whether the index starts at 1 which is probably used in this examole, or 0 if it doesn't say, assume it's 0

    • @Fyqo
      @Fyqo 5 років тому +1

      @@BobMarley-sr8wh ok

    • @supersmashzolt
      @supersmashzolt 5 років тому

      Same question here since from what i know in python you subtract 1 to the max number of elements since it starts with 0

  • @josephbrien8092
    @josephbrien8092 6 років тому +2

    not long now good luck!

  • @augustustranter4260
    @augustustranter4260 6 років тому +2

    At 3:59, when discussing runtime errors, you mention that it's because your RAM is full, but won't that memory just go to virtual memory? Love the videos - saving my grade!

    • @MrBrownCS
      @MrBrownCS  6 років тому +5

      True! Though you can't always rely on your OS employing virtual memory (e.g. with very simple devices perhaps) or having enough hard drive space anyway - basically there are lots of very specific technical things which could cause a runtime error :)

  • @ShahnawazKhan-re6sj
    @ShahnawazKhan-re6sj 7 років тому

    Hey! I have my mocks in january, I was wondering if these are all the videos for paper 1

    • @pc24367
      @pc24367 6 років тому +1

      get ready for the next few weeks looooool good luck. im not looking forward to it at all. oh well. at least we know we have these vids to watch for computing haha

    • @y__1330
      @y__1330 6 років тому

      Cynical Gaming Damn, you were commenting on the primrose channel wtf

    • @adamwallis5903
      @adamwallis5903 6 років тому +1

      lol I got my theory test tomorrow

    • @pc24367
      @pc24367 6 років тому

      Adam Wallis yeah same

  • @seth6101
    @seth6101 4 роки тому +3

    Whos here for he 2021 exams ?

  • @shocochells
    @shocochells 7 місяців тому

    I watched this right before my exam and still forgot what defensive programming was😃

    • @s.y.4968
      @s.y.4968 6 місяців тому

      Did you sit your paper 1 already? Was defensive programming the 6 marker

    • @shocochells
      @shocochells 6 місяців тому

      @@s.y.4968 nah it was only 2 marks but yeah ive done both papers

    • @s.y.4968
      @s.y.4968 6 місяців тому

      @@shocochells Edexcel iGCSE or GCSE

    • @hafsahishy
      @hafsahishy 6 місяців тому

      ​​@@s.y.4968ocr cs gcse lmao

  • @yellowlidgaming8218
    @yellowlidgaming8218 6 років тому +6

    Exam in 3 hours!! Ahhhh!!

  • @maxilander843
    @maxilander843 5 років тому

    2:44 example isn't an error as an array starts at 0, so 6 index's are generated

    • @planetlumi4138
      @planetlumi4138 2 роки тому +1

      Yes but it says 5th Element, meaning he should have used index 4 as the intention of the variable is different

  • @AsnBoss123456
    @AsnBoss123456 6 років тому +1

    mate you are a fucking legend

  • @justin-gk2kx
    @justin-gk2kx 6 років тому

    can someone link me some trace table questions plz

  • @TheGGbond
    @TheGGbond 3 роки тому

    Wonderful!!

  • @jad9727
    @jad9727 5 років тому +2

    9am Exam gang?

  • @shadowglitch6418
    @shadowglitch6418 6 років тому +1

    Got my exam in 1 hour 30 mins 😐

    • @jad9727
      @jad9727 5 років тому

      Same time this year loool

  • @zer0guardian825
    @zer0guardian825 5 років тому +1

    Revis

  • @FuzzyDPozzy
    @FuzzyDPozzy 3 роки тому

    When it comes to readability , in real life code not in school , you shouldn't use comments for a variety of reasons :
    - If a function needs a comment , then it means it needs a more descriptive name.
    -if a function does many things , you need to break your code into smaller pieces.
    In some cases comments can also be deceiving , lets say you are writing a comment about the date, and then where is day you added an other variable called Life or a boolean, then your comment becomes wasted.
    Your code structure must be easy to read , give your code to someone who has no programming experience whatsoever if he's able to understand then you are good to go.
    Goodluck.

  • @Gwen-og1kq
    @Gwen-og1kq 7 місяців тому +1

    2024

  • @jnzo1655
    @jnzo1655 5 років тому +1

    u speak to fast and miss out sylabils sometimes and it has hard to hear

  • @nyityt5167
    @nyityt5167 Рік тому

    im gonna fail