topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 3:32 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: If you outlaw programming languages, only outlaws will program...  (Read 4882 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
This is real:  :huh:

https://petitions.wh...counter-our-way-life
WE PETITION THE OBAMA ADMINISTRATION TO:
Outlaw programming languages that threaten the safety of the American people and work counter to our way of life.
...
My specific suggested list of languages to restrict from use, and phase out includes:
Javascript, Ruby, and Java.

I signed.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: If you outlaw programming languages, only outlaws will program...
« Reply #1 on: March 22, 2016, 07:19 AM »
Hummm, C and C++ are more of a threat to the safety of people than any of the three listed languages - given the mix of the domains where those languages are used, the exreme amount of undefined behavior in the languages, and the very few people who can get it right :)
- carpe noctem

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
Re: If you outlaw programming languages, only outlaws will program...
« Reply #2 on: March 22, 2016, 08:33 PM »
Yeah, the premise is pretty much a joke, so signing it is like spitting in the ocean while wearing a clown suit.  As far as his hit list is concerned, Java is not high on my list of favorites, Ruby I find interesting but feels like a re-invention of Python, and truth be told, I can't say I like Javascript at all (says me after my 3rd attempt to learn JS, only to be frustrated and distracted).  I'll probably eventually end up learning it if I just knuckle down and put my mind to it, but I always find myself asking "If Javascript is so cool, why do people keep feeling the need to re-invent it every 6 months?"

* Edvard waits for webassembly to mature, and prays for a pascal front-end  :P

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: If you outlaw programming languages, only outlaws will program...
« Reply #3 on: March 23, 2016, 09:56 PM »
<rant>
Yeah, between "It's a joke" and "The author is absolutely bonkers", I used Occam's Razor and went with joke :)

I still find it worth to reflect on, though. And while C++ is (still) my all-time favorite, I'm pretty convinced that C and C++ are the two most dangerous widely-used languages, and in ways that leads to real-world problems. Java is pretty safe as a language, Ruby has a few nasties, and JavaScript and PHP has a bunch of issues (that are different from the issues of C/C++ - it's mostly about making it easy to write incorrect logic rather than summoning nasal demons).

Once you include implementations of the languages, the picture changes a bit. Once you include the standard libraries, it changes a lot (Java has some really funky attack vectors, deserilization attacks being oretty popular), and once you puddle standard frameworks on top it the game changes again, leaving PHP and Ruby pretty high on the exploitability lists (hello wordpress, hello rails).

But then again, expoitability isn't directly equatable to danger, one should probably also take severity of the system into account. "Plane falling" down is usually worse than "blog being hacked".

So if one really wanted to ban specific languages, one would have to think long and hard about what and why and how - and whether some languages are fine, whereas we might want to purge a ton of their frameworks. I'm pretty sure PHP should be purged. I'm not sure whether any new code should be written in C/C++, but I'm also not sure whether we have languages that can fully replace them for everything.

Oh, and I wish there was something else than JavaScript for the web. The language and stdlib has a bunch of flaws - that it's relatively small is the only reason it's not on the 100%-purge-with-fire list. At the same time the stdlib is a bit too small, though, leading to zillions of monkeys reinventing (broken) wheels. And the DOM and all the related browserstuff is too big and messed up.
</rant>
- carpe noctem
« Last Edit: March 23, 2016, 10:02 PM by f0dder »

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,022
    • View Profile
    • Donate to Member
Re: If you outlaw programming languages, only outlaws will program...
« Reply #4 on: March 24, 2016, 12:17 AM »
Oh, and I wish there was something else than JavaScript for the web.

https://www.donation...ndex.php?topic=41135

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: If you outlaw programming languages, only outlaws will program...
« Reply #5 on: March 24, 2016, 06:44 AM »
Oh, and I wish there was something else than JavaScript for the web.
https://www.donation...ndex.php?topic=41135
Yeah but no - longer discussion, and I have a bus to catch :)
- carpe noctem