Author Topic: The worst programming language ever  (Read 8270 times)

0 Members and 1 Guest are viewing this topic.

Offline HobGoblynTopic starter

  • Supporter
  • ****
  • Posts: 520
  • Country: gb
The worst programming language ever
« on: November 02, 2021, 12:06:25 pm »
Just watched this on YouTube, apologies if it’s been posted before.

It’s an hour long, but in my opinion well worth a watch

https://youtu.be/2mnYf7L7Amw
 

Offline Tagli

  • Contributor
  • Posts: 31
  • Country: tr
Re: The worst programming language ever
« Reply #1 on: November 02, 2021, 03:39:39 pm »
Didn't we already have one? -> Malbolge
Gokce Taglioglu
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4033
  • Country: nz
Re: The worst programming language ever
« Reply #2 on: November 02, 2021, 09:48:33 pm »
This guy had both very strange opinions, and a poor command of facts lol.

COBOL is of course very far from being one of the worst programming languages. It's a bit wordy for HelloWorld, but scarcely more so than Java (perhaps he'll get to that). He also says it's from about 40 years ago. Uh .. it's from more than 60 years ago. I had a summer holiday job writing COBOL 40 years ago. These young people, I don't know ....

APL has nothing to do with the lambda calculus. It's an array processing language like R or numpy.

I'm only 5 minutes in ....
 
The following users thanked this post: Tom45, newbrain, retiredfeline

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: The worst programming language ever
« Reply #3 on: November 02, 2021, 09:51:10 pm »
C is almost 50 years old and is probably the more popular and widely used programming language in the world. The is something to be said for old languages that are still in use. No need to reinvent the wheel.
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4033
  • Country: nz
Re: The worst programming language ever
« Reply #4 on: November 02, 2021, 10:58:57 pm »
C is almost 50 years old and is probably the more popular and widely used programming language in the world. The is something to be said for old languages that are still in use. No need to reinvent the wheel.

There's another thread on that topic with ongoing debate...

JavaScript, Python, and Java have a *lot* more people writing code in them than C/C++ do.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14465
  • Country: fr
Re: The worst programming language ever
« Reply #5 on: November 02, 2021, 11:02:06 pm »
I've just taken a quick look and yeah, a lot of what he said is bogus. But there was one fun slide, on which, IIRC, there were two pages of Python code side by side - both sides looked identical visually, but one was claimed to be buggy. Sorry, but yeah, this is unfortunate fun.
 

Offline retiredfeline

  • Frequent Contributor
  • **
  • Posts: 539
  • Country: au
Re: The worst programming language ever
« Reply #6 on: November 02, 2021, 11:20:21 pm »
This guy had both very strange opinions, and a poor command of facts lol.

Thanks for saving me an hour.  :-+

Actually I would probably have watched for a couple of minutes and quit. I figure that any YT clip with a title like The Worst <something> Ever is probably clickbait.  :-DD
« Last Edit: November 03, 2021, 01:30:26 am by retiredfeline »
 

Offline blacksheeplogic

  • Frequent Contributor
  • **
  • Posts: 532
  • Country: nz
Re: The worst programming language ever
« Reply #7 on: November 03, 2021, 01:02:49 am »
COBOL is of course very far from being one of the worst programming languages. It's a bit wordy for HelloWorld

I have done a lot of COBOL in the past and there is nothing wrong with the language. It was used a lot for batch processing and was a pretty efficient language for that. The people commenting about these older languages never worked in that era when systems were as constrained. Most if not all have never written or maintained anything written in the language and probably therefore should not be offering their expert opinion on the language.
 

Offline HobGoblynTopic starter

  • Supporter
  • ****
  • Posts: 520
  • Country: gb
Re: The worst programming language ever
« Reply #8 on: November 03, 2021, 01:16:53 pm »
I took the program as a light hearted pi$$ take of  things people find annoying with various programming languages, his goal to create a programming language to include all of them plus adding others.

I didn't dissect the exact truth of every statement he made, i think you're taking it too seriously,  it was a comical (in my opinion) exercise.

