Get the latest tech news

Left to Right Programming


Programs Should Be Valid as They Are Typed

†[The most elegant solution here is Haskell’s map words $ lines text but that breaks all the principles I’m arguing for.] Since the program is always in a somehwat valid state as you type it, your editor is able to guide you towards the Pit of Success. While the Python code in the previous example is still readable, it gets worse as the complexity of the logic increases.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of programs

programs

Photo of right programming

right programming

Related news:

News photo

1945 TV Console Showed Two Programs at Once

News photo

How to Design Programs 2nd Ed (2024)

News photo

The Unreasonable Effectiveness of Fuzzing for Porting Programs