28.xhtml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => '<code>from __future__ import braces</code>',
  21. 'body' => <<<END
  22. <p>
  23. I prefer $a[PHP] as my learning tool.
  24. Despite it having major issues, it is very easy to add debug lines in $a[PHP].
  25. Python has some strangeness that does not belong in a language, such as <code>import antigravity</code>.
  26. As a language, Python is not a regular tool like Aptitude is.
  27. While a small easter egg fits in quite well in Aptitude, anything that cannot be used in a program does not belong in a language.
  28. Overall though, it is a very nice language, or at least that is what I thought until today.
  29. Today though, <a href="https://opalrwf4mzmlfmag.onion/">wowaname</a> showed me something that changed my mind about Python.
  30. </p>
  31. <p>
  32. She showed me the <code>from __future__ import braces</code> statement.
  33. I was ecstatic! Upon first glance, it looks like this line would allow me to use a curly brace syntax instead of forced indention.
  34. While the forced indention may make final code look better, but is quite inconvenient when you want to insert a <code>print</code> line into the code for debugging, just to remove it moments later.
  35. With this new tool in hand, my path was clear.
  36. I would write my code with curly braces, using the easier syntax during development.
  37. Later, when my code had most of the bugs worked out, I would remove the curly braces and <code>import</code> line, causing Python to once again enforce clean-looking code in my functioning product.
  38. I was going to translate the beginnings of my spider into Python and use Python as my main language for future projects, with an exception for projects that generate Web pages, as I still feel that $a[PHP] has better Web server integration.
  39. However, when I tried using the statement <code>from __future__ import braces</code>, I was greeted with a condescending message: <q>not a chance</q>.
  40. Python is mocking people that want to use a braced syntax! If they wrote something about braced syntax being inferior in the manual or something in an effort to convince people that their way is better, that would be one thing.
  41. However, they actually wrote this feature into the language itself just to mock people that disagree with them!
  42. </p>
  43. <p>
  44. In the span of a few minutes, I have gone from thinking that Python is a very nice language to having quite a disdain for it.
  45. I now will refuse to write anything in Python.
  46. It seems that I no longer have any of my Python scripts stored on my remote Git accounts.
  47. I may have taken them off of <a href="https://github.com/Y-st">GitHub</a> when I found <a href="https://notabug.org/y.st./">NotABug.org</a>, then never uploaded them to my NotABug.org account.
  48. In any case though, they will not be reuploaded until I translate them into a less condescending language, such as $a[PHP].
  49. </p>
  50. <p>
  51. To be clear though, while I refuse to write in Python any more, I am not outright boycotting all Python code or attempting to get other people to switch languages.
  52. If there is some functional code that someone wrote in Python, I will be more than happy to run it using my still-installed Python interpreter.
  53. Python is still a free software, cross-platform language.
  54. Every language has its issues, and it makes no sense to boycott software based on what language it is written in, assuming that software written in that language run in a free software environment and the language is efficient enough to avoid causing resource concerns.
  55. I simply would rather write code in a language that is more to my liking.
  56. </p>
  57. <p>
  58. Someone pretended to be me and registered a Netflix account using my email address.
  59. I have added this &quot;adan play&quot; and Netflix to my <a href="/en/a/hall_of_shame.xhtml">hall of shame</a>.
  60. As usual, I performed a password reset to lock the impostor out of the account.
  61. After resetting the password, I was able to see what service plan had been registered for.
  62. Unfortunately for adan, he registered for a \$159 $a[USD] per month service, and now has no way to cancel the service.
  63. He may need to get ahold of Netflix somehow, in which case he will need to explain that he provided someone else&apos;s contact information instead of his own.
  64. If that does not work, he may need to cancel his credit card.
  65. I think that the lesson here is clear: when registering an account, use your own contact information, not the contact information of someone else.
  66. If you use someone else&apos;s email address to register an account, they can lock you out of your account.
  67. Using invalid contact information, such as the email address <code>example@invalid.invalid</code> is one thing, but when you use a valid email domain, you are asking for trouble.
  68. </p>
  69. <p>
  70. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  71. </p>
  72. END
  73. );