I particularly like the bit referencing hitch hikers guide to the Galaxy where he says

"Only lines needing a goto need a number. They have to start with a number that is a multiple of 42..........and I don't care of your code base is 10 millions lines, it must go 42, 84, 126....
And if two people add one on the end and they both check in at the same time, then you will get a compiler error, a compiler error that will say, 'attempted to reassign a constant', which it will also say for 1/2 a dozen other things that I haven't decided yet, because I don't want to make it too easy"
« Last Edit: November 03, 2021, 01:25:16 pm by HobGoblyn »
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: se
Re: The worst programming language ever
« Reply #9 on: November 03, 2021, 02:49:02 pm »
The take on IBM COBOL is particularly stupid. |O
It's as if he'd included makefiles, compile and link options as part of C.
The three lines before and the three after the source are job control language, not COBOL.

As for APL, it's a powerful language which was born as mathematical shorthand and only after a long time implemented on computers.
Yes, it's maybe easier to create write-only code than in other languages, but it's possible to write good code.
Yes, it's jarring, as is, say, learning a tongue with a different script from your native one.
OTOH, the syntax is simple. Expressions are evaluated right to left. Functions can be monadic or diadic, and concepts like reduction (/) outer product (°.) and inner product (.) are extremely powerful.
I used to use it many years ago for it's natural handling of linear algebra and mostly loopless programming - I strangely find that something in Python reminds me of that.

For both we are talking languages that date 60 years in the past. I think they both deserve admiration - or someone funnier than that guy.
« Last Edit: November 03, 2021, 03:09:12 pm by newbrain »
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline Just_another_Dave

  • Regular Contributor
  • *
  • Posts: 192
  • Country: es
Re: The worst programming language ever
« Reply #10 on: November 03, 2021, 03:02:02 pm »
COBOL is of course very far from being one of the worst programming languages. It's a bit wordy for HelloWorld

I have done a lot of COBOL in the past and there is nothing wrong with the language. It was used a lot for batch processing and was a pretty efficient language for that. The people commenting about these older languages never worked in that era when systems were as constrained. Most if not all have never written or maintained anything written in the language and probably therefore should not be offering their expert opinion on the language.

Additionally, cobol development tools have improved a lot since it was released and the language itself has also evolved a lot (nowadays it even supports object oriented programming)
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: The worst programming language ever
« Reply #11 on: November 03, 2021, 04:28:13 pm »
I played around with COBOL back in '70 so I know it is more than 50 years old.  It came out in 1959, a couple of years after Fortran.

Laugh at the language at your peril.  COBOL programmers are scarce and well paid.  Used your ATM lately?  Chances are the transaction was done in COBOL. Banks are in no hurry to change to something else when they have a language that is perfectly suited to their applications and an extensive code base.

As to Fortran, it is still widely used in the scientific community mostly because there is a gigantic code base.  It was my first and still is my favorite language for number crunching.  Adding 'objects' was probably a mistake (Fortran 2003).  There's a reason there are wrapper approaches for incorporating Fortran code into Python projects.
 

Offline Tomorokoshi

  • Super Contributor
  • ***
  • Posts: 1212
  • Country: us
Re: The worst programming language ever
« Reply #12 on: November 03, 2021, 04:30:01 pm »
Prediction: On April 7, 2064 it will still be possible to buy a variant of the IBM Z System that runs COBOL.
 

Offline MIS42N

  • Frequent Contributor
  • **
  • Posts: 511
  • Country: au
Re: The worst programming language ever
« Reply #13 on: November 04, 2021, 12:07:00 pm »
I didn't watch the video, might do later. My favourite difficult "language" is SUBLEQ. There is only one instruction - SUBLEQ A,B,C - SUBtract A from B and if the result is less than or equal to zero, branch to C. If program and data are allowed to share the same space, certain locations allocated for I/O, a few constants, it is possible to write just about anything. Because there is only one instruction, it is not necessary to specify an action so each instruction is just location, location, location. Maybe a real estate agent designed it.
 
The following users thanked this post: I wanted a rude username

