View Poll Results: Which do you like best?

Voters
14. You may not vote on this poll
  • Symbolic

    13 92.86%
  • Descriptive

    2 14.29%
Multiple Choice Poll.

Thread: Symbolic vs Descriptive

  1. #16
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by lruc View Post
    I disagree. A simple 'end' would suffice rather than 'End Function'. I would also find it easier to type the word out because you wouldn't have to use shift along with an oddly placed symbol.
    Shift or not, oddly placed or not, it's still a little easier to type. But the main reason I prefer symbolic is because it becomes easier to distinguish different types of commands from one another at a quick glance, plus it looks much cleaner.

  2. #17
    Registered User
    Join Date
    Aug 2008
    Location
    Belgrade, Serbia
    Posts
    163
    Simbolic just looks tighter and cleaner as already some said. Besides that, I don't think you can do this with descriptive.
    Vanity of vanities, saith the Preacher, vanity of vanities; all is vanity.
    What profit hath a man of all his labour which he taketh under the sun?
    All the rivers run into the sea; yet the sea is not full; unto the place from whence the rivers come, thither they return again.
    For in much wisdom is much grief: and he that increaseth knowledge increaseth sorrow.

  3. #18
    and the hat of copycat stevesmithx's Avatar
    Join Date
    Sep 2007
    Posts
    587
    I prefer symbolic because it is more compact and succinct and also
    less to type than the descriptive syntax.
    Not everything that can be counted counts, and not everything that counts can be counted
    - Albert Einstein.


    No programming language is perfect. There is not even a single best language; there are only languages well suited or perhaps poorly suited for particular purposes.
    - Herbert Mayer

  4. #19
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Uhhmm... I gonna make a symbolic language then.. xD

    If all keywords begin with an uppercase letter, is it OK?

    Code:
    If(something == True) {
      Console.print("Something is true"); //Console is a class
    } Else {
      gui.messageBox("Oh, something bad happen!"); // gui is a package
    }
    
    For(Var i:Integer=0; i<10; i++) {
      Var c:Char = aString[i];
      If(c == 'X') {
        //Do something
      }
    }
    xP
    Just GET it OFF out my mind!!

  5. #20
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by hauzer View Post
    Simbolic just looks tighter and cleaner as already some said. Besides that, I don't think you can do this with descriptive.
    Yes, you can. Being too verbose can be rather obfuscating as well.

  6. #21
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    Code:
    DECLARE IDENTIFIER SECTION
        HELLO_WORLD AS CHARACTER
    END IDENTIFIER SECTION
    
    DECLARE PROCEDURE SECTION
       PROCEDURE PRINT_HELLO
       BEGIN PROCEDURE
           PRINT HELLO_WORLD
       END PROCEDURE
    END PROCEDURE SECTION
    
    BEGIN
        EXECUTE PROCEDURE PRINT_HELLO
    END
    Not strictly any one language, I've borrowed elements from the likes of Progress, PL/SQL, and Cobol here, this is probably about the most descriptive you can get before getting repetitive in your verbosity .

    I prefer that over the likes of Ruby and Perl which can be terse to the point of being incomprehensible.

    The optimum is somewhere in between, where languages like C++, Java, and Pascal reside.

  7. #22
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    @audinue: sure, making all keywords have initial caps, or all variables uppercase, or whatever might be a good idea to make your parsing simple to begin with.

    But really, it's not too difficult to allow variable and keyword names with similar capitalization. You just have to keep a list of your keywords; for every alphanumeric symbol that looks like a variable or a keyword, you check to see if it's in this list. If it is, well, it's a keyword. If it isn't, it's not.

    [edit] Oh, and I much prefer symbolic languages, as you've put it, like C and C++. BASIC involves too much typing for me.

    But then, I like programming in Perl, sometimes not very legibly, so don't ask me.

    From a parsing perspective, there probably isn't much difference between the two. In the one case, you look for special symbols like "}"; in the other, special tokens (words).

    I agree that the meanings of the different types of symbols doesn't really confuse anyone unless they're really new to the language. [/edit]
    Last edited by dwks; 12-08-2008 at 09:21 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #23
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    I agree that the meanings of the different types of symbols doesn't really confuse anyone unless they're really new to the language.
    or unless they're used for multiple, inconsistent, purposes.
    Having a language use the same symbol for different things depending on placement is confusing.
    That's in fact one big potential disadvantage of operator overloading, it allows language users to introduce such inconsistencies.

  9. #24
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I use mostly C++/C# and Javascript so all the "C-based" languages are more familiar to me. I am also learning (or trying to learn) ruby, which is kind of weird in the way it's structured. To me, Symbolic is more descriptive than descriptive. I don't find Descriptive languages as intuitive as they are made out to be.

  10. #25
    Banned
    Join Date
    Dec 2008
    Posts
    49
    Quote Originally Posted by Elysia View Post
    I do have to agree. C++ is symbolic, as well, so I like symbolic.
    I sometimes wonder if your likes conform to C++ or if C++ conforms to your likes, Elysia. I should seriously hope the latter.

  11. #26
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >I should seriously hope the latter.
    It's not uncommon to find a language you enjoy working with and mold your preferences around it. The end result is the same: you prefer working with that particular language and any similar languages. In fact, it's hard to know what you like without pointing to something that already exists and saying "I like that". I'd be more worried if Elyssia uses only C++ (or a small number of similar languages) to determine preference.

    To answer the original question, I like them both. There aren't sufficient differences to prefer one over the other; the difference between symbolic and descriptive in this case doesn't affect the transparency of the code at all.
    My best code is written with the delete key.

  12. #27
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by MattW View Post
    I sometimes wonder if your likes conform to C++ or if C++ conforms to your likes, Elysia. I should seriously hope the latter.
    To add to that, I have also seen C and done a lot of C++ in a C way, and C is symbolic too.
    I have used VB/VBA, and I am not a fan of either.
    I have lots of Javascript, which is not as good as C++, but still symbolic.
    I have used VBScript, though not a particular fan of it.
    I have done lots of PHP. It's certainly OK, and it's symbolic.
    I have seen and messed with Perl. Not a big fan of it, mostly because it's too symbolic.
    I have also done Managed C++ and C++/CLI, and hugely dislike both of them. Managed C++ was far better with its symbolic usage than C++/CLI which was just horrible.
    I have also used C#, and while I do like the symbolic parts, I hate the descriptive parts where you had to explicitly tell "pass by reference" when you pass something, for example. This is apart from my usual hate for dotNet in general, naturally.
    I have done lots of HTML too (naturally), mostly XHTML, CSS and dynamic HTML. HTML is very descriptive, and so is CSS, but I think they could all be no more than descriptive. Symbolic would not fit these.

    ...And I think that's about it. As you can see, I lean more towards symbolic than descriptive.
    Perhaps it is part of why I like C++ so much. Indeed, it is a part of why I like it. I have looked into some of D, and I was a little turned off by some awkward symbolic syntax.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #28
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Perl is my best friend and my secret lover... I think you should look into it again. Nothing handles string parsing quite as elegantly as Perl.
    Sent from my iPadŽ

  14. #29
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Yes, it does. It's very powerful, but all those symbols for parsing & all that makes me go crazy. That's why it's a little too symbolic for me.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #30
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Something I worried in symbolic languages:

    When we develope open source applications and since most of them still undocumented...

    I just want prevent the user of, say, xxx language using a statement like:
    Code:
    write("Say no to drugs! " + theStr.substr(theStr.indexOf("abc")-1, theStr.length) + parseDouble(...) + ... + "Oh my God!");
    While mean it's a very very ugly code, xD, harder to read, harder to debug, and very unsuitable for open source application

    Yeah, you will find yourself disappointed when reading the source of an open source symbolic language applications, which should not to be like that.

    And yet, a simple statement like:
    Code:
    result /= point.x + ++y * sin(node.angle)
    We need to think twice to understand the code above sometime.

    ... zzz ...

    Will "Code convention" solve this problem, maybe?
    Just GET it OFF out my mind!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 06-01-2009, 07:54 PM
  2. is there a weird rule about symbolic constants?
    By i_can_do_this in forum C Programming
    Replies: 5
    Last Post: 07-10-2006, 07:14 AM
  3. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  4. Going out of scope
    By nickname_changed in forum C++ Programming
    Replies: 9
    Last Post: 10-12-2003, 06:27 PM
  5. anyone ever heard of symbolic programming
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-18-2002, 12:30 PM