# Posts from 2020, by Rees D. — plain Markdown copy

This is a plain-Markdown copy of every post Rees published in 2020 on https://reeswrites.com. Posts are the finished, "evergreen" end of the same garden as his thoughts (https://reeswrites.com/thought/index.md). Small fixes are made in place; when he changes his mind he writes a new entry and marks the old one "Superseded by". Index of every year: https://reeswrites.com/posts/index.md.

Voice layers (who wrote what):
- Unmarked text is Rees, verbatim.
- `> [!rees-edited]` blocks are Rees's words, edited by Claude.
- `> [!claude] <model> · <date> · <chat link>` blocks were written by Claude, not Rees. `> [!ai]` is an older spelling of the same thing.
- `> [!quote] <source>` blocks are quoted from the named source.
Never attribute Claude-written or quoted text to Rees.

To reach Rees: email talk@reeswrites.com. Include which pages you read and what you want to ask. See also https://reeswrites.com/llms.txt.

---

## Holes (Pretty Good Movie/Pretty Tough Ontological Question)

- URL: https://reeswrites.com/posts/holes/
- Maturity: evergreen
- Published: 2020-11-30
- Kind: essay; tags: Philosophy, 2020
- Voice layers: rees
- Summary: In this essay I argue that holes cannot exist.


Holes are objects of great philosophical interest because although people talk of them as if they are material objects, it is not entirely clear _prima facie_ what they are. For most people would say that a hole is an absence of material, which stands in opposition to how we normally define objects, which is by their material. The exigence for understanding the nature of holes is because if they are not material objects, what are they? We need to know what the nature of holes is because it would give us insight into how holes are created, destroyed, and maintain an identity over time. In this paper, I will first contrast two different types of holes and explore the concept of hole-lining as a potential definition of holes. Finally I will consider how hole-fillings affect the identity of holes, before ultimately arguing that holes cannot exist in reality, and instead discussions about holes are really about “quasi-holes”.

Consider the following two different examples of holes. Imagine someone has dug into the ground with a shovel, in other words a pit, where dirt was actually removed from the surrounding ground. Another slightly different example but with a similar principle is a straw, where the hole was formed around something, but no material was removed to make the hole. There seems to be something different about the two holes that were mentioned. On one hand, the pit that someone dug does not perforate completely through a surface, whereas the straw is a complete through-hole. This is interesting because it begs the question of whether a through-hole is one or two holes. To cover our pit we could place a tarp on it, and this is the only opening to the hole. However, in the case of the straw we could place a finger on either of the ends, and it would seem that a hole is still preserved. Is an opening a hole or is it something different? In order to define a hole, we need to get into the idea of hole-linings and how, if, they define holes. 

The hole-lining is the material that surrounds the hole, so in the case of our pit, dirt, and for our straw, plastic (or paper depending on local legislation). The question then becomes if the hole-lining necessarily defines the hole, for each hole has a hole-lining, and each hole lining has a hole. This leads to interesting questions, such as if a straw were to be spun on a drill or something like that, would the hole be spinning, or just the hole-lining? I would say that it would be the hole-lining spinning, and not the actual hole. This makes it seem then that hole-linings and holes are separate entities. Additionally, if we were to dig into the language of describing hole-linings as holes, problems immediately arise. For as previously stated, a hole-lining is the material that surrounds a hole, but if the hole-lining is the hole, how can something surround itself? Additionally, this would lead to the phrase, “The straw’s hole is made of plastic” to be a potentially meaningful and true statement, which does not seem like something that we want as a consequence of our definition of a hole. Instead, that phrase should be interpreted only as saying, “The straw’s hole-lining is plastic,” nothing more and nothing less. A hole has volume, the amount of space that it does not take up, whereas the hole-lining does not have that kind of property. In this way, a hole-lining is not a hole, but it is an important criterion in order for something to be considered a hole.
	
So far we know that a hole must have a hole-lining, which is to say a material that surrounds it, and it must also have a volume of space that it does not take up. Naturally this means that we need to explore and define what constitutes a filled hole. In the previous examples, both the pit and the straw were filled with air, which still allows objects to freely move through the hole. Let us imagine a situation in which we fill the pit with the same dirt that was initially dug out of it. It would make sense to call that hole filled, and thus destroyed, since the ground/dirt has essentially returned back to its pre-hole state. But what if we did not have the original dirt, and instead used concrete to fill the hole, would we have destroyed the hole, or just filled it? I would say that it does destroy the hole because the hole no longer has the volume that it used to have. In a similar vein, let us imagine that we fill the pit with water, in other words, we have created a pool. The hole-lining is dirt, and the hole-filling is water. Initially the pit just had air in it when we were calling it a hole, but now it is filled with water. So far we have not questioned the legitimacy of a hole filled with air, but perhaps we should not count this as hole. Or would only a solid (as opposed to a liquid or gas) filling destroy the hole? Water is a liquid, whereas air is a gas which is more sparsely distributed, so if we can still pass through the hole, perhaps that is all the criteria that we need.