Offline PlainName

  • Super Contributor
  • ***
  • Posts: 6838
  • Country: va
Re: The worst programming language ever
« Reply #14 on: November 04, 2021, 12:11:18 pm »
Quote
I took the program as a light hearted pi$$ take of  things people find annoying with various programming languages, his goal to create a programming language to include all of them plus adding others.

This. Some people take things far too seriously on here!
 
The following users thanked this post: HobGoblyn

Offline Just_another_Dave

  • Regular Contributor
  • *
  • Posts: 192
  • Country: es
Re: The worst programming language ever
« Reply #15 on: November 04, 2021, 12:36:26 pm »
It seems that someone took the time to implement the language designed in the video: https://github.com/BSLang/BS
 
The following users thanked this post: HobGoblyn

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4033
  • Country: nz
Re: The worst programming language ever
« Reply #16 on: November 04, 2021, 01:38:44 pm »
I didn't watch the video, might do later. My favourite difficult "language" is SUBLEQ. There is only one instruction - SUBLEQ A,B,C - SUBtract A from B and if the result is less than or equal to zero, branch to C. If program and data are allowed to share the same space, certain locations allocated for I/O, a few constants, it is possible to write just about anything.

ABSOLUTELY anything. It's Turing-complete.

But very hard to use, and slow.
 
The following users thanked this post: newbrain

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14465
  • Country: fr
Re: The worst programming language ever
« Reply #17 on: November 04, 2021, 05:09:23 pm »
Otherwise, you can try Brainfuck. Better yet, you can switch to Whitespace, the syntax of which is entirely made only of whitespaces, which should appeal to Python adepts. :-DD (OK we can have a laugh here, right?)

https://en.wikipedia.org/wiki/Brainfuck
https://en.wikipedia.org/wiki/Whitespace_(programming_language)
« Last Edit: November 04, 2021, 06:33:45 pm by SiliconWizard »
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14465
  • Country: fr
Re: The worst programming language ever
« Reply #18 on: November 04, 2021, 06:28:38 pm »
It seems that someone took the time to implement the language designed in the video: https://github.com/BSLang/BS

I admit BS is really funny. :-DD
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: The worst programming language ever
« Reply #19 on: November 04, 2021, 06:46:51 pm »
Prediction: On April 7, 2064 it will still be possible to buy a variant of the IBM Z System that runs COBOL.

The same prediction has been made about Fortran
Quote
“We don’t know what language engineers will be coding in the year 2100. However, we do know that it will be called FORTRAN.” — C.A.R. Hoare
The earlier version mentioned the year 2000
Quote
"I don’t know what the language of the year 2000 will look like, but it will be called Fortran." -- C.A.R. Hoare

In any event, Fortran is alive and well after 64 years.  Let's see how long some of the newer languages last.
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14465
  • Country: fr
Re: The worst programming language ever
« Reply #20 on: November 04, 2021, 06:49:54 pm »
FORTRAN is alive and well, but it has been nowhere near the "language of the year" for a number of decades, though. Hoare was right in seeing it would linger on, but was exxagerating its importance a little bit. Predicting the future is pretty impossible.
 

Offline ncot_tech

  • Newbie
  • Posts: 2
  • Country: gb
    • NCoT Tech
Re: The worst programming language ever
« Reply #21 on: November 05, 2021, 02:17:14 pm »
Heh I just received a COBOL book through the mail with the intention of reliving the horror of my A-Levels by trying to write something in COBOL again.

I've not watched the video, but there's far worse languages than COBOL. Javascript, for example ;)
 

Online SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14465
  • Country: fr
Re: The worst programming language ever
« Reply #22 on: November 05, 2021, 06:23:38 pm »
Hum, no. As Bruce showed lately, Javascript is actually a pretty decent language. How and why it's being used may be often questioned, but this is another matter. The language itself is really not bad, and is certainly a modern language.

