Live data from Hacker News

The English Programming Language

github.com

1–10 of 78 posts

Re: The English Programming Language

#4
As someone who worked on a 35 million loc cobol and jcl system for several years in the late 90's, I don't find this to be funny at all. Cobol was purported to be readable with english language like syntax to make it more understandable. Giving gems such as:

    MULTIPLY TAX-RATE OF STATE(43) BY BALANCE GIVING SALES-TAX-AMOUNT.
Note the period is sigificant.

Re: The English Programming Language

#5
>This is a typical English program that implements the Frost pathfinding algorithm:

although this is one of my favouite programs (or poems), i have never before noticed that it is one quite long poem (or program) terminated by a period - i wonder why Frost did that? possibly a pascal programmer?

Re: The English Programming Language

#6
post #2

> Currently, the only compiler available is Wernicke Well, there’s Inform 7: https://ganelson.github.io/inform-website/ :)

ooh, inform. before you can work out the english grammar for interacting with the game when the game is running, you have to work out how to interact with the english grammar when writing the grame itself. worst software idea ever, in my opinion.

Re: The English Programming Language

#7

As someone who worked on a 35 million loc cobol and jcl system for several years in the late 90's, I don't find this to be funny at all. Cobol was purported to be readable with english language like syntax to make it more understandable. Giving gems such as: MULTIPLY TAX-RATE OF STATE(43) BY BALANCE GIVING SALES-TAX-AMOUNT. Note the period is sigificant.

I have no doubt English like syntax is a terrible idea but this seems like a surprisingly readable example.

Re: The English Programming Language

#8
post #7

As someone who worked on a 35 million loc cobol and jcl system for several years in the late 90's, I don't find this to be funny at all. Cobol was purported to be readable with english language like syntax to make it more understandable. Giving gems such as: MULTIPLY TAX-RATE OF STATE(43) BY BALANCE GIVING SALES-TAX-AMOUNT. Note the period is sigificant.

I have no doubt English like syntax is a terrible idea but this seems like a surprisingly readable example.

Agreed, I rather like this line of code, but I must admit that the C-like version is perhaps better:

    sales_tax_amount = balance * state[42].tax_rate;
(Assuming I've guessed the meaning of the Cobol correctly - perhaps that's the rub.)

(ETA: Added semicolon.)

(ETA2: Fixed critical indexing bug.)

Re: The English Programming Language

#10

As someone who worked on a 35 million loc cobol and jcl system for several years in the late 90's, I don't find this to be funny at all. Cobol was purported to be readable with english language like syntax to make it more understandable. Giving gems such as: MULTIPLY TAX-RATE OF STATE(43) BY BALANCE GIVING SALES-TAX-AMOUNT. Note the period is sigificant.

I hear the successor language is much better.

It's called ADD 1 TO COBOL GIVING COBOL.

Post reply on HN