Your Privacy

This site uses cookies to enhance your browsing experience and deliver personalized content. By continuing to use this site, you consent to our use of cookies.
COOKIE POLICY

Nonsensical Programming

Nonsensical Programming
Back to insights

When it comes to development there is a programming language for every situation.  Languages are optimized for metrics like speed and usability while doing their best to minimize the tradeoffs.  New languages are built from their predecessors, correcting past mistakes and inventing new paradigms.  While these noble languages have produced many solutions in a wide variety of fields, not all languages are created equal.  Some languages shouldn’t be used for any projects.  Esoteric Programming Languages are known to be incredibly complex, unusable and nonsensical.  At the same time, many of these languages are Turing Complete, meaning they can solve any computer problem a regular programming language can.  Let’s look at a few of these impractical monstrosities.

Befunge

Befunge is a stack based language where the goal was to be as difficult to compile as possible.  The code uses arrows to control the program flow where the characters <  ^ v  > point in the direction of the next command to execute.  The code can also modify itself, meaning the app may perform completely differently by the time it terminates.  Here is an example that computes a factorial:

The program starts with user input with the “&” character.  It pushed numbers 5 thru 1 in onto the stack using a “loop”.  Then it loops through the stack again multiplying the values together until it outputs the factorial.  Though the goal of this language was to be as hard as possible to compile, developers like a challenge and several working compilers have been created.  In fact, this language has been extended further in a child language called Funge.  The largest difference is you are no longer limited to a 2-dimensional plane to write your code.  If this code wasn’t already difficult to understand you can now write the directional code in 3 or more dimensions!

Whitespace

Developers have a wide range of preferences when it comes to formatting code.  Many discussions have devolved to vicious arguments over using tabs vs space and how to indent your code.  Most languages will ignore formatting to accommodate personal tastes.  The next language, Whitespace, completely reverses this concept.  The Whitespace programming language ignores everything but spaces, tabs and new lines.  Different combinations of whitespace characters perform different actions in this stack and heap based language. Below is the classic “Hello World!” function in Whitespace:

It’s impossible to read without syntax highlighting and comments, takes many lines to do anything, and extremely difficult to debug.  I wish you the best of luck if you ever attempt to use it.

GolfScript

As you can see these languages tend to be very difficult to read.  It seems like readability is an important and necessary trait for a “real” programming language.  However, every problem is different and sometimes being unreadable can be advantageous.  There is a popular developer game called “Code Golf.”  The object is to write a function to solve a problem as concise as using the fewest amount of characters.  Typically, people would write functions in popular languages like C, JavaScript and Python and took advantage of little-known tricks in the language to produce short code.  However, Code Golf presented an interesting problem and eventually developers created concise programming languages to get better and better scores.  GolfScript is one of these languages, and though esoteric, it has a valid use case.  By using a combination of overloaded operators and very extensive built in functionality, GolfScript creates very concise, hard to read code that is great for Code Golf.  The following prints out the first 1000 digits of PI:

Programming languages come in all shapes and sizes.  Unorthodox languages provide an interesting look at what programming paradigms are possible.  It is fun to mess around with Esoteric Programming Languages to see what unique solutions can be created for simple problems.  Don’t forget, the code might look different but in the end it is all 1s and 0s.

Digging In

  • Digital Products

    Unlocking Business Potential: The Power of Custom Application Development

    Like any savvy business leader, you’re likely always on the lookout for tools to give your company a competitive edge. And in doing so, you’ve undoubtedly considered investing in custom application development. But the question is, how do you ensure that such a major investment in a custom web application development provides a strong return on […]

  • Digital Products

    Mastering Legacy Application Modernization: Strategies for Success

    The ironic truth of the business world is that change is the only constant. But this means that failing to keep pace with the competition and its technologies will only end with you falling behind. That’s where legacy application modernization enters the fold. When you modernize legacy applications, your team gains access to new features […]

  • Digital Products

    CTO Confessions Podcast

    In this episode of CTO Confessions, Rob Phillips, the Vice President of Software Engineering at UDig, digs into his journey from a passionate technologist in his youth to a seasoned leader in the tech industry. He shares valuable lessons on transitioning to senior leadership, the importance of understanding and articulating company problems, and the art of empowering teams for high performance.

  • Digital Products

    Navigating the Challenges of On Premise to Cloud Migration

    In today’s rapidly evolving technological landscape, the shift from on premise solutions to cloud-based infrastructure has become a pivotal transformation for organizations seeking to modernize their IT operations. This transition holds the promise of increased agility, cost savings, and enhanced scalability. However, it is not without its set of formidable challenges that organizations must navigate. […]

  • Digital Products

    The Power of Transferrable Skills in Tech Projects

    Every project has its own unique elements that require flexibility to be effective and achieve success. This often requires picking up new pieces of a tech stack, learning a new programming language, or a new project methodology. Fortunately, there are also many transferrable skills that carry over from one project to the next. In my […]

  • Digital Products

    The Four Pillars of Effective Digital Product Development

    In 2020 alone, approximately two billion consumers purchased at least one digital product. From software licenses to mobile apps and tech tools, consumers are becoming increasingly active in the digital product market, a trend that has naturally spurred brands across a wide range of industries to reevaluate their digital product design and development process workflows. […]