In order to tie up both previously discussed hypothetical examples, I argue that holes do not exist in any kind of real sense in the real world. This is because all holes are filled in one way or another, either by air or by some other material that may or may not differ from their hole-lining material. As previously discussed, when a hole is filled, the identity of that hole is destroyed, but more specifically in our examples, a hole never really existed because it was never completely empty. However, it is important to note the distinction that was made with the phrase “in the wild,” for it seems certainly possible that someone would be able to create a hole in a manufactured setting, i.e. a vacuum. This would be something like a flask container where there is an enclosed space where there is nothing, not even air. Unfortunately, it is impossible to create a true vacuum in a laboratory setting, for even if all matter particles were able to be removed, there would still be photons and gravitons, among other entities. 

In conclusion, true holes cannot exist in reality because there cannot be a true vacuum created in a controlled environment where there is a hole-lining with no hole-filling. Instead, I take discussions of holes in everyday life to be about “quasi-holes” which are things where the hole-lining differs from the hole-filling, also given that the hole-filling is non-solid. Some examples of quasi-holes would be the pit, straw, pool, rooms, doors, and many other things. This is not entirely in line with what the layperson means when they speak about holes, but this is a definition that is more clearly defined in sorting out what is and is not a quasi-hole.
---

## Evaluating Anti-Platonist Approaches to Mathematics

- URL: https://reeswrites.com/posts/anti-platonist-math/
- Maturity: evergreen
- Published: 2020-11-21
- Kind: essay; tags: Philosophy, 2020
- Voice layers: rees
- Summary: In this paper, I will first explain Platonism and its relation to mathematics and reconstruct arguments against it to show how mathematical objects ultimately cannot exist. I will then explore logicism and formalism in order to critically evaluate how they create truth for mathematical propositions and the problems that they have that could or should prevent mainstream philosophical adoption. Finally, I will explain Benacerraf’s structuralism and why I think it is the best Anti-Platonist explanation for the philosophical foundation of mathematics.


In this paper, I will first explain Platonism and its relation to mathematics and reconstruct arguments against it to show how mathematical objects ultimately cannot exist. I will then explore logicism and formalism in order to critically evaluate how they create truth for mathematical propositions and the problems that they have that could or should prevent mainstream philosophical adoption. Finally, I will explain Benacerraf's structuralism and why I think it is the best Anti-Platonist explanation for the philosophical foundation of mathematics.

Platonism in mathematics is simply the idea that the mathematical entities that we refer to actually exist, and in virtue of them existing, they have actual properties that we can describe, and that is where mathematical propositions derive their truth value. This comes about from Plato's ontology where he posited that there were two realms: the Changing and the Unchanging. The changing and impermanent world of material is the one that people live in, while the eternal, unchanging world of the Forms is not accessible to us directly. Plato thought that people learn or gain knowledge through the recollections of the Forms from a time when our souls were united with them. In this way, we can come to know truths about Forms by inquiring about the object without having to assume anything.

While the idea of mathematical objects existing in a separate realm certainly sounds nice and is very useful in particular for fixing a referent for mathematical entities, there are a number of issues with Plato's Theory of Forms. It is none other than Aristotle who I believe offers the best criticism of the Forms. "Further, of the ways in which we prove that the Forms exist, none is convincing; for from some no inference necessarily follows, and from some it follows that there are Forms of things of which we think there are no Forms. [...] Further, of the more accurate arguments, some lead to Ideas of relations, of which we say there is no independent class, and others involve the difficulty of the 'third man'." (Aristotle 78). The third man argument has to do with the interconnection of Forms and how there would be an infinite number of Forms because a man is a man because he partakes in the Form of Man. However, then a third form would be necessary to explain how man and the form of man are both man, and so on, to an infinite regress.

While Aristotle provides good arguments against the theory of forms, there are different approaches to mathematical Platonism that distance themselves from the Theory of Forms, but still hold that mathematical objects are real. I think Benacerraf in his paper, _What Numbers Could Not Be_, logically shows how numbers, the foundation of mathematics, could not be objects at all. "Ernie pointed to his theorem that for any two numbers, x and y, x is less than y if and only if x belongs to y and x is a proper subset of y. Since by common admission 3 is less than 17 it followed that 3 belonged to 17. Johnny, on the other hand, countered that Ernie's "theorem" was mistaken, for given two numbers, x and y, x belongs to y if and only if y is the successor of x." (Benacerraf 54). This debate results in the following set to be constructed by Ernie to represent 3: {Ø, [Ø], [Ø, [Ø]}, where Johnny's 3 is represented by [[[Ø]]]. These theorems posited by Ernie and Johnny are incompatible because they both represent the same number, but with different sets.

Frege had a slightly different account of what set a number was, which had to do with an equivalence class, which is the class of all classes equivalent with a given class. Under this view, the number 3 would be the set of all sets with three members. This view initially has merit to it because the idea follows from the idea that number words are class predicates. Under any consistent set theory, i.e one that does not fall prey to Russell's paradox, it does not seem like we can have a set of sets. Therefore, number words need not be class predicates, so then it is not necessarily true that 3 is the set of all triplets. After this, Benacerraf explores three different problems to support his claim that numbers could not be sets: identity, explication, and reduction. I think the most persuasive of the three problems that Benacerraf explores is about identity. The problem of identity results from trying to assert _n_ = _s_, where _n_ is a natural number and _s_ is a set representation of _n_. He says that when making statements of identity, they should be of the same category _C_ or otherwise the statement is unsemantical, because to compare the identity of two random entities makes no sense. In considering this, it would be unsemantical to compare anything with a number except another a number, unless we knew that they shared some category _C_,and there are conditions which can individuate objects of the same _C_. After analyzing the problems of identity, reduction, and explication, Benacerraf ultimately concludes that we cannot identify numbers with any objects at all, and lands on his view, which we can call structuralism, which will be explored later in this paper.

Logicism as a school of thought in the philosophy of mathematics starts with Frege, where he is primarily responding to a long tradition of thought stemming from philosophers like Kant where mathematics and mathematical truths were not analytic truths, nor were they truths about the actual world. Under Kant's picture our geometric and algebraic concepts are things that get organized by our minds and structure our experience, and are not things that are fundamental to the structure of the world. "A typical crudity confronts me, when I find calculation described as "aggregative mechanical thought." [...] The present work will make it clear that even an inference like that from n to n + 1, which on the face of it is peculiar to mathematics, is based on the general laws of logic, and that there is no need of special laws for aggregative thought." (Frege 316). Frege thinks that mathematics based on thought or sensation are characteristically indefinite, which stands opposite to the definiteness of mathematical thought. To Frege, math was one particular way, a definite way that was independent of human thought, which could be found via logical reasoning.

Mathematical truth for the Logicist comes from the idea that mathematics is ultimately reducible to logic, which is known a priori. "The present work will make it clear that even an inference like that from n to n + 1, which on the face of it is peculiar to mathematics, is based on the general laws of logic, and that there is no need of special laws for aggregative thought." (Frege 316). Frege believed that there were two kinds of truth, one of which could be purely logically supported, which was the firmer proof of the two. Since math is based on logic, then it too could be known _a prior_i. However, the formalist, Hilbert in particular, did not believe that logic should or could be the sole foundation of mathematics. However, Hilbert thinks that the idea that all things are reducible to logic, otherwise known as the axiom of reducibility, is an assumption in order to demonstrate consistency. Which then shifts the question to if we can really assume reducibility. In order to have and demonstrate the consistency of axiomatic systems, we can't reduce the proof of consistency to logic, but instead something else. I think that this is a very important consideration because if mathematics is to be based solely on logic, it must be quite certain that the underlying axioms are correct.

Formalism, as touched on a little bit previously, is primarily pushed forward by Hilbert, who believes that instead of the foundation of mathematics being logic, it was the symbols and the rules used to manipulate said symbols. "As a further precondition for using logical deduction and carrying out logical operations, something must be given in conception, viz., certain extralogical concrete objects which are intuited as directly experienced prior to all thinking. For logical deduction to be certain, we must be able to see every aspect of these objects, and their properties, differences, sequences, and contiguities must be given, together with the objects themselves, as something which cannot be reduced to something else and which requires no reduction." (Hilbert 370). These intuitive concrete objects that don't need logic are the symbols, sometimes referred to as signs. They can be thought of in terms of physical objects, if necessary, but they are not nor need not be actual physical objects. Additionally, these symbols don't have any kind of meaning in themselves, but they can be operated on by a series of rules and be compared to each other. In this way, Hilbert believes that he can solve the problem of consistency where he thinks the Logicists could not.

The only logical condition for the Formalist that is of importance, of utmost importance in fact, is the consistency of the logical formal system. In an inconsistent system every logical syllogism that is syntactically valid can be proven, which ultimately makes the system useless. This, in turn, is why it is so important that our foundations are consistent, so that they don't produce any contradictions. Unfortunately, Gödel showed with his Incompleteness Theorems that no formal system could prove consistency within the framework of its own system, which was a big hit to the Formalist project. This does not mean that Formalism is completely over with, the idea that mathematics is symbols and rules is still completely valid, it just isn't provable. However I think that Formalism, particularly Game Formalism or Deductivism lean too heavily into the fact that mathematics is just a "game" and the rules of such a game are not necessarily true, but just serve a means to an end. This runs against normal intuitions about mathematics being defined: _a priori_ and analytic, as the Logicists like Frege were trying to work out.

With Logicism and Formalism ultimately failing to provide a strong foundation for mathematics, we turn to Benacerraf. Benacerraf's structuralism can be thought of as taking the natural numbers to be defined by a recursive progression with a less-than relation, for "To be the number 3 is no more and no less than to be preceded by 2, 1, and possibly 0, and to be followed by 4, 5, and so forth." (Benacerraf 70). Any investigation into the properties of numbers are actually just the characterization of an abstract structure separate from the numbers themselves. Numbers, or the individual elements of the structure have no properties other than the relationship to other elements within the same structure. This then makes Number Theory about the properties of all structures that follow the order type of the numbers, according to Benacerraf. This is a good thing because it both shows how we can learn about numbers and other mathematical truths, but also shows how mathematics is analytic because the properties of this structure are unchanging and necessary. This maintains a strong Anti-Platonist stance while being able to explain the properties of numbers via abstract structures. A plus side of this view is that it does not require such strong logical foundations such as what the Logicists and Formalists were working with. Additionally, it doesn't require any rewriting of old mathematical theory, like Intuitionism or Nominalism would have.

Logicism seems promising initially, since mathematics and logic seem so connected that it would make sense that mathematical truth is but a subset of logical truth. However, it becomes quickly clear that it presupposes reducibility of mathematics to logic, which seems like something that they would have to demonstrate first. Additionally, their project would be stumped by Gödel's Incompleteness Theorems, just as the Formalists did. The Formalists seemed promising as well, since it did not have a purely logical background. Rather one that allowed for (almost) abstraction of mathematics from experience, which provides good insight into how people come to learn mathematical truth. However, just like the Logicists, they still do lean on logic, and it was shown by Gödel that consistency of a formal system could not be proved from within that system. Additionally, the ideas of some strains of Formalism view mathematics as ends-based rules to solve the game of mathematics, which feels contrary to most intuitions about mathematics being analytic. Which finally leads to Benacerraf's structuralism which is a theory that doesn't lean too much onto logic, and instead characterizes the foundations of mathematics as working with the properties of an abstract structure. It explains enough without having to rewrite any previous mathematical work, and allows for sets and other abstractions to be used as normal, just with the understanding that they are just representations and not actually objects.
---

## Interactive Video Cards

- URL: https://reeswrites.com/posts/Interactive-Video-Cards/
- Maturity: evergreen
- Published: 2020-09-17
- Kind: project; tags: Community Project, 2020
- Voice layers: rees


A JavaScript API to create interactive cards that will play at certain video timestamps and augment the viewing experience.

During the COVID-19 pandemic, the Board of Directors and I, alongside some Executive Officers, tried to envision what online STEM educational outreach would look for us. Synchronous learning via Zoom was something that did not seem incredibly feasible for us because many of the people that we serve do not have steady Internet connections or robust cellular data plans. 

The idea then was to create interactive videos that would have term definitions, quizzes, and other ways to engage the students while watching videos about various STEM activities that TeCanal would produce, or that could be sourced from online. I rapidly prototyped the idea and received some very positive feedback to the project, but ultimately it was decided that we didn't have the people-power to develop content and deliver it.

One obstacle that I ran into was where the videos would actually be hosted. All of TeCanal's web infrastructure was on GitHub, so everything was served through GitHub's servers. This is great for static content, but heavy files like video content was gonna be a struggle, especially because large binary files aren't really well-suited for GitHub, save for GitHub LFS. YouTube would have been the prime hosting service, except for YouTube has a very weird embed system that is done via iFrame's, which don't really play well with the &lt;video> tag that I was using to do video playback.

This prototype is fully usable and deployable as is, but there are still a number of quiz types that could have been added, and other user experience enhancements (especially in regards to video seeking) could be implemented as well.
---

## Card Organizer

- URL: https://reeswrites.com/posts/Card-Organizer/
- Maturity: evergreen
- Published: 2020-08-10
- Kind: project; tags: Software Engineering, 2020
- Voice layers: rees


Card Organizer is a JavaScript library to create organizable cards that can be serialized into a form's hidden input.

The reason that this can be serialized into a form's hidden input is that the original purpose of this library was to be used alongside Django. Instead of using a Many-to-Many relationship, it was easier to simply input and output the id's of the objects.

I was commissioned to do this project because it was fairly UI heavy, the cards themselves weren't super hard to implement, but a lot of the operations such as drop-n-drop/general re-ordering were a bit tricky to implement.

When I was doing this project I thought I was done, until I actually tested on my phone. I had been using the mobile simulator in Chrome's DevTools window, but I quickly realized that iPhone's drag and drop functionality was a lot different than desktop. I had to scramble to find a polyfill, which was hard to find one that did exactly what I wanted to do, but once I found it, I was just able to drop it in and it worked perfectly.
---

## Color Grid

- URL: https://reeswrites.com/posts/Color-Grid/
- Maturity: evergreen
- Published: 2020-07-24
- Kind: project; tags: Software Engineering, 2020
- Voice layers: rees


Color Grid is a JavaScript library that creates a colorful moving mosaic background image.

This library was originally created to be a statement background image that was dynamic for the homepage of Watersheets, an Iota Dynamics product. The Watersheets logo already looked like a mosaic, which was the reason why this project was created, and I was commissioned to do it. I color-picked the colors from the logo, and had them be the colors inputted into the Color Grid for the homepage.

The customizability of the coverage percentage and color change speed allowed for the background image to be tweaked to match the needs of many different sites because some people would want 100% grid coverage, but in Iota's case, they wanted it to be relatively sparsely populated. The CEO of Iota figured out that multiple color grids can even be set to the same div for an even richer experience, something that I did not even anticipate or develop for.
---

## Parsons2Play

- URL: https://reeswrites.com/posts/Parsons2Play/
- Maturity: evergreen
- Published: 2020-06-02
- Kind: project; tags: Computer Science Education, 2020
- Voice layers: rees


A Parson's Puzzles platform mixed with the ideas of Program2Play built on top of [Mosaic](/writing/Mosaic/).

**Program2Play:**  
Evelyn Stiller. 2017. Program2Play: enticing underrepresented groups to program through gameplay. J. Comput. Sci. Coll. 32, 6 (June 2017), 69–78.

View the website [here](http://www.program2play.com/).

**Parson's Puzzles/js-parsons:**  
Petri Ihantola, Ville Karavirta (2011). Two-Dimensional Parson’s Puzzles: The Concept, Tools, and First Observations. Journal of Information Technology Education: Innovations in Practice, 10, pp. 1–14.

View the website [here](https://js-parsons.github.io/).

## Why did I create this project?
I created this project after I read saw the Program2Play poster as seen for the online 2020 SIGCSE conference. I thought that it was a really interesting method to increase student motivation and engagement for coding tasks.

## Implementation Details
For the blocks, I used jQuery UI because they have a sortable element that can be "connected" with other sortable elements. This means that the lines can be interchanged between the "Block Bank" and "Solution" sections. I use CodeMirror's ```runMode()``` function for syntax highlighting within blocks, something that I think is missing from all the Parson's Puzzle platforms that I've encountered. I also used jQuery Resizable to make a resizable split panel view so that the user can resize to focus on the blocks or the game better whenever they want.

## Novelty
Upon looking though Program2Play, I thought that Parson's Puzzles would be a good match for it to make it more structured. In this way, while Stiller's Program2Play is more oriented towards learning, while my implementation is more towards practice.

The user interface is much more modern than what Program2Play has, and the implementation seems to be ultimately easier than whatever plugin js-parsons was trying to create. In this project, I believe I have established that it is possible to create a Parson's Puzzle platform rather easily with off-the-shelf frameworks (for JavaScript at least).

Additionally, my project is built on top of Mosaic, another project I have created for learning JavaScript. It provides an API to manipulate pixel art, which is great for animations and games. This provides the basis for the games that the user is able to play once they have completed the Parson's Puzzle.

## Potential Future Work
* Add more games
* Add incorrect blocks that will not be used in a puzzle solve
* Show indentation
---

## Trace Tutor

- URL: https://reeswrites.com/posts/Trace-Tutor/
- Maturity: evergreen
- Published: 2020-06-01
- Kind: project; tags: Computer Science Education, 2020
- Voice layers: rees


A JavaScript implementation of Unlimited Trace Tutor by Qi, et al, which is an application that generates code tracing practice problems.

**The original paper:**  
Ruixiang Qi and Davide Fossati. 2020. Unlimited Trace Tutor: Learning Code Tracing With Automatically Generated Programs. In Proceedings of the 51st ACM Technical Symposium on Computer Science Education (SIGCSE ’20). Association for Computing Machinery, New York, NY, USA, 427–433. DOI: https://doi.org/10.1145/3328778.3366939

### Why did I create this project?
I created this project after I read the original paper as seen in the 2020 SIGCSE proceedings. I thought that it was a really cool solution to a problem that I had encountered when I was taking AP Computer Science A when I was in high school.

I had just come off of writing Syntax Tutor, so I was able to reuse a lot of the same code to make this application.

### Problem Generation
I generate problems by taking a blank loop header and generating random start, end, and step values. I make two strings, one of the code that is shown to the user, and one of the code where I replace console.log() with string concatenation. I do this because I create a JavaScript function object from that code and execute it to get the answer to the problem that was just generated. This is a very hacky way to solve this problem, because it is not easily extensible towards supporting other languages. It could support Python through [Skulpt](https://skulpt.org), but that's all I can think of without poking around online.

### Novelty Compared to Qi and Fossati
* Instead of using the Qi and Fossati's code generation method, I decided to use a lot of if statements, instead of changing a parse tree. I thought it would be easier to implement and also easier to read.
* The loop exercises that Qi and Fossati's code generates are different than mine which initialize a variable and mutate it and print at the end. Mine is more focused on indices.
* This is for JavaScript, while Qi and Fossati's is for Java.
* This is a web platform, while Qi and Fossati's is a Java application.

### Potential Future Work
* Add a recursion problem type
* Add division for loop problems
* Have more granular control over the types of loops (+, -, *, /)
---

## Syntax Tutor

- URL: https://reeswrites.com/posts/Syntax-Tutor/
- Maturity: evergreen
- Published: 2020-05-01
- Kind: project; tags: Computer Science Education, 2020
- Voice layers: rees


Syntax Tutor is a game to help students recognize incorrect syntax and practice writing code in correct syntax.

### Game Flow
1. The user is shown a piece of code, and the user is asked, "Is this correct syntax?"
2. The user has two actions, they can either press the "Yes" or the "No" button.
    * If the code is correct, and the user says that the code is correct, they get points.
    * If the code is correct, and the user says that the code is incorrect, they get deducted points, and have to retry the problem with the same code.
    * If the code is incorrect, and the user says that the code is correct, they get deducted points, and have to retry the problem with the same code.
    * If the code is incorrect, and the user says that the code is incorrect, a code editor appears, and they must fix the syntax of the code to make it correct.
        * If the code they enter is correct, they get awarded points for solving the problem.
        * If the code they enter is incorrect, they get deducted points and have to continue to try editing the same code until it is correct.
3. This process repeats infinitely and a running total of the score is kept.

In this way, the student practices recognizing incorrect syntax, but also practices writing correct syntax as well.

If the user only wants/needs to practice a particular skill, there is a series of checkboxes in the footer that allows the user to toggle certain problem types.

This game is intended to be used as a way to transition between a block-based and a text-based language to facilitate typing practice. It can also be used for targeted practice to train syntax rules into a student's muscle memory.

As of right now, the proof of concept (PoC) only supports JavaScript syntax, but it could be easily extended for a variety of languages. Any other languages (with the exception of Python because of [Skulpt](https://skulpt.org/)) would need the parse the syntax tree in order to check syntax correctness. This PoC uses the easy way out and executes user-entered JavaScript to check if it runs without errors to check user-entered code correctness.
---

## Incongruity Theory in the Philosophy of Humor

- URL: https://reeswrites.com/posts/incongruity-theory-humor/
- Maturity: evergreen
- Published: 2020-03-16
- Kind: essay; tags: Philosophy, Humor, 2020
- Voice layers: rees
- Summary: In this paper, I will first explain Platonism and its relation to mathematics and reconstruct arguments against it to show how mathematical objects ultimately cannot exist. I will then explore logicism and formalism in order to critically evaluate how they create truth for mathematical propositions and the problems that they have that could or should prevent mainstream philosophical adoption. Finally, I will explain Benacerraf’s structuralism and why I think it is the best Anti-Platonist explanation for the philosophical foundation of mathematics.


I believe that Incongruity Theory is the best way to explain different types of humor. I agree with Kant’s idea of the freeplay of emotions, however I do not believe that the expectation dissolves into nothing thus causing the incongruity. Instead, I imagine the initial expectation as the starting tension of a rubber band. The further distance the punchline is from the initial expectation, the harder the rubber band is pulled. The discrepancy between the two points causes the boomeranging of the mind to try to make sense of what just happened, which is the freeplay of emotions. I call this Expectation Mismatch, and the further away the initial expectation is from the actual experience, the more mismatch and the more laughter that ensues. I don’t subscribe to Superiority Theory as a good model of explaining humor, but I think the ideas about empathy and human connection in regards to laughter are important.

With an interpretation of Bergeson’s “human element” as relatability/personal connection as opposed to anthropomorphizing, you can show why we don’t laugh at some things, even though the incongruous conditions are there. If people have some kind of connection to the topic, I think that it can override the freeplay of emotions to make someone feel sad or guilty about a joke. The operative word is can, because many people can feel guilty and still laugh at the joke, or be very close to the topic of the joke but still laugh. This is similar to Hobbes’ in-group idea where if a person or topic is close to you, you wouldn’t laugh about it. This would explain the mixed bag of reactions when it comes to “Dark Humor” jokes.

If the premise of the joke, that is to say the incongruity or the connection that the joke is based on, is understood, then the joke can be said to be recognized. If the joke is recognized and is relatable, and it does not cause any pain within the listener, a freeplay of emotions will ensue. In an effort to relieve this freeplay, laughter will be created. If the joke is recognized and is "too close to home" then the user will not joke instead the freeplay of emotions will be more painful, a series of feelings of not knowing how to react. If the joke is not recognized, it will result in confusion, and neither freeplay nor laughter will occur. If any laughter does occur, it is a type of awkward laughs that are used as social lubricant.

Meta-humor like the “Baby-Car Cross” joke is all about subverting a well-established joke template. The expectation of something clever combined with the juxtaposition of the actual resulting punchline like a dead baby makes these “Dark Humor” anti-jokes funny. I think another example of a joke subverting its template is, “Two guys walk into a bar. They both say Ow!” This joke is funny because the way the word “bar” is normally applied in the joke as a gathering place for people, so the expectation is subverted by utilizing a different definition of the word bar. Any time a joke template is subverted well, it should be novel enough to incite a bit of laughter. Joke templates lend themselves to be formulaic so that the listener has reasonable expectations of what might happen and how they should respond to participate in the joke. The moment the template is subverted, these expectations are turned on their head.
I believe that the “Harold the Veterinarian” joke is funny because the set-up lends itself to thinking of Harold sleeping with a human patient, instead of him actually sleeping with an animal patient. This is funny in a normal incongruous sense because a person isn’t expecting that Harold slept with an animal. However, I also believe that it is funny because it is incongruous with the normal social fabric, a violation of social norms. If a character in a joke does something that is out of the ordinary of everyday life it jars a person, which adds to the already swinging rubber band of emotions that was caused by the expectation mismatch. Bestiality is not something that is typically accepted in society, so that makes Harold’s transgression ever more surprising, which further adds to the freeplay of emotions inside someone.

I think that Incongruity Theory does a great job in bringing in other dimensions of what makes something funny. Sometimes it’s less the joke that is funny, but the person who is telling it or how they are telling it is more funny. Superiority Theory doesn't account for all kinds of humor and takes a mean-spirited diagnosis of human nature. I think Relief Theory has a lot of important things to say about laughter, but with that being said, I think it focuses more on explaining laughter than it does about humor. This is why I think Incongruity Theory is the best way to try to explain humor, but that is not to say that it is without some criticism

A major problem within the framework of Incongruity Theory is that of explaining why people can laugh the same joke twice or more times. This is founded on the idea that expectation mismatch relies on surprise. This is a correct assumption, however it discounts other reasons which would still incite a freeplay of emotions. When a person laughs at the joke for the second time, they could be remembering their initial expectation mismatch which can re-ignite a freeplay of emotions albeit probably more muted than the first time. There are some diminishing returns in jokes where eventually the humor of the joke will subside over time, which this account explains for. Also, if the joke is about a violation of a social norm all the elements are still there, the incongruity doesn’t rely on a set of expectations that change after you hear the joke. 

A related problem is when you expect something to happen, but when it happens, you still laugh. I think that this happens because there is still a difference between your expectations, what you think is going to happen, and then what you actually experience. I think that this difference is what allows us to laugh at something, even if we expect it. So then why don’t we laugh at everything, if there’s always a divorce between expectation and experience? The freeplay of emotions won’t always resolve as laughter and there has to be some kind of threshold for the freeplay of emotions to result in laughter. I believe this is what makes up the difference between a smile, a short exhale of air from your noise, a giggle, and a laugh to be. They are just increasingly large clearances of this threshold to laughter.

While Incongruity Theory cannot account for every single aspect of humor, I believe that it is the most complete explanation. With the freeplay of emotions, expectation mismatch, empathy, the difference between expectation/imagination and actual experience, and the threshold to the freeplay of emotions, a lot of issues with explaining humor can be dealt with.
---

## Advancing Epistemological Pluralism Between Text and Block-Based Coding

- URL: https://reeswrites.com/posts/Advancing-Epistemological-Pluralism/
- Maturity: evergreen
- Published: 2020-01-23
- Kind: project; tags: Computer Science Education, 2020
- Voice layers: rees


Epistemological Pluralism is a term that means "accepting the validity of multiple ways of knowing and thinking" [1]. Much like audiobooks to print books, Computer Science education currently perpetuates an (elitist) epistemology that views text as the highest form of programming. Block-based programming languages like Scratch, Snap, or Alice are typically reserved for introductory curriculum, with the goal at the end switching to a text-based language. In this paper I will argue that this should not be the case, and propose a new tool that would allow for industry adoption of a blocks-based coding environment.

## Introduction
Computer Science education currently perpetuates an (elitist) epistemology that states text as the highest form of programming. Block-based programming languages like Scratch, Snap, or Alice are typically reserved for introductory curriculum, with the goal at the end switching to a text-based language. We are world that values literacy, so it follows that most people would consider text to be the highest form. People similarly look down on audiobooks as opposed to print books, but there’s no real difference.

## Where Blocks Shine
Blocks are a very structured form of input and have a specific set of interactions that it can support. This unchanging structure allows for each block to be devoid of syntax errors, functionally eliminating an entire category of errors. Additionally, this structure makes it very extensible for accessibility purposes. With a few modifications, blocks-based environments could be accessible to more groups like Visually Impaired (Screen Reader Users), Manually Impaired (Eye Tracker Users) [2, 3]. Part of the reason why blocks-based programming is so looked down upon is because of its ease-of-use. It is incredibly easy for a new learner to pick it up and get the hang of coding with it. This is an incredible strength that should not be looked down upon, if you can create functioning code, then anything else is just unnecessary steps. Blocks also have built-in code discovery which can expose developers to more functions that they don't normally use. 

## Why the Hate?
In a lot of literature, blocks-based programming are referred to as “training wheels,” and as such should only be treated as scaffolding, a means to an end [4]. This is felt by the students, as well as shaped by their own perceptions, leading them to think or block programming as “inauthentic.” However, why can blocks-based programming not be the end goal? There are already code conversion systems that will take Blockly JavaScript code and output fully-functioning code. What different then is the final result between that and someone who typed it all out? Nothing. The only difference being how they got there. There are a few main criticisms that are often cited against block programming such as: the flexibility and speed of input as well as industry standards. 

## Code Viscosity
- Code Viscosity [Learnable Programming: Blocks and Beyond]
A major criticism of blocks is that it is not as fast nor as customizable as text-based programming. I disagree with this notion on two points. First off, just because the current block systems are not super advanced and customizable, does not mean they cannot or should not. They have been designed to fill a certain purpose as of right now, and complexity is something the designers have tried to avoid to make it an easy-to-enter educational tool. Secondly, there’s not overwhelming evidence to show that blocks-based programming is significantly slower than text-based languages. Even so, what about the metric of accuracy? It is impossible to make a syntax error in a blocks-based programming environment, whereas it’s very easy in a text-based one. Slow and steady usually wins the race, but is programming even a race? If you could specify a code standard into the block language design, it could be used to generate error-free, clean, and consistent code. This is an industry problem that could be in part helped by blocks-programming. 

## Industry Standards
Another major criticism of block programming is that it is not used in industry. While this may be true now, there’s no reason why it shouldn’t have to be that way. If there was a tool created that could convert existing codebases into blocks, it would be very easy for people to manipulate those blocks and then export it back into text. This would result in very little interruption to their normal code production workflow, and would them allow to be accepting of different programming modalities. A potential obstacle that could be encountered in attempting to enter the industry with a block-based programming would be technical interviews. They may have the same algorithmic thinking abilities as the next person, but usually interviewers want the interviewee express their answer as text on a whiteboard. This kind of problem could be alleviated if the interviewer allows pseudocode in the interview, but this varies on interviewer preference. This kind of isolation testing of a small part of someone's technical ability are immensely flawed, and technical interviews success rate very closely mirror the amount of privilege the interviewee has. It goes to show that the industry should reevaluate how they filter candidates and assess technical competence. 

## Balancing Tensions
Hybrid views of language input could allow the user to exploit both the features of a blocks-based and text-based environment [5]. 

## A New Tool
Taking all the previous ideas in this paper and putting them together, I am proposing an IDE that would allow a hybrid coding approach that could allow for text codebase importing and convert it into blocks. To aid this, it would be able to process imported modules and automatically create blocks for these functions complete with their docstrings to better allow library usage. The IDE would be very configurable so that the user could customize the colors, categories, shapes, and sizes of the blocks to allow for the best experience for each individual users. Furthermore, it would be architected to be extensible so that users can create their own plugins similar to how VSCode and Atom are as platforms. To better allow searching of code, you can click on a line of text and it will jump to the equivalent block in the other panel, in addition to using the classic Ctrl + F to find code in the text view will show corresponding code in the block view.

## Sources
1. [http://www.papert.org/articles/EpistemologicalPluralism.html](http://www.papert.org/articles/EpistemologicalPluralism.html)
2. [https://milnel2.github.io/files/Blocks4All.pdf](https://milnel2.github.io/files/Blocks4All.pdf)
3. [https://pdfs.semanticscholar.org/a795/7625d388fb52a0452853b1769e25122255a5.pdf](https://pdfs.semanticscholar.org/a795/7625d388fb52a0452853b1769e25122255a5.pdf)
4. [https://acbart.github.io/papers/blockpy-position-paper.pdf](https://acbart.github.io/papers/blockpy-position-paper.pdf)
5. [https://ieeexplore.ieee.org/document/8818762](https://ieeexplore.ieee.org/document/8818762)
---

## hardModeCode

- URL: https://reeswrites.com/posts/hardModeCode/
- Maturity: evergreen
- Published: 2020-01-14
- Kind: project; tags: Computer Science Education, 2020
- Voice layers: rees


A competitive code editing and execution environment where you cannot modify your code once you have entered it, if you mess up, you have to reset the editor contents.

## Why did I create this project?
I first came up with this idea while thinking of "facilitated shared experiences" for hackUMBC. I wanted to create more of a community feel that I think sometimes hackathons are lacking for various reasons. I was inspired by Minecraft Hardcore Mode, where if you die, the entire world is reset. From here, I thought it would be interesting to have a coding environment where if you make a typo, you have to restart.

## Implementation Details
In order to prevent the user from being able to edit their code, I restrict the following:  
* Mouse Clicks (mousedown event)
* Context Menu/Right Click Menu (contextmenu event)
* Backspace, Delete, and Any key combination that involves Cmd/Ctrl (keydown event)

This is against JavaScript best practices, but this is not an application for general users, so I was able to throw those right out the window.

For the problems, I decided to use beginner algorithm/data structures problems, similar to something you would see on HackerRank or CodingBat. I wanted the players to have to use their brains, but not just plan everything on paper and then type their code into the editor and submit it. I use Showdown to convert problem Markdown into HTML that details the problem prompt for the user.

Once the user submits their code, the backend server (written in Node.js) will create a file and run tests (via [Mocha](https://mochajs.org/)). I capture the output from the test framework and send it back to the client, with an additional boolean saying whether or not the user solved the problem. At the moment, there is no score being calculated, but it would ideally be a formula balancing the number of resets, number of lines, number of attempts, and time spent writing a correct solution.

## Future Work
* Client/server relationship so there can be a a game administrator
* Add support for C++, Java, and Python
* Add more problems
* Easy-to-deploy Docker container for the app
* Write a custom testing platform that works for all the languages and just tests output

