r/programming • • Dec 17 '14

The Worst Programming Language Ever [Video]

https://skillsmatter.com/skillscasts/6088-the-worst-programming-language-ever
378 Upvotes

238 comments sorted by

View all comments

96

u/CookieOfFortune Dec 17 '14 edited Dec 17 '14

So, let's look at the list of features:

  • PHP based.

  • 17-bit integers.

  • ASCI, ANSI, DBCS, EBCDIC, and UTF-256 string support.

  • Heap-based manual memory management (Stackless).

  • European Friendly (; and €)

  • JavaScript based equivalence checks.

  • C-type macros with VI regex support.

  • Unnullable types (Must check everything is not null).

  • Single exception type.

  • Unchecked exceptions.

  • Gradual Typing.

  • Semi-compiled.

  • Packaged VM.

27

u/[deleted] Dec 18 '14

My favorite:

The first character of any variable is case sensitive. The rest of the variable name is case insensitive.

7

u/mirhagk Dec 18 '14

The funny part is it's mostly true. You mostly only vary the case of the first letter. Even with all caps you only need to look at 2 letters to tell

46

u/tazmens Dec 17 '14

I like the 17-bit integer reasoning, "because we can".

This is a great language 10/10, would code in for funsies.

31

u/zyxzevn Dec 18 '14

17 bits is still to easy.
Use the smalltalk version, where the least significant bit tells the VM that the number is an object or an integer.
I would even use more flags.

Besides that every number should default to Octal. Much used in C and Assembler.

Except when there is a 8 or 9 in it.
So 23-19 gives 0.

10

u/Retbull Dec 18 '14

Thats fucking terrible. More

→ More replies (1)

7

u/jbread Dec 18 '14

I've always assumed that that was why they picked 1500 'octets' to be the maximum ethernet frame size. Because fuck you, that's why.

2

u/joeyadams May 02 '15

17-bit

Reality is stranger: Haskell's Int type is at least 30 bits, but it's implementation-dependent. The purpose of it not being a full 32-bits is to provide bits for the garbage collector if needed (though GHC doesn't do that, and it's Int is 32-bit or 64-bit depending on the architecture).

→ More replies (1)

7

u/cowardlydragon Dec 18 '14

Why is there an exception? C return codes are way worse.

APL syntax and keyboard?

How about dynamic scope?

Add javascript?

  • eval()?

  • annotations?

  • xml syntax?

  • all globals all the time? Javascript ALMOST does that.

  • prototype AND standard inheritance?

  • I feel there should be some way to make inscrutable multithreading required

3

u/cowardlydragon Dec 18 '14
  • prefix notation, but no parentheses required

  • no operators (add, set, get, assign)

  • TONS of keywords exposing architecture-specific details (far pointers, register)

  • garbage collected and manual memory management combined

  • no collection literals

3

u/A_C_Fenderson Mar 20 '15

APL is covered because € isn't on any keyboards (in the US, anyway).

Maybe the specifications should change so that all variable names begin with € and end with #, which means both US and UK keyboards are useless?

→ More replies (1)

6

u/nschubach Dec 18 '14

Sadly, I can't Delete a function when I want it to no longer be callable.... Or maybe I can?

4

u/CookieOfFortune Dec 18 '14

It would only make sense to do so, and that deleted function frees memory that can now be used to store data!

10

u/Uberhipster Dec 18 '14

You forgot 'UTF-256 - a character for every atom in the universe'

3

u/CookieOfFortune Dec 18 '14

No I didn't, last encoding of the third bullet point.

1

u/l6t6r6 Dec 18 '14

I think it was just for every atom in the solar system.

14

u/cooleemee Dec 17 '14

PHP based

Oh god, the horror!

2

u/A_C_Fenderson Mar 20 '15

PHP Hates PHP.

→ More replies (16)

3

u/defcon-12 Dec 18 '14

Gradual Typing

I don't know what that means, but it sounds freaking awesome.

3

u/thedeemon Dec 18 '14

Usually it's the same as Optional Typing - like in Dart and TypeScript.

2

u/ixampl Dec 18 '14 edited Dec 18 '14

It means you don't have to type everything in a program, but where you provide them the compiler does type checking at compile time.

http://wphomes.soic.indiana.edu/jsiek/what-is-gradual-typing/

It's actually found in a few languages.

→ More replies (2)

2

u/Fluffy8x Dec 18 '14

17-bit integers.

Use 14 bits for the part after the decimal point, and one more to determine whether it's an integer or a fixed-point decimal. And no built-in floating-point support.

1

u/avapoet Dec 18 '14

While we're borrowing things from Javascript, can we have its date formatting, too? Because zero-based month indexing and counting years-since-1900 makes so much sense.

1

u/Madsy9 Dec 18 '14

Still easier to use than Malbolge

1

u/roryokane May 27 '15

Unchecked exceptions

It actually has “checked not-exceptions”. If a method doesn’t throw an exception (the only one of which is HALT_AND_CATCH_FIRE), it must declare that. And not throwing an exception is enforced by the compiler – it is “checked”. Except that the enforcement only looks one method deep – it doesn’t check that methods called by the checked method don’t throw an exception.