31.xhtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. h t t :: / / t /
  4. h t t :: // // t //
  5. h ttttt ttttt ppppp sssss // // y y sssss ttttt //
  6. hhhh t t p p s // // y y s t //
  7. h hh t t ppppp sssss // // yyyyy sssss t //
  8. h h t t p s :: / / y .. s t .. /
  9. h h t t p sssss :: / / yyyyy .. sssss t .. /
  10. <https://y.st./>
  11. Copyright © 2017 Alex Yst <mailto:copyright@y.st>
  12. This program is free software: you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation, either version 3 of the License, or
  15. (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program. If not, see <https://www.gnu.org./licenses/>.
  22. -->
  23. <!DOCTYPE html>
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <base href="https://y.st./en/weblog/2017/08-August/31.xhtml" />
  27. <title>include.d is nearly stabilised &lt;https://y.st./en/weblog/2017/08-August/31.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <link rel="stylesheet" type="text/css" href="/link/basic.css" />
  30. <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
  31. <script type="text/javascript" src="/script/javascript.js" />
  32. <meta name="viewport" content="width=device-width" />
  33. </head>
  34. <body>
  35. <nav>
  36. <p>
  37. <a href="/en/">Home</a> |
  38. <a href="/en/a/about.xhtml">About</a> |
  39. <a href="/en/a/contact.xhtml">Contact</a> |
  40. <a href="/a/canary.txt">Canary</a> |
  41. <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
  42. <a href="/en/opinion/">Opinions</a> |
  43. <a href="/en/coursework/">Coursework</a> |
  44. <a href="/en/law/">Law</a> |
  45. <a href="/en/a/links.xhtml">Links</a> |
  46. <a href="/en/weblog/2017/08-August/31.xhtml.asc">{this page}.asc</a>
  47. </p>
  48. <hr/>
  49. <p>
  50. Weblog index:
  51. <a href="/en/weblog/"><abbr title="American Standard Code for Information Interchange">ASCII</abbr> calendars</a> |
  52. <a href="/en/weblog/index_ol_ascending.xhtml">Ascending list</a> |
  53. <a href="/en/weblog/index_ol_descending.xhtml">Descending list</a>
  54. </p>
  55. <hr/>
  56. <p>
  57. Jump to entry:
  58. <a href="/en/weblog/2015/03-March/07.xhtml">&lt;&lt;First</a>
  59. <a rel="prev" href="/en/weblog/2017/08-August/30.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2017/09-September/01.xhtml">Next&gt;</a>
  61. <a href="/en/weblog/latest.xhtml">Latest&gt;&gt;</a>
  62. </p>
  63. <hr/>
  64. </nav>
  65. <header>
  66. <h1>include.d is nearly stabilised</h1>
  67. <p>Day 00908: Thursday, 2017 August 31</p>
  68. </header>
  69. <img src="/img/CC_BY-SA_4.0/y.st./weblog/2017/08/31.jpg" alt="A tree branch full of pink flowers" class="weblog-header-image" width="800" height="480" />
  70. <section id="general">
  71. <h2>General news</h2>
  72. <p>
  73. I was the only volunteer today, for some reason.
  74. That said, there was only enough work to keep me busy for a little over an hour, so it wasn&apos;t a problem that I was the only one there besides the boss/coordinator/whatever-they-are.
  75. </p>
  76. <p>
  77. My shift leader paid me back the remainder of the money I lent them today.
  78. They kept asking for extensions on the loan, and kept paying back parts of it, so little by little, I got the money back.
  79. I actually told them they could keep it as long as they needed, but they kept setting their own deadlines for when they&apos;d pay it back, which they kept being unable to meet.
  80. They were worked up about the debt, but I actually wasn&apos;t.
  81. I remained totally laid back about it the whole time.
  82. I think this exercise in trust on my part was a success.
  83. </p>
  84. <p>
  85. A customer gave me a Canadian quarter as a tip today.
  86. I&apos;m not sure what to do with it, but it was amusing.
  87. </p>
  88. <p>
  89. Yesterday, I found that the new registers were putting the name &quot;Alex Y&quot; on every receipt issued by my till.
  90. At the time, I kind of wished they&apos;d said &quot;A Yst&quot;, &quot;Yst&quot;, &quot;Alex Yst&quot;, or something else that used my full surname, as it&apos;s my surname that I more closely identify as.
  91. Today I realised how stupid that wish was.
  92. Sure, I identify by that name, but I don&apos;t like my workplace or our products.
  93. Do I want my name on them?
  94. No.
  95. I&apos;m perfectly contented to have the tills just call me &quot;Alex Y&quot; &quot;Alex&quot; is a generic enough name, and wye could stand for anything.
  96. </p>
  97. <p>
  98. I ran into another issue with the new system.
  99. If I accidentally tell the register the customer is paying in cash, there&apos;s no way to charge their card.
  100. There&apos;s no way to fix it.
  101. Instead, I have to go get entirely new pizzas with new barcodes, and ring in their order again.
  102. What a mess.
  103. This new system has its issues.
  104. </p>
  105. <p>
  106. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  107. </p>
  108. </section>
  109. <section id="include.d">
  110. <h2><a href="https://git.volatile.ch./y.st./include.d/releases">include.d</a></h2>
  111. <p>
  112. I&apos;ve been wanting a way to provide more-specific return types for methods in child classes than in parent classes.
  113. My abstract <abbr title="Uniform Resource Identifier">URI</abbr> class provides a base for <abbr title="Uniform Resource Identifier">URI</abbr>-like strings to be dealt with, while the concrete <abbr title="Uniform Resource Identifier">URI</abbr> class descends from it and provides a specific implementation for generic <abbr title="Uniform Resource Identifier">URI</abbr>s.
  114. Child classes of the concrete <abbr title="Uniform Resource Identifier">URI</abbr> class implement specific <abbr title="Uniform Resource Identifier">URI</abbr> schemes with syntax that conforms to the generic syntax, while invalid (usually legacy) <abbr title="Uniform Resource Identifier">URI</abbr> schemes can descend from the abstract class to avoid the generic regulations that they don&apos;t conform to.
  115. The abstract class uses itself as a return type for several methods.
  116. I was thinking it&apos;d be nice to have the concrete class narrow down the return types to only valid <abbr title="Uniform Resource Identifier">URI</abbr> classes.
  117. Now I realise that would be a bad idea.
  118. The &quot;known scheme&quot; class descends from the concrete class, and acts as a base for known schemes that do conform to the generic syntax.
  119. It&apos;s <code>set_scheme()</code> method changes the class of the object though; that&apos;s one of the main reasons for my <abbr title="Uniform Resource Identifier">URI</abbr> <abbr title="application programming interface">API</abbr> overhaul.
  120. However, it&apos;s possible to change the scheme from one that conforms to the general standard to one that doesn&apos;t in the current state of the library, while it wouldn&apos;t be possible any more if I were able to use more-specific return types and chose to do so.
  121. More-specific return types could be useful, but I shouldn&apos;t use them where I planned to the current behaviour is as it should be.
  122. At least in that particular regard.
  123. Once I can properly implement void functions and nullable return types, I should get those put in place still.
  124. </p>
  125. <p>
  126. I&apos;ve got the documentation and function/method signatures/implementations updated with the exception of one file.
  127. Once I finish with that file, I need to go back and skim, making sure I didn&apos;t leave any residual mention of outdated exception codes, then test the throwing of all exceptions.
  128. Lastly, I need to update the copyright in the code of all files to add the current year and change the author name to reflect my current legal name instead of my domain.
  129. Once these four things are done, I should be ready for the next release.
  130. Oh, yeah, I should also try to get phpDocumentor running and test my documentation comments.
  131. I tried to get that running today, but with no success.
  132. I ran out of time and had to head in to work.
  133. I might ask for help with that.
  134. </p>
  135. </section>
  136. <hr/>
  137. <p>
  138. Copyright © 2017 Alex Yst;
  139. You may modify and/or redistribute this document under the terms of the <a rel="license" href="/license/gpl-3.0-standalone.xhtml"><abbr title="GNU&apos;s Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
  140. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  141. My address is in the source comments near the top of this document.
  142. This license also applies to embedded content such as images.
  143. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  144. </p>
  145. <p>
  146. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  147. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F08-August%2F31.xhtml"><abbr title="Extensible Hypertext Markup Language">XHTML</abbr> 5.1</a> specification and uses style sheets that conform to the <a href="http://jigsaw.w3.org./css-validator/validator?uri=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F08-August%2F31.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  148. </p>
  149. </body>
  150. </html>