COBOL is atrocious. As a domain-specific language that has a gigantic code base worldwide and has largely proven to be useful for the domain in question, it's still going strong and will continue in the foreseeable future. But purely as a programming language? Nah. But that's fun anyway - I've read a lot of fun claims about programming languages all over the place, but I think this is the first time I see somone say that JS is far worse than COBOL. ;D
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21674
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: The worst programming language ever
« Reply #23 on: November 06, 2021, 12:54:11 am »
The main critique of programming of course is largely not so much the language (not that bad ones are any help, mind), but the environment in which it's placed.  COBOL is bad, but it's particularly notorious because of its crusty, ancient, mainframe-centric development environment (if you can call that "development").  Dev, deployment, scaling whatever, those are the real problems -- from any language.

It should be no surprise we have all these containers and virtual servers and dependency trees today, because we've always had them, and they've always been bad, they're simply continuing to grow with technology and managing them manually is utterly intractable so we write algorithms to do it instead.

In my opinion, JS is a perfectly usable language, but understand that opinion is based on the limited scope I use it in.  It does tend to be rather verbose; I have four examples of projects in the 1-3 kLOC range, some of which I could probably clean up if I had deeper knowledge of it.  Everything else of mine is short calculators (a few kLOC in total, individuals typically being under 100 lines), or just sitting down for a session at the console.  It sure is handy: it has powerful string and array functions at your fingertips, and is basically only ever an F12 away.

In contrast, I can't imagine how much of a pain a production web or backend service might be -- in JS or otherwise.  Typical served JS is generated, minified and obfuscated, partly to optimize storage size and execution speed, partly for... less transparent reasons.  There are transpilers between many languages, any of which might be used for actual development, over JS; and there are zillions of libraries (implemented in JS again, or integrated into the browser natively, or as webasm or various other trendy things), wherein you incur all the usual dependency-hell problems.  Add to that, proprietary (private) libraries, various web APIs, etc., and you've got plenty of potential for a real mess.

Tim
« Last Edit: November 06, 2021, 01:00:34 am by T3sl4co1l »
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4033
  • Country: nz
Re: The worst programming language ever
« Reply #24 on: November 06, 2021, 02:45:14 am »
Hum, no. As Bruce showed lately, Javascript is actually a pretty decent language. How and why it's being used may be often questioned, but this is another matter. The language itself is really not bad, and is certainly a modern language.

I think the correct way to put it is that Apple, Mozilla, and Google have spent probably hundreds of millions of dollars optimising the heck out of their respective Javascript implementations because web browser performance is super-important, and javascript performance is now such a huge part of it. Despite the lack of type declarations, they manages to figure out (in well-wrtten code) that a particular variable can only ever be a floating point number, or only ever an integer and they compile fast versions of the code with that assumption, and the occasional check to make sure the integer hasn't overflowed -- in which case it branches to a slower (but still compiled) version of the code.

There are a ton of awful mistakes in the design of Javascript:

- if you accidentally write, say "for (i=0; i<10; ++i){...}" and you haven't declared i elsewhere in the function, then it's a GLOBAL in the web page document

- ok, so you can write "for (var i=0; i<10; ++i){...}" and i will only be visible inside the {...}, right? Wrong. It's available everywhere in the function. If you had another "var i" in an enclosing scope in the function then IT'S THE SAME VARIABLE

-  ok, finally, at last, they invented "let". So "for (let i=0; i<10; ++i){...}" works how you'd expect.

JavaScript lets you mix types in expressions, doesn't warn you, and doesn't give you what you expect:

var i = 1;  // ok, it's 1
i = i + "";  // now it's "1"
console.log (i+1); // "11"
console.log(i-1); // 0

var j = "1";
j++; // j is 2
var k = "1";
k += 1; // k is "11"

All these statements evaluate to true

0 == ""
0 == "0"
0 == " \t\r\n "
"0" == false
null == undefined

""  != "0"
false != "false"
false != undefined
false != null

There's a lot more. It's an absolute minefield.

But it runs fast now.

And you write tests, right? Lots of tests.
« Last Edit: November 06, 2021, 02:50:58 am by brucehoult »
 
The following users thanked this post: newbrain, I wanted a rude username


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf