Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

90 рядки
5.6KB

  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <link rel="stylesheet" href="../../style.css">
  6. </head>
  7. <body>
  8. <script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
  9. <div id="header">
  10. <div>
  11. <strong id="title">Open Game Studio</strong>
  12. <div id="lang">
  13. <a href="../../en/news/example-driven-development.html">EN</a>
  14. <a href="../../ru/news/example-driven-development.html">RU</a>
  15. </div>
  16. </div>
  17. <div class="header2">
  18. <div class="menu">
  19. <a href="../../en/news/index.html">News</a>
  20. <a href="../../en/game/index.html">Games</a>
  21. <a href="../../en/tool/index.html">Tools</a>
  22. <a href="../../en/page/about.html">About</a>
  23. </div>
  24. <a class="discord" href="https://discord.gg/3A6THQabNf">
  25. <img src="../../images/discord.png"></img>
  26. </a>
  27. <div class="clear"></div>
  28. </div>
  29. </div>
  30. <h3 class="left_item_title">In the news...</h3>
  31. <center>
  32. <div class="news_item">
  33. <h2 class="news_item_title">
  34. <a href="example-driven-development.html">Example-driven development</a>
  35. </h2>
  36. <p class="news_item_date">
  37. 2018-06-27 00:00
  38. </p>
  39. <div class="news_item_contents">
  40. <p><img src="../../images/2018-06-27-example-driven-development.png" alt="Debug broker" /></p>
  41. <p>This article explains how the third OpenSceneGraph cross-platform example opened our eyes to example-driven development.</p>
  42. <p><strong>2018-08 EDIT</strong>: the third example has been renamed to the fourth one due to the reasons described in the <a href="examples-and-dependencies.html">next article</a>.</p>
  43. <p><strong>The third OpenSceneGraph cross-platform example</strong></p>
  44. <p>The third OpenSceneGraph cross-platform example explains how to implement <a href="https://github.com/OGStudio/openscenegraph-cross-platform-examples/tree/master/04.RemoteDebugging">remote debugging across platforms</a>. This example is less about OpenSceneGraph and more about different platforms.</p>
  45. <p>Remote anything nowadays assumes the use of HTTP(s) over TCP/IP. Thus, the first idea was to embed HTTP server into an application and let HTTP clients interact with the server.</p>
  46. <p>However, serving HTTP across all platforms is complicated:</p>
  47. <ul>
  48. <li>desktops have firewalls</li>
  49. <li>mobiles have restrictions on background processes</li>
  50. <li>web browsers are HTTP clients by design</li>
  51. </ul>
  52. <p>That's why we decided to create a mediator between debugged application and UI. <a href="https://github.com/OGStudio/debug-broker">Debug broker</a>, a small Node.js application, became that mediator. Debug broker uses no external dependencies, so it's easy to run virtually anywhere. Also, since debug broker is a server application, you can configure it once and use it for any number of applications.</p>
  53. <p>Both <a href="https://github.com/OGStudio/debug-ui">debug UI</a> and <a href="https://github.com/OGStudio/debug-broker">debug broker</a> use JavaScript because we wanted these tools to be accessible from anywhere with no prior installation. This decision limited us to web browser solution. Providing any sort of desktop application would incur additional installation and maintenance effort, which would only complicate the tools.</p>
  54. <p><strong>Example-driven development establishment</strong></p>
  55. <p>Once the third example was implemented, we realized how important and beneficial it is to develop new features outside the main project:</p>
  56. <ul>
  57. <li>the main project is freed from excessive commit noise</li>
  58. <li>a new feature is publicly shared for everyone to learn, criticize, and improve</li>
  59. </ul>
  60. <p>When we publicly share our knowledge:</p>
  61. <ul>
  62. <li>we must create documentation for everyone (including ourselves later) to understand what's going on</li>
  63. <li>we must not use hacks because that would break your trust in us</li>
  64. </ul>
  65. <p>From now on, all new features like input handling, Mahjong layout loading, resource caching, etc. are going to be first implemented as examples. We call this example-driven development.</p>
  66. <p>That's it for explaining how the third OpenSceneGraph cross-platform example opened our eyes to example-driven development.</p>
  67. </div>
  68. </div>
  69. <div id="disqus_thread"></div>
  70. <script>
  71. var disqus_config = function () {
  72. this.page.url = "https://opengamestudio.org/en/news/example-driven-development.html";
  73. this.page.identifier = "example-driven-development.html";
  74. };
  75. (function() { // DON'T EDIT BELOW THIS LINE
  76. var d = document, s = d.createElement('script');
  77. s.src = 'https://opengamestudio.disqus.com/embed.js';
  78. s.setAttribute('data-timestamp', +new Date());
  79. (d.head || d.body).appendChild(s);
  80. })();
  81. </script>
  82. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  83. <div id="footer">
  84. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  85. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  86. </div>
  87. </center>
  88. </body>
  89. </html>