<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aaron Kent on Medium]]></title>
        <description><![CDATA[Stories by Aaron Kent on Medium]]></description>
        <link>https://medium.com/@aaron.kent?source=rss-bd376ee94e31------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L_2SNt4K61aeP4g06kCprQ.jpeg</url>
            <title>Stories by Aaron Kent on Medium</title>
            <link>https://medium.com/@aaron.kent?source=rss-bd376ee94e31------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:05:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aaron.kent/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Economics of Semantic Coding]]></title>
            <link>https://medium.com/isomorf-blog/the-economics-of-semantic-coding-7e8fd1b421e6?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e8fd1b421e6</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Thu, 19 Oct 2017 16:40:13 GMT</pubDate>
            <atom:updated>2017-10-20T13:57:16.887Z</atom:updated>
            <content:encoded><![CDATA[<p>The power of text-based editing in coding is that no time is wasted communicating semantics to the editor. Editing is a simple stream of character additions, deletions, and replacements; semantics are not required. This makes efficiency one-to-one with keystrokes. The work of any operation is simply the sum of its keystrokes.</p><p>Structured editing offers a different economy. The price of communicating semantics is paid up front, and then a (typically small) number of keystrokes communicates enough to make the semantics manifest.</p><p>Expressions involving few characters but complicated semantics typically make these economics unappealing. Consider x+1, an expression with very few characters requiring very few keystrokes in a text-based environment. But the semantics aren’t as simple:</p><blockquote>call the + function on the local reference x and the constant value 1</blockquote><p>Expressions of this sort do not make a compelling case for structured editing. The cost of communicating semantics seems inordinate compared with the minimal characters necessary to form the expression. In fact, this situation feels viscerally frustrating: “This is the simplest statement I’ll ever code and it feels so cumbersome!”</p><p>But it would be incorrect to assume that the economics of structured editing scale proportionally from these sorts of simple expressions. In fact, they move in the opposite direction: as editing moves to more complicated refactoring commands the complexity of the semantics stays constant while the keystrokes and boilerplate become much more tedious.</p><p>Imagine you’ve written a simple expression that you later realized should be abstracted into its own function. Perhaps you anticipate this logic being broadly applicable, so your ideal refactoring is to build a new function around the expression and then immediately call it.</p><p>For example, you might want to transform something like this:</p><p>g(x) ? 0 : h(x, y)</p><p>into something like this:</p><pre>def f(x, y) = { g(x) ? 0 : h(x, y) }<br>f(x, y)</pre><p>Despite the numerous keystrokes and tedious boilerplate of this refactoring, the semantics are quite straight-forward:</p><blockquote>Make this expression a function called f then refactor expression as call f</blockquote><p>It’s commands like these where the upfront cost of communicating intent begins to outweigh the subsequent cost of keystrokes. This is a trade-off commonly leveraged by various editing paradigms.</p><p>Autocomplete features can be seen as a step along this economic spectrum. By engaging the autocomplete dialog, you communicate the semantics of your intent (i.e., “I want to reference a defined entity”), and in exchange for this up front cost you spend fewer characters to achieve your edit.</p><p>Similarly, modal editing (such as in VIM) offers this same trade-off: use a keystroke to communicate a semantic context and your next keystrokes become more valuable.</p><p>Here at the <a href="https://isomorf.io/">isomorƒ project</a> we see structured editing as a way to push much further along this spectrum of editing economics, and we continue to experiment with this paradigm in our quest to improve the coding experience. <a href="https://blog.isomorf.io/an-experiment-in-structured-code-editing-68b917a9157c">Beyond the semantic benefits already reaped by the existing </a><a href="https://blog.isomorf.io/an-experiment-in-structured-code-editing-68b917a9157c">rename, </a><a href="https://blog.isomorf.io/an-experiment-in-structured-code-editing-68b917a9157c">clone, and </a><a href="https://blog.isomorf.io/an-experiment-in-structured-code-editing-68b917a9157c">match commands</a>, we’ve recently rolled out some new semantic commands that demonstrate some of this potential:</p><h4>Refactoring Expressions as Functions</h4><p>As discussed above, it is commonplace to write an expression and realize that the logic represented might be useful elsewhere. Creating a function that expresses the logic and refactoring the expression as a call to this new function offers benefits in reuse, maintenance, and adaptability. The refactor as function command transforms any expression into a function (after being supplied the new function’s name):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ucO-wjl5t0ZkePP5p1b7w.gif" /><figcaption>Here the refactor-as-function command transforms a match expression into a function called “getOrElse” and refactors the match expression into a function application.</figcaption></figure><h4>Refactoring Expressions as Values</h4><p>Whether simply for clarity or perhaps to avoid redundant declarations, it is often useful to transfer an expression to a value declaration and then make use of that value (perhaps repeatedly). The refactor as value command refactors any expression (or multiple identical expressions) into a value declaration and then replaces the expression(s) with a reference to the value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XVMP2r4v4-skO1Y_m9QOhw.gif" /><figcaption>Here the refactor-as-value command takes the two identical expressions “getOrElse(first, b)” and creates a local value “r” that replaces the two expressions.</figcaption></figure><h4>Refactoring Expressions as Functions Parameters</h4><p>Another similar pattern for creating value through abstraction is realizing that an expression or reference within a function could be abstracted as an input to the function. The refactor as parameter command takes any expression and adds a parameter to the containing function matching the type of the selected expression. The expression is replaced by the new parameter, and the argument list of any calls to the function is appended with the expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Swn0uSugd_fzVRAKOOapQ.gif" /><figcaption>Here the refactor-as-parameter command is executed on 0, adding a new function parameter called “else” of type BigDecimal to the enclosing function and padding the relevant application with the 0.</figcaption></figure><h4>Enumerating Constructor Patterns</h4><p>Adding a basic match statement in isomorƒ will always enumerate the relevant constructor patterns (when types are known and patterns are enumerable), but this is not performed recursively. To enumerate nested sub-patterns, use the enumerate constructor patterns command and create the desired depth of constructor matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tUeudyG4y4pA3QT1QU9Wg.gif" /><figcaption>Here the enumerate-constructor-patterns command creates new cases for List patterns when called on “head” and then on “tail”.</figcaption></figure><h4>Branching a Function</h4><p>Often when applying an existing function, it becomes clear that the behavior of the function isn’t exactly as desired and a slightly altered version will be necessary. Executing the branch command on any function application creates a local copy of the function being called and refactors the application to call the new local version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nTz32NztEH4dIsEj69HMw.gif" /><figcaption>Here the branch-function command creates a local copy of the “reverse” function.</figcaption></figure><h4>De-normalizing a Local Function</h4><p>As a function evolves the situation can emerge wherein efforts to abstract have gone too far and created indirection where no benefit is conferred. Perhaps a value statement was created with the expectation of multiple usages, but only a single usage materialized. Perhaps a function was envisioned that ended up containing only a trivial transformation not worthy of its own declaration. The refactor-as-expression command takes any local function or value and replaces references to it with the underlying expression, cleanly undoing its declaration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PXOsmNmYJCw7QbCb4bqufw.gif" /><figcaption>Here the refactor-as-expression command removes the value “r” and substitutes its body (“0”) for all references to “r”.</figcaption></figure><p>We have a live sandbox on <a href="https://isomorf.io/">isomorf.io</a> where you can play around with these commands. Let us know what you think (and if there are other commands or features you’d like to see). Reach out via <a href="/service/mailto:feedback@isomorf.io">email</a>, <a href="https://twitter.com/isomorf_io">twitter</a>, or our <a href="https://users.isomorf.io/">forum</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e8fd1b421e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/the-economics-of-semantic-coding-7e8fd1b421e6">The Economics of Semantic Coding</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Experiment in Structured Code Editing]]></title>
            <link>https://medium.com/isomorf-blog/an-experiment-in-structured-code-editing-68b917a9157c?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/68b917a9157c</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Fri, 08 Sep 2017 21:33:21 GMT</pubDate>
            <atom:updated>2017-09-12T13:36:41.973Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the core experiments of isomorƒ is creating a new paradigm for editing code based around a few guiding principles:</p><ol><li><strong>It is structured.</strong> The user is editing a syntax tree and not a block of text. This makes syntax errors impossible — code is always syntactically correct. Editing commands are semantic and the necessary peripheral syntax is always automatic (i.e., commas, braces, parentheses, keywords, etc. are all added wherever necessary).</li><li><strong>It is projectional.</strong> There is a layer of indirection between the storage format and the visual representation. The appearance of the code is flexible, personal, and mutable. Each user has her own lens through which to view code — regardless of which user actually wrote the code. This affects neither the storage nor the behavior of the code. It is a strictly end user experience, akin to changing the font of an eBook.</li><li><strong>It is propagational.</strong> Changes that imply other changes are made automatically. If you rename a function or argument, it is renamed everywhere. If you delete or add an argument to a function, a placeholder is added (or removed) everywhere applicable. Edits are treated as semantic commands and not simple ASCII character changes.</li><li><strong>It is keyboard shortcut driven.</strong> Despite the structure and visualization of code, the intent is NOT to move coding toward a visual mouse-click style input paradigm. The prevailing style of developer efficiency is based around mastery of powerful keyboard shortcuts and we support this model. The expectation is that code is still created via keystrokes — just that we can create a more powerful and semantic mapping from keystrokes to code.</li></ol><h4>Templates and Placeholders</h4><p>Structured editing requires a complete semantic structure at all times. So starting from scratch cannot mean starting with a blank file. Placeholder structure must exist to give code a backbone before it is implemented. There is a need for something to hold the place for all the rich and wonderful types, expressions, and patterns that are soon to be created. In isomorƒ this is denoted with a ? symbol (inspired by the ??? function in Scala) that can represent either a type, pattern, or expression. (For those familiar, you can think of this as something like a <a href="https://en.wikipedia.org/wiki/Bottom_type">bottom type</a>.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*AtQnXF2tYiu0x43AKPvHtg.png" /><figcaption>A function template, just dying to be implemented.</figcaption></figure><p>This structure means that deleting code (via the backspace key) will always bring you back to the ? as opposed to leaving you with nothing at all:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eTFRzZ33_u7Oi4YxCBBk5w.gif" /><figcaption>deletion in action</figcaption></figure><h4>Cursor vs Focus</h4><p>Another implication of structured editing is that there is no cursor in the traditional sense. You can highlight any element of the code, but you cannot put a cursor between or inside a word or control structure like you can with text. Arrow keys allow for code traversal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*69awlKhCTmEEnIapbGJ_OA.gif" /><figcaption>a captivating navigation through a simple function</figcaption></figure><p>The shift key can be used to select multiple elements at once. Wherever sensical, multiple concurrent editing is possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75DYpq8q-uNoQF-ZFQ8t6w.gif" /><figcaption>why not both?</figcaption></figure><h3>Editing</h3><p>So how does editing work in this paradigm? Here is a rundown of some simple editing actions and how they appear in isomorƒ:</p><h4>Expressions</h4><ul><li>enter creates a reference to any locally defined argument, function, or pattern.</li><li>? creates a match statement with the selected expression as the subject. If the type of the subject is knowable, relevant case patterns will be enumerated.</li><li>( calls/applies a function or constructor, making the selected expression the first argument. The application will be padded with ? to ensure the correct number of arguments.</li><li>= defines a new local function. Engages a naming dialog. New function will have two arguments by default.</li><li>1 creates a first-order function reference.</li><li>&gt; creates a lambda function. If knowable, the types will be populated.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YD1WrvPUM6Wbne8bONFDxA.gif" /><figcaption>editing expressions</figcaption></figure><h4>Editing Patterns</h4><ul><li>enter creates an identifier. Engages a naming dialog.</li><li>( creates a constructor pattern. Engages a select dialog.</li><li>_ creates an ignore/unnamed pattern.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DeAMXXkxbkPF2Est7ddchQ.gif" /><figcaption>editing patterns</figcaption></figure><h4>Editing Types</h4><ul><li>enter provides a list of existing types from which to choose.</li><li>a creates a parametric/generic type.</li><li>&gt; will convert any type to a functional type.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tA0ivTa46S0Gut06ZnlSow.gif" /><figcaption>editing types</figcaption></figure><h4>Editing Signatures</h4><ul><li>enter renames a function or argument. This rename will be propagated.</li><li>+ adds a function argument. A naming dialog will engage.</li><li>backspace on an argument will delete the argument.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YHMb5cStLK9pWx9QMWFW6w.gif" /><figcaption>renaming arguments/functions; adding/deleting arguments</figcaption></figure><h4>Clipboard Operations</h4><ul><li>x cut</li><li>c copy</li><li>v paste (works across simultaneous locations.)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWopPVVM26OUznJEmzHDDA.gif" /><figcaption>cut, copy, paste</figcaption></figure><h4>Clone</h4><ul><li>2 will make a clone of an element of code. Similar to a copy then paste.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRPadyi9nhW3zbNnILPskA.gif" /><figcaption>cloning saves you time</figcaption></figure><h4>Swap</h4><ul><li>&amp; swaps any two elements (of the same kind).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4vYYM52ozBK05GoycqIkQ.gif" /><figcaption>swapping code elements</figcaption></figure><p>We are excited to continue experimenting with this new editing paradigm. We predict that the grace and power of the system will only improve. Stay tuned for an upcoming release of specialized refactoring shortcut keys. Feel free to play around with the editing paradigm in our <a href="https://isomorf.io/#!/sandbox/hello/~">public sandbox</a> and don’t hesitate to <a href="/service/mailto:feedback@isomorf.io">let us know what you think</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68b917a9157c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/an-experiment-in-structured-code-editing-68b917a9157c">An Experiment in Structured Code Editing</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is isomorƒ?]]></title>
            <link>https://medium.com/isomorf-blog/what-is-isomor%C6%92-bdc50ce597ee?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdc50ce597ee</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Mon, 03 Jul 2017 20:54:46 GMT</pubDate>
            <atom:updated>2018-04-14T03:51:35.067Z</atom:updated>
            <content:encoded><![CDATA[<p>isomorƒ is an experimental coding paradigm. It’s a platform for writing, sharing, and deploying software from your web browser. It’s a new approach to reducing the complexity of the software development workflow — creating a workflow that is more structured, more automated, more assistive.</p><p>It’s an attempt to build a visual cloud <a href="https://en.wikipedia.org/wiki/Integrated_development_environment">IDE</a> around the ideas of functional programming and <a href="https://en.wikipedia.org/wiki/Serverless_computing">serverless</a> architecture.</p><h4>Structured Editing</h4><p>isomorƒ implements a <a href="https://en.wikipedia.org/wiki/Structure_editor">syntax-directed</a> editing paradigm in place of the usual code-as-text paradigm. This means that there are no syntax errors in the traditional sense, no possibility of mismatched parenthesis or dangling commas. New code is presented as a template that needs to be filled in rather than as a blank file that needs to be written.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*BonuLQyc7v_Jj24CUoiWuQ.png" /><figcaption>new function template</figcaption></figure><p>Different modes exist for different styles of interaction. Hot key options enable rapid keyboard interaction, button/menu options enable mouse interaction, and touch/drag options enable tablet interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BjgUZRkFaxhEv7q47YdEZw.gif" /><figcaption>structured coding</figcaption></figure><p>The presentation of the code is projectional in that it is customized to the user and indirect from the storage. The keywords (e.g., def, for, end, let) and syntax elements (e.g., {, (, -&gt;) are completely configurable and not an inherent part of the program. In this way, “syntax” in isomorƒ is more akin to font in a word processor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*m7yxAadqeCFX8OyumFoCOg.gif" /><figcaption>syntax flexibility</figcaption></figure><h4>Syntactic Sugar</h4><p>Projectional editing enables customization that goes beyond the simple substitution of keywords or symbols. The editor providers a <a href="https://en.wikipedia.org/wiki/Syntactic_sugar">syntactic sugar</a> layer for the arbitrary transformation of code into a final view state. This can provide for not only simple aliasing (e.g., List[Char] becomes String, or becomes ||) but also the introduction of complex control structures (e.g., monadic map/bind operations become for comprehensions) and even datatype specific DSLs (e.g., a JSON data structure edited in the familiar JSON syntax).</p><h4>Version Control</h4><p>isomorƒ implements automatic background-style saving akin to other cloud content creation services (i.e., Google Drive).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*3Fdr1b-rLyASDePPixhT3A.gif" /><figcaption>automatic saving</figcaption></figure><p>Commits correspond to only meaningful changes (not just aesthetic changes) and commit messages are generated automatically (e.g., “Renamed x to y”, “Added arg x to function f”). Commit histories and diffs are presented visually and with function-level granularity.</p><h4>Language</h4><p>The language of isomorƒ is an <a href="https://en.wikipedia.org/wiki/Abstract_syntax">abstract</a>, <a href="https://en.wikipedia.org/wiki/Functional_programming">functional</a> <a href="https://en.wikipedia.org/wiki/Abstract_syntax_tree">AST</a>. It is intentionally low-power — designed to facilitate cleaner normalization (to power meta-analysis), easier re-use, and lower barriers to entry. What are traditionally viewed as more powerful language features are shifted to be syntactic sugar. The defining properties of the language are the following:</p><ul><li><a href="https://en.wikipedia.org/wiki/Functional_programming"><strong>Functional</strong></a><strong>.</strong> All logic is encoded in functions as a single expression (as opposed to a series of statements). Functions are <a href="https://en.wikipedia.org/wiki/Higher-order_function">higher order</a>, and <a href="https://en.wikipedia.org/wiki/Closure_(computer_programming)">close over</a> any values in their broader scope.</li><li><a href="https://en.wikipedia.org/wiki/Purely_functional_programming"><strong>Pure</strong></a><strong>.</strong> Functions are expressions in the pure mathematical sense: a mapping of input to output. Data is represented as <a href="https://en.wikipedia.org/wiki/Immutable_object">immutable</a> values. Function applications are <a href="https://en.wikipedia.org/wiki/Referential_transparency">referentially transparent</a>. There is no direct notion of <a href="https://en.wikipedia.org/wiki/Pointer_(computer_programming)">pointers</a> or memory, and there is no <a href="https://en.wikipedia.org/wiki/Global_variable">global state</a>.</li><li><a href="https://en.wikipedia.org/wiki/Type_system#Static_type_checking"><strong>Statically Typed</strong></a><strong>.</strong> Code is assessed to ensure only values of the specified type are provided at any application point. This is to say, a function application is constrained by the types provided in its definition. The type system is complete to the extent that there is no concept of <a href="https://en.wikipedia.org/wiki/Null_pointer">null</a>, no dubious <a href="https://en.wikipedia.org/wiki/Type_conversion">casting or coercion,</a> and generally no means to misdirect the <a href="https://en.wikipedia.org/wiki/Type_inference">inferable</a> type of a given value.</li><li><a href="https://en.wikipedia.org/wiki/Eager_evaluation"><strong>Eagerly Evaluated</strong></a><strong>.</strong> The logical runtime platform in which isomorƒ code is executed assumes an eager evaluation strategy. Arguments to a function application are <a href="https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_value">evaluated before the expression body of the function itself</a>, regardless of whether the resultant values are referenced at all. Delayed evaluations can be achieved naturally via argument-less functions (i.e., Foo becomes () → Foo).</li></ul><h4>Types</h4><p>The platform relies heavily on types for both runtime and assistance purposes. Types are <a href="https://en.wikipedia.org/wiki/Algebraic_data_type">algebraic data types</a> composed of groups of constructor definitions. Before attempting compilation, type compatibility is assessed. Resolved types are available as annotations for all code to assist with informal reasoning and debugging. To facilitate speed in prototyping, types in function signatures need not be defined up front and can be filled in by the platform once inferable.</p><h4>Execution and Testing</h4><p>Code is executed from within the web browser — without the need for explicit build steps or command line interaction. Clear human-readable diagnostics are provided if any errors exist that prevent execution. Successful executions are catalogued and can be converted directly into <a href="https://en.wikipedia.org/wiki/Unit_testing">unit tests</a>. As code is changed, unit tests are rerun automatically and notification of <a href="https://en.wikipedia.org/wiki/Software_regression">regression</a> is provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*rSC-Y60Ie6tDjcI7i3_V5g.gif" /><figcaption>running a function and adding a unit test</figcaption></figure><h4>Collaboration and Reuse</h4><p>All code is public by default and sharing is encouraged. Users can search the codebase using types, function signatures, and function behaviors. All functionality is available for immediate import and use. The platform handles dependency management and naming conflicts automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*w8Pov2Aj95Rf8ZTdjzxAfw.gif" /><figcaption>using behavior to search for code</figcaption></figure><h4>Deployment</h4><p>All functions can be deployed as <a href="https://en.wikipedia.org/wiki/Microservices">microservices</a>. They can be hosted natively by the platform or pushed to common providers (e.g., Amazon Lambda). Multiple encoding options are available for both the request and the response (e.g., JSON, XML, Protocol Buffers)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*N3i4Yjqd4Ky7upo-zaHHhA.gif" /><figcaption>deployment</figcaption></figure><p>We are excited for what we think <a href="https://isomorf.io/">isomorƒ</a> can do for software development — increasing efficiency and reducing barriers to entry. <a href="https://isomorf.io/#!/sign-up">Try it today</a>, and <a href="/service/mailto:feedback@isomorf.com">let us know what you think</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdc50ce597ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/what-is-isomor%C6%92-bdc50ce597ee">What is isomorƒ?</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Reuse in Software Development]]></title>
            <link>https://medium.com/isomorf-blog/on-reuse-in-software-development-2ebd3f3b0517?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ebd3f3b0517</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 02:29:40 GMT</pubDate>
            <atom:updated>2017-06-27T02:38:55.145Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the process by which code is reused today? And what would an ideal reuse process look like?</p><p>It is undeniable that significant redundant effort is regularly undertaken by developers opting to recreate logic and functionality that has already been written at least once somewhere by someone else. Code is seldom truly new, seldom a heretofore unknown set of logic written against a set of types the likes of which have never been considered. Chances are it has been considered and been written and is just sitting somewhere in some public repository waiting to be found and used.</p><p>The problem lies not in the existence of reusable code but in the processes of discovery, verification, and incorporation.</p><p>Roughly the only tool at our disposal is text search within open source software repositories, and text can be a blunt instrument when hoping to locate complex logic.</p><blockquote>“Serialization?”</blockquote><blockquote>“Monte Carlo simulation?”</blockquote><blockquote>Takes a list of boolean values and tells me if any is true?</blockquote><p>And even supposing the functionality is located, the work is hardly done. How does this functionality work? How can it be folded into an existing application? What are its dependencies, and do they reconcile? Is it documented?</p><p>This is a tedious and time-consuming process that often leads developers to avoid it altogether and simply redo the work.</p><p>How would our imaginations design this process? What would be an ideal system for maximizing the passive collaboration of coders across the globe? Rather than rely on the decency of our fellow coders to document and publish their work, can we find a way to treat code more like first order data and let our machines do the heavy lifting of discovery and integration?</p><p>For starters, we would want to search by more than text. We would want to search with <strong>types</strong>, the real currency of code<strong>.</strong></p><blockquote>What out there has the signature List[A] -&gt; List[A] -&gt; List[A]?</blockquote><p>And ideally we wouldn’t get too bogged down with diction. Maybe my List is your Sequence and is her Traversable. Names shouldn’t matter if they have the same <a href="https://en.wikipedia.org/wiki/Isomorphism"><strong>shape</strong></a>, we would want our discovery process to be smart enough to make the distinction.</p><p>Next we might want to search by what exactly the code <strong>does</strong>. Relying on empirical input/output pairs provides the clearest description of functionality.</p><blockquote>ƒ([1,2,3], [2,3,4]) = [2,3]</blockquote><blockquote>ƒ([1,2,3], [1,2,3]) = [1,2,3]</blockquote><blockquote>ƒ([1,2,3], [4,5,6]) = []</blockquote><p>Ideally the <strong>search</strong> process wouldn’t be a search process at all. It would be an assisted <strong>completion</strong> process. We can imagine a world where we define an empty function but describe its intended behavior, and a service exists to scan all known functions with matching signatures against the provided input/output to see if anything works. And if it does, we’re done.</p><p>Of course as the input and output increased in complexity, it would become onerous to type out explicit instances. But examples needn’t be limited to explicit constructions. Code is the best medium for creating code. From the very simple:</p><pre>ƒ(fill(1, 1000000)) = 1000000 //e.g. length</pre><p>To more complex constructions completely delegated to other function calls:</p><pre>ƒ(g(), h()) = k()</pre><p>But a web platform built around this notion of discovery could offer much more fluid construction and visualization options. Provided there were definitions of Matrix -&gt; String or Matrix -&gt; HTML their rendering could move from the clumsy:</p><pre>Matrix(List(Row(1,0,0,0,0),Row(0,1,0,0,0),Row(0,0,1,0,0),Row(0,0,0,1,0),Row(0,0,0,0,1)))</pre><p>To the natural and intuitive:</p><pre>1 0 0 0 0<br>0 1 0 0 0<br>0 0 1 0 0<br>0 0 0 1 0<br>0 0 0 0 1</pre><p>Similarly, input could be offered via HTML forms, providing efficient data entry that is parsed into the proper data constructs.</p><p>In addition to discovery, this type of behavioral catalog could simultaneously drive unit testing and integration testing.</p><p>A less powerful language written in a structured editor can make this world possible. This is one of the driving principles behind <a href="https://isomorf.io/">isomorƒ</a>. Take a look at our current <a href="https://isomorf.io/#!/demos">sandbox</a> to see what we’ve got so far and <a href="/service/mailto:feedback@isomorf.com">let us know what you think</a> or <a href="http://eepurl.com/cTEsRf">if you’d like to be a beta tester</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ebd3f3b0517" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/on-reuse-in-software-development-2ebd3f3b0517">On Reuse in Software Development</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[In Support of More  First Class Citizens in IDEs]]></title>
            <link>https://medium.com/isomorf-blog/in-support-of-more-first-class-citizens-in-ides-b3b9f821e5c6?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3b9f821e5c6</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Fri, 23 Jun 2017 02:11:02 GMT</pubDate>
            <atom:updated>2017-06-23T02:11:02.688Z</atom:updated>
            <content:encoded><![CDATA[<h3>In Support of More First Class Citizens in IDEs</h3><p>Consider a series of commits to your latest software project:</p><blockquote>Write new function</blockquote><blockquote>Change size of some cache</blockquote><blockquote>Add logging somewhere</blockquote><blockquote>Implement algorithm change in existing function</blockquote><blockquote>Add comment explaining algorithm change</blockquote><blockquote>Correct bug in existing function</blockquote><blockquote>Add access control check before some operation</blockquote><blockquote>Re-point from test to production database server</blockquote><p>These are all everyday innocuous changes. To your version control system these are eight serial commits to your repository, each described via lines of ASCII added or removed from the various text files that constitute your project. Save the benevolence of the commit message writer, they all carry the same vague semantics to your version control system: files have changed.</p><p>The prevailing version control paradigm is really focused on the control aspect — tightly regulated step changes to a repository. But they provide only the most charitable definition of “versioning” — the meaningful narrative of development is lost.</p><p>There is a semantic bankruptcy to this commonplace story of software development. The above sequence of actions represents the adding, modifying, and removal of meaningful project components of far more semantic weight than lines in text files. These are parallel meaningful narratives of the development process.</p><p>There are conceptual <a href="https://en.wikipedia.org/wiki/First-class_citizen">first class citizens</a> of the software ecosystem — things like optimizations, access control points, IO handshakes — that are obscured through our overloaded notion of code itself. This puts real constraints on automation and assistance within your IDE.</p><p>Consider some simple questions one might ask of his project:</p><blockquote>Where am I deploying caches? What size is each?</blockquote><blockquote>Where are my access control checks?</blockquote><blockquote>When am I connecting to outside databases or file systems? Which ones?</blockquote><blockquote>When are log entries written?</blockquote><p>A responsible architect will try to track these ideas using things like configuration files or design patterns, but there are no guarantees. Projects evolve and oversight is distributed. At best these are attempts to use oversight and compliance to solve a problem that code should be solving itself. In practice these become text searches or language parsing problems, when they should be part of a story that version control can easily tell.</p><p>It is often observed that successful software development entails a strict <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">separation of concerns</a>, so why is code itself leveraged as a shaggy all-purpose implementation medium?</p><p>Anyone who has ever passed a function into another function knows the value of first class citizens within code, so why are we not attempting to promote more elements of the entire software development process to first class citizenship?</p><p>To accomplish this we need to recognize that representing an application via text files is suboptimal. Advanced applications comprise different concepts of logic and configuration that warrant different concepts for editing and versioning. A structured approach to what is logic versus configuration versus documentation versus optimization can provide a richer, more automated, more assistive development environment.</p><p>There should exist a more structured development experience where adding a parallelization queue in front of map(xs, x -&gt; ...) or a cache in front of calcSomething(...) is an ex-post operation within the IDE, one that doesn’t change the semantic “version” of the project but is a configurable property of a deployment with its own distinct version history.</p><p>It should be possible to provide rich, visual documentation that does not necessitate crowding source code and version control with comment blocks 10x the size of the logic they describe.</p><p>Consider the reuse potential of increasingly pure code stripped of the <a href="https://en.wikipedia.org/wiki/Side_effect_(computer_science)">side effects</a> of access control checks and conditional debugging println statements.</p><p>Imagine a cloud IDE with Google-docs style auto-saving that produces a semantic timeline of commit history:</p><blockquote>defined f</blockquote><blockquote>renamed f to g</blockquote><blockquote>added argument x to g</blockquote><blockquote>changed type of x to Boolean</blockquote><p>This proud collection of first class citizens of the software ecosystem is one of the driving principles behind <a href="https://isomorf.io/">isomorƒ</a>. Take a look at our current <a href="https://isomorf.io/#!/demos">sandbox</a> to see what we’ve got so far and <a href="/service/mailto:feedback@isomorf.com">let us know what you think</a> or <a href="http://eepurl.com/cTEsRf">if you’d like to be a beta tester</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3b9f821e5c6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/in-support-of-more-first-class-citizens-in-ides-b3b9f821e5c6">In Support of More  First Class Citizens in IDEs</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Accidental Complexity of Syntax]]></title>
            <link>https://medium.com/isomorf-blog/the-accidental-complexity-of-syntax-7ecd8b1fb42?source=rss-bd376ee94e31------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ecd8b1fb42</guid>
            <category><![CDATA[functional-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ide]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Aaron Kent]]></dc:creator>
            <pubDate>Sat, 17 Jun 2017 12:17:26 GMT</pubDate>
            <atom:updated>2017-06-17T12:17:26.567Z</atom:updated>
            <content:encoded><![CDATA[<p>In our mission to get ourselves and other software developers <a href="http://shaffner.us/cs/papers/tarpit.pdf">out of the tarpit</a>, we began considering the complexity of software by first focusing on the complexity of physically writing lines of code. To borrow a definition from Mosely and Marks (who themselves borrowed from <a href="https://en.wikipedia.org/wiki/Fred_Brooks">Brooks</a>), we think of complexity as fundamentally in one of two categories:</p><blockquote><strong>Essential Complexity</strong> is inherent in, and the essence of, the problem (as seen by the users).</blockquote><blockquote><strong>Accidental Complexity</strong> is all the rest — complexity with which the development team would not have to deal in the ideal world (e.g. complexity arising from performance issues and from suboptimal language and infrastructure).</blockquote><p>When thinking about the work involved in the act of typing lines of code into a text file, we can broadly categorize those keystrokes into different conceptual buckets:</p><ol><li><strong>Semantics.</strong> First order structural decisions (e.g., “add match statement here”, “make a new function”, “remove a constructor of this type”) form the basis of programming decisions, creating the logic of the program, and serving the will of the programmer.</li><li><strong>Structure.</strong> Things like braces, commas, parentheses (i.e., syntax) are necessary to manifest your semantics and to inform the interpreter/compiler.</li><li><strong>Names.</strong> You have added a function, argument, constructor, etc., and you must name it so that you can refer to it later.</li><li><strong>References.</strong> You have already defined a function, argument, constructor, etc., and you want to reference it.</li><li><strong>Propagation.</strong> Both semantic and naming changes (i.e. “refactoring”) must be propagated to affected parts of the program (e.g., you remove an argument of a function and must go change all calls to that function; you rename a value and must rename references to it).</li></ol><p>So within these broad buckets, where is the essential complexity and what is accidental complexity introduced by the text editing paradigm? What is the necessary work of the programmer conveying the logic of the application, and what work is being done to satisfy the machines that will read it?</p><ol><li><strong>Semantics is Essential Complexity. </strong>This is the most fundamental part of creating code.</li><li><strong>Structure is Accidental Complexity.</strong> Structure is implied by the semantic decisions made. This can create headaches and confusion (e.g., mismatched parentheses, missing arguments).</li><li><strong>Names are Essential Complexity.</strong> The meaning of references arises from naming decisions.</li><li><strong>References involve both Essential and Accidental Complexity.</strong> References themselves are essential, but accidental complexity is introduced by allowing nonsensical or incorrect references (e.g., null initialization, compilation errors).</li><li><strong>Propagation is Accidental Complexity.</strong> These changes (which can be vast) are semantic fallout of meaningful changes in (1) and (3). Their need arises solely from the code-as-text paradigm.</li></ol><p>So we ask the question: Can a syntax-directed editing approach ensure that only the essential complexity of semantics, naming, and referencing is introduced? Can we make the boilerplate syntax and derivable propagation the work of the IDE, and let the user focus solely on logic?</p><p>Our hope is that this could bring dramatic efficiencies to the direct writing of code and continue to offer downstream efficiencies by leveraging the same structure for analytical purposes. Can we build an IDE where syntax errors are impossible, where renaming a function used thousands of times is instantaneous, where adding an argument to a function doesn’t lead to dozens of corrupt applications of that function?</p><p>This was one of the central questions that led us to create <a href="https://isomorf.io/">isomorƒ</a>. Take a look at our current <a href="https://isomorf.io/#!/demos">sandbox</a> to see what we’ve got so far and let us know what you think (feedback@isomorf.com).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ecd8b1fb42" width="1" height="1" alt=""><hr><p><a href="https://medium.com/isomorf-blog/the-accidental-complexity-of-syntax-7ecd8b1fb42">The Accidental Complexity of Syntax</a> was originally published in <a href="https://medium.com/isomorf-blog">isomorƒ blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>