Re: Php invented by a former DECcie ?



Arne Vajhøj wrote:
Simon Clubley wrote:
On 2008-04-08, Arne Vajhøj <arne@xxxxxxxxxx> wrote:
Simon Clubley wrote:
AIUI, it's not so much the fact that it's a easy to use language for
beginners that's the problem, but the fact that it's a easy to use
language with security tacked on afterwards that's the problem.
Security is not a feature in programming languages. Security depends
on how the code is written.


Strictly speaking, you are correct.

However, I would argue that design decisions within the programming
language can help with how secure that code is by default.

> For example, looking at traditional languages, I would suggest that,
> for programmers of equal capability, code written in Ada is more likely
> to be secure than code written in C.

I guess you are more talking about robustness than about security.

A language like Ada prevents various array index out of bounds
and wild pointers problems resulting in garbage data being
read, data being overwritten or crashes.

But PHP has none of those problems !

(the dynamically typed characteristics of PHP then creates
new types of potential programming bugs, but they are difficult
to compare with C)

Arne




ISTR that ADA is also strongly typed. It is not easy to store an int into a float. It can be done but you have to first explain to the compiler yes, I really, really, mean that. If a function takes two arguments, you had better supply exactly two. And so on.

It makes most of the most common screwups extremely difficult. You can still write bad code in Ada but you really have to work at it. I have seen exactly one shop that used it! I did a little little work for them
fourteen or fifteen years ago; installing some software

.



Relevant Pages

  • Re: How come Ada isnt more popular?
    ... I think that Ada *and* Haskell will make an interesting ... I wonder why one wouldn't just use Monads in most cases? ... a systems programming language. ... important reason not to ignore functional programming is [... ...
    (comp.lang.ada)
  • Re: 7E7 Flight Controls Electronics
    ... > Until the next language... ... community is making programming language selection based on a full ... Ada is still the best decision. ... Java is the right choice. ...
    (comp.lang.ada)
  • RE: Career Choice
    ... Almost all PD and SO's have volunteer programs. ... now finishing up my Bachlers degree in Network Security. ... > you how much programming experience helps. ... My current studies have only one programming language course ...
    (Security-Basics)
  • Re: 71% Say Finding New Energy Sources More Important than Conservation
    ... Most of the drive to define was for a test programming language, because each tester had it's own language and the engineer would have to re-write the program every time the testor changed. ... The only reason it was used was because people saw that it would have a longer life time than ADA. ... My group at Stanford switched to Java as their language of choice after giving up on C++ as too flawed to use. ...
    (soc.retirement)
  • Re: 71% Say Finding New Energy Sources More Important than Conservation
    ... But although it is similar to network companies to the extent that both control a resource, there is a difference. ... there have been numerous attempts by the government to develop both OS and programming languages which pretty much all failed. ... The most notorious was the language ADA which I guess is still required for software development on military contracts. ...
    (soc.retirement)