Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2024-01-05_bus-01.md 1.3KB

před 11 měsíci
před 9 měsíci
před 11 měsíci
12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Title: Bus-01
  2. Date: 2024-01-04 00:00
  3. Category: News
  4. Slug: bus-01
  5. Lang: en
  6. # On the way to portable code
  7. To gain code portability, we have to divide whole code into two parts:
  8. * repeatable: logic
  9. * unique: environment
  10. To simplify portable code construction, we want to be able to place any code -
  11. both repeatable and unique - without hierarchy requirements of operating
  12. systems. Bus design pattern seems to be the best option. The Bus makes all
  13. code chunks equal because they interact through the Bus only.
  14. # Bus-01
  15. Currently we have:
  16. <iframe width="560" height="315" src="https://www.youtube.com/embed/XAlIlG9tVL4?si=5HYRDkNuYE0zeoyo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
  17. Module structure:
  18. ![Module's YML][yml]
  19. <yml>
  20. Part of the visual representation:
  21. ![Visual representation][v]
  22. Main functionality:
  23. 1. Format input to leave only digits
  24. 1. Activate the button when at least 3 digits are present
  25. 1. Simulate loading when pressing the button
  26. This was an example of a single instance of an entity.
  27. Next we're going to deal with multiple instances of an entity.
  28. [yml]: ../../images/2024_bus-01_yml.jpg
  29. [v]: ../../images/2024_bus-01_v.jpg