Arduino data types - (Arduino Uno Programming for Beginners)

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 2

  • @Volker-Dirr
    @Volker-Dirr 8 месяцев назад

    Nearly perfect video. In my opinion there are only very small optimizations possible:
    1. Even sizeof() looks like a function, it is not a function. In fact I guess most coders don't know that and as long as you don't write a compiler probably nobody needs to know that sizeof() is in fact an operator.
    2. Maybe a few sentences are missing about how to write a number like 1,000 in code (I talk about writing 1000 or 1,000 or 1 000 or 1'000 or ...).
    4. It was new to me that the the result of an overflow can be unpredictable. I just read on the Arduino webpage. They wrote that even every signed overflow is unpredictable (not only long long).
    5. I think you shouldn't talk about the floating point numbers in this video, since guys won't understand the disadvantages of floating point numbers now and they might prefer float now instead of using integers. Floating point numbers needs an extra video. (And maybe also an extra video about good and bad names for variables)

    • @playduino
      @playduino  8 месяцев назад

      thank you very much for the detailed feedback.
      1) wow did not know that, I'm happy to always lern from your comments :)
      2) yeah true this is tricky
      4) the thing is, there are different ways to store negativ numbers, thats why it is unpredictable, however I guess as long as you do not change the platform or compiler, it should be predictable.
      5) yeah good point, it was a little bit too much and might confuse