<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2012-01-10:1405497</id>
  <title>primeideal</title>
  <subtitle>primeideal</subtitle>
  <author>
    <name>primeideal</name>
  </author>
  <link rel="alternate" type="text/html" href="https://primeideal.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://primeideal.dreamwidth.org/data/atom"/>
  <updated>2021-08-09T01:57:06Z</updated>
  <dw:journal username="primeideal" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2012-01-10:1405497:90363</id>
    <link rel="alternate" type="text/html" href="https://primeideal.dreamwidth.org/90363.html"/>
    <link rel="self" type="text/xml" href="https://primeideal.dreamwidth.org/data/atom/?itemid=90363"/>
    <title>Stuff and nonsense</title>
    <published>2021-08-09T01:57:06Z</published>
    <updated>2021-08-09T01:57:06Z</updated>
    <category term="board games"/>
    <category term="writing: general"/>
    <category term="programming"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">-Love writing for submission calls with big length windows. Like...&amp;quot;I'm somewhere between 50% to 250% done with this piece!&amp;quot; :D&lt;br /&gt;-From exchange chat discord:&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-left: 40px;"&gt;&lt;em&gt;orange jacket guy shakes his head&lt;/em&gt; generic rock songs about love&lt;/div&gt;&lt;div style="margin-left: 40px;"&gt;&lt;em&gt;orange jacket guy nods ye&lt;/em&gt;&lt;em&gt;s&lt;/em&gt; angsty rock songs about relativistic time dilation&lt;/div&gt;&lt;div style="margin-left: 40px;"&gt;^ me&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;-(I am having feelings about &lt;em&gt;'39&lt;/em&gt; in a Crying Suns context. I am having lots of feelings in a Crying Suns context! But between silly exchanges, high-commitment exchanges, and aforementioned submissions calls, it will be a while before I circle back to my non-exchange Crying Suns stuff. There will be plenty of it, however! At some point!)&lt;/div&gt;&lt;br /&gt;-Also me:&lt;br /&gt;&lt;br /&gt;Orange jacket guy shakes his head at intermediate Python documentation hyping up &amp;quot;object-oriented programming&amp;quot; by how you can define custom things like &amp;quot;classes&amp;quot; and &amp;quot;subclasses,&amp;quot; so you can make Fido as a member of the class Dog which is a subclass of Animal. And you can assign variables to them like legs=4, and functions like woof() which prints &amp;quot;woof woof,&amp;quot; because they feel very indirect and strange--like why would you use &amp;quot;self&amp;quot; as a dummy variable when it isn't doing anything?&lt;br /&gt;&lt;br /&gt;Orange jacket guy also shakes his head at spreadsheet-based examples. Like if I wanted to make Joe as a member of the class Customer and have things like zip_code = 12345, bill=49.99, I would just use...a spreadsheet, or some other kind of array/matrix storage format, either in Python or something else.&lt;br /&gt;&lt;br /&gt;Orange jacket guy, however, nods appreciatively at the idea of using Python classes to simulate complicated card games like Keyforge. To be clear, I am very very far from implementing any actual cards, but I can now see why you would want to have &amp;quot;power,&amp;quot; &amp;quot;defense&amp;quot;, &amp;quot;damage,&amp;quot; &amp;quot;money captured&amp;quot; as variables assigned to Creatures, which is a subclass of Cards, and how you want to dynamically update them over time through functions like reap() (no input variable) and fight(creature in position X in opponent's battleline)!&lt;br /&gt;&lt;br /&gt;I'm a nerd of many facets, and sometimes, I really like it.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=primeideal&amp;ditemid=90363" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2012-01-10:1405497:64879</id>
    <link rel="alternate" type="text/html" href="https://primeideal.dreamwidth.org/64879.html"/>
    <link rel="self" type="text/xml" href="https://primeideal.dreamwidth.org/data/atom/?itemid=64879"/>
    <title>Variables</title>
    <published>2020-06-02T16:13:42Z</published>
    <updated>2020-06-02T16:13:42Z</updated>
    <category term="programming"/>
    <category term="autism"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">I'm taking a course to brush up on my Python skills. (Which aren't many, but so far what I've seen is fairly basic/review. I suspect by the end of the week we'll be learning things that are new to me?) You don't need to know a lot about programming to follow this: (normal is input, bold is output)&lt;br /&gt;&lt;br /&gt;x = 10&lt;br /&gt;(this tells the computer what x is. x is now 10)&lt;br /&gt;x + 2&lt;br /&gt;&lt;strong&gt;12&lt;/strong&gt;&lt;br /&gt;(the computer added 2 to x, which is 10, and got 12).&lt;br /&gt;x = 5&lt;br /&gt;(now I give the computer a new value for x. it forgets about the 10 and goes with 5 instead)&lt;br /&gt;x + 2&lt;br /&gt;&lt;strong&gt;7&lt;/strong&gt;&lt;br /&gt;(get it?)&lt;br /&gt;&lt;br /&gt;Anyway we're supposed to be learning/reviewing what is a &amp;quot;list&amp;quot; versus a &amp;quot;tuple&amp;quot; etc. right now. But this instructor likes to get sidetracked on how the &amp;quot;memory&amp;quot; works in Python, &amp;quot;stacks&amp;quot; versus &amp;quot;heaps&amp;quot; etc. Again, don't worry too much about what all this means.&lt;br /&gt;&lt;br /&gt;x = (1,2)&lt;br /&gt;(I told the computer I want x to be a &amp;quot;tuple,&amp;quot; like an ordered pair on a graph.)&lt;br /&gt;y = [0, (5,6), x]&lt;br /&gt;(I made a list called y, whose third element is the tuple called x.)&lt;br /&gt;x = 5&lt;br /&gt;(the same way we did above, we forget that x used to be a tuple, now it's the integer 5. tuples and integers are different &amp;quot;types,&amp;quot; but that's okay, x can be anything.)&lt;br /&gt;y[-1]&lt;br /&gt;(asking the computer to output the last element in the list y. course pauses, thinks about what this should be.)&lt;br /&gt;The answer is...&lt;br /&gt;&lt;strong&gt;(1,2)&lt;/strong&gt;&lt;br /&gt;because &lt;em&gt;at the time&lt;/em&gt; we defined y, the last element was x, and at &lt;em&gt;that &lt;/em&gt;time, x represented (1,2). Even though we've changed x since then, we haven't done anything to y. So as far as the computer knows, the last element of y is (1,2).&lt;br /&gt;&lt;br /&gt;Now, this kind of abstract thinking is necessary not just in Python, but I would assume pretty much any programming language, to be able to keep track of what your variables represent and why. And, because I'm an abstract-thinking person and have experience with Python, this is pretty straightforward for me.&lt;br /&gt;&lt;br /&gt;But this also seems to be a more 21st-century form of the &lt;a href="https://en.wikipedia.org/wiki/Sally%E2%80%93Anne_test"&gt;Sally-Anne test!&lt;/a&gt; (Which...doesn't seem to be that reliable a metric anyway, perhaps this is a case in point.)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=primeideal&amp;ditemid=64879" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
