Can SQL replace all programming languages?

Discussion in 'General Software' started by propro, Mar 1, 2017.

  1. propro

    propro New Member

    Messages:
    17
    All programming languages do 4 things only -
    create, insert, update, delete.
     
  2. TrainTrackHack

    TrainTrackHack VIP Member

    Messages:
    3,672
    Didn't you ask this question before?

    Anyway, your 4-things-only statement is false. Consider a 3D game. Does rendering the scene count as creating, inserting, updating or deleting? How do you fit a render loop or a physics simulation into the create-insert-update-delete paradigm/shoe? How about GUI? Does handling a button click count as creating, inserting, updating or deleting? There is a bunch of problems which can't be sensibly expressed in terms of those four things. SQL is very much a domain-specific language, created for a specific purpose, and it makes no sense to think of most programs in terms of database queries and modifications.

    You would not go to space on a mobility scooter, and you would not replace all programming languages with SQL.
     
  3. Cromewell

    Cromewell Administrator Staff Member

    Messages:
    15,345
    Technically...yes it does :p

    Create 3d object
    Insert it to scene
    update it to be rotated
    delete it when done

    That said, your answer isn't wrong :D

    SQL is an extremely high level language that wouldn't be used to do anything other than talk to a database.
     
  4. Agent Smith

    Agent Smith Well-Known Member

    Messages:
    3,324
    Can you use a Windows registry to program games? LOL! The registry is a database just as SQL is a database format.
     
  5. Cromewell

    Cromewell Administrator Staff Member

    Messages:
    15,345
    Uhhh? I think we might have a terminology mismatch. SQL is a like english language for manipulating data in relational databases.

    A database format might be something like csv.
     
  6. beers

    beers Moderator Staff Member

    Messages:
    8,290
    INSERT clue INTO user;
     
    Darren and Cromewell like this.
  7. Agent Smith

    Agent Smith Well-Known Member

    Messages:
    3,324

    Where would the Internet be without semantics?
     
  8. propro

    propro New Member

    Messages:
    17
    We can make it happen.
     
  9. TrainTrackHack

    TrainTrackHack VIP Member

    Messages:
    3,672
    We don't want to

    nobody does

    Even in its own domain, people are opting for things like LINQ, so it looks like "all programming languages" are seriously eyeing SQL's turf, not the other way around.
     
  10. Cromewell

    Cromewell Administrator Staff Member

    Messages:
    15,345
    We really can't. There's a reason that it hasn't been used outside of databases since it was created. It's ill suited for anything else. We have better language choices.
     
    beers likes this.

Share This Page