Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

cancel ×

7 comments

Unfortunately... (1)

Bill Dog (726542) | more than 6 years ago | (#23110008)

...languages like C and esp. C++ are ones that you shouldn't go into unless 1) you're an above-average programmer and 2) you're already proficient in it!

Ada sounds great, for what it's used for. And also for one thing it's not: Voting machine software should be written it -- it would be worth the expense, to do it once, and "prove it correct".

Re:Unfortunately... (1)

Chacham (981) | more than 6 years ago | (#23112516)

Interesting.

Thanx for the comment.

Re:Unfortunately... (1)

Marxist Hacker 42 (638312) | more than 6 years ago | (#23112824)

Blog entry gone. But I agree with Bill Dog above. The main difference between a medium level language like C (this has been corrected *somewhat* with C#, but you can still write unmanaged code in C#) and a high level preemptive multitasking language like ADA is the ability to directly address memory.

For an average programmer, this can be a major liability- pointer math is not for the faint of heart or the beginner, and if you can't "see" the heap in your mind it's darn easy to overwrite something important with a buffer overflow.

Such things are impossible in a strongly typed higher level language- assuming that the compiler has no built-in buffer overruns.

Re:Unfortunately... (1)

Chacham (981) | more than 6 years ago | (#23114490)

It's still there. Maybe it's just me. :)

Thanx for the comments.

Re:Unfortunately... (1)

smitty_one_each (243267) | more than 6 years ago | (#23115430)

For an average programmer, this can be a major liability- pointer math is not for the faint of heart or the beginner, and if you can't "see" the heap in your mind it's darn easy to overwrite something important with a buffer overflow.
So where is the manager saying "cut the cute crap"?
Where are the unit tests that bludgeon the 3rd-party library to shake out the "cute crap"?
Arguing against C is like arguing against any tool; it's really the user for the most part, no?

Re:Unfortunately... (1)

Marxist Hacker 42 (638312) | more than 6 years ago | (#23119474)

Which is why the original saying had "the average programmer"- in the hands of an expert, C is perfectly fine.

And for me- I like the cute crap, and would want somebody on my team who can do the cute crap correctly.

Re:Unfortunately... (1)

huckda (398277) | more than 6 years ago | (#23194844)

my crap is cute, but I can't code worth shit
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...