30.xhtml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/30.xhtml" />
  27. <title>A broken system &lt;https://y.st./en/weblog/2017/08-August/30.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/30.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/29.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2017/08-August/31.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>A broken system</h1>
  67. <p>Day 00907: Wednesday, 2017 August 30</p>
  68. </header>
  69. <img src="/img/CC_BY-SA_4.0/y.st./weblog/2017/08/30.jpg" alt="Seed pods and purple flowers" class="weblog-header-image" width="800" height="480" />
  70. <section id="general">
  71. <h2>General news</h2>
  72. <p>
  73. The day before yesterday, I waited too long to get my new bed set up.
  74. I think my bedroom is right above my downstairs neighbour&apos;s, and I didn&apos;t want to disturb them, so I waited until the next day.
  75. Yesterday, I set up the bed, but waited to put the sheets on it until after I washed them.
  76. Due to a surprise shift at work, I didn&apos;t get my laundry done until after midnight.
  77. Today, I&apos;ve found my sheets to be too big.
  78. I think this is a full-sized bed, while my sheets are queen-sized.
  79. I didn&apos;t think I&apos;d sleep well because this mattress is so firm, unlike my cushy queen-sized one.
  80. I think I slept well enough though.
  81. It&apos;s still going to take some getting used to, but I don&apos;t think I&apos;ll have any issues with the new bed.
  82. </p>
  83. <p>
  84. As I was getting ready for work today, I kind of wanted to be put on any station that didn&apos;t have a register.
  85. Some days, I prefer to work on a till, but other days, I just don&apos;t.
  86. As I headed to work though, I realised that with our new, computerised system in place, I <strong>*did*</strong> want to work on a register.
  87. The new system is a mess, and the people at the registers deal with the least-messy part of the system.
  88. The shift leader put me on the drive-through register, but then changed their mind.
  89. They didn&apos;t want someone with almost no experience with the new registers on the back till, so they moved me to the front till.
  90. I&apos;d thought that the registers weren&apos;t such a mess, but it turns out they are.
  91. I&apos;d still rather work with the registers than any other part of the new system though.
  92. It used to be that I dreaded being put on the dough-flattening station.
  93. It&apos;s the most boring station in the joint.
  94. Now though ... it&apos;s the only one that isn&apos;t computerised.
  95. Computerisation isn&apos;t necessarily a bad thing, but when your computer system is screwy, it makes everything difficult to work with.
  96. At the end of the night, the shift leader was having trouble with what looked like phantom pizzas in the system.
  97. They didn&apos;t seem to know what was going on, but my guess is that those phantom pizzas were the result of us having to work around the screwy system.
  98. We used the work-around method the shift leaders told us to, but the system wasn&apos;t designed for it, nor does it seem to have been designed to fit with the reality of the store.
  99. </p>
  100. <p>
  101. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  102. </p>
  103. </section>
  104. <section id="include.d">
  105. <h2><a href="https://git.volatile.ch./y.st./include.d/releases">include.d</a></h2>
  106. <p>
  107. The new type-hinting in <abbr title="PHP: Hypertext Preprocessor">PHP</abbr>7 should make keeping the documentation up-to-date easier.
  108. The main reason my documentation&apos;s out-of-date right now is because I changed the return values to provide better flexibility.
  109. With the return type (and parameter types) right there in the function/method signatures, I can easily compare the documentation to what the function/method is actually set up to accept and return and update accordingly.
  110. The return-type hinting is a bit more limited than I&apos;d like it to be though.
  111. A child class can&apos;t specify a return type that&apos;s a child of the parent&apos;s return type for a given method.
  112. The return type must instead exactly match.
  113. In direct children, this doesn&apos;t make a difference, but in grandchildren, it can allow the grandchild to return a supertype of its direct parent&apos;s return type, as long as the child&apos;s return type is the grandparent&apos;s return type or a subtype of that.
  114. Actually, come to think of it, the return type of the parent and the child could be mutually exclusive even.
  115. If the grandparent returns an object of type <code>a</code>, classes <code>b</code> and <code>c</code> could inherit from <code>a</code>.
  116. The parent class could return objects of type <code>b</code>, while the child class could return objects of type <code>c</code>.
  117. </p>
  118. <p>
  119. I forget why I was looking at the list of <abbr title="PHP: Hypertext Preprocessor">PHP</abbr> reserved words, but I noticed one that didn&apos;t seem to make sense: <code>enddeclare</code>.
  120. I checked the documentation for the <code>declare</code> syntax, but it doesn&apos;t even mention <code>enddeclare</code>.
  121. I experimented a bit, and skimmed the documentation repeatedly, until I finally figured it out.
  122. However ... the <code>enddeclare</code> syntax isn&apos;t compatible with <code>strict_types</code>, which is the only thing I use it for.
  123. The only other two things <code>declare</code> is currently good for are <code>ticks</code>, which I don&apos;t have a use for at the moment, and <code>encoding</code>, which can throw errors depending on your settings, with no way to check that particular setting from within the language.
  124. That makes <code>encoding</code> practically useless, as it can only be used in code that won&apos;t be distributed.
  125. I&apos;m not sure I&apos;d really have a need for the <code>enddeclare</code> syntax for any of these three settings anyway, though.
  126. Without that syntax (and without the curly brace syntax), declarations apply to the whole file, which is what I&apos;d typically want anyway.
  127. I can&apos;t think of a case in which I&apos;d want something else.
  128. </p>
  129. </section>
  130. <hr/>
  131. <p>
  132. Copyright © 2017 Alex Yst;
  133. 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>.
  134. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  135. My address is in the source comments near the top of this document.
  136. This license also applies to embedded content such as images.
  137. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  138. </p>
  139. <p>
  140. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  141. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2017%2F08-August%2F30.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%2F30.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  142. </p>
  143. </body>
  144. </html>