Page 5 of 8 FirstFirst ... 34567 ... LastLast
Results 61 to 75 of 113

Thread: So you want to be a computer programmer when you grow up?

  1. #61
    Join Date
    4th December 2006 - 13:45
    Bike
    2008 KTM SuperDuke R
    Location
    Brisbane, Queensland
    Posts
    1,010
    Quote Originally Posted by Tank View Post
    or Finsbury Park mosque?
    *snicker* Anyway, isn't it hard to find a plane you can fly with one eye and one hand?

    As for coding: whilst C++ can be an elegant language, I've never failed to understand why they couldn't include a string variable type. You've got half a million different types for numbers, but nothing that can handle text without having to declare arrays and all the shit that goes along with that.

    Give me VB any day.

  2. #62
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Sanx View Post
    As for coding: whilst C++ can be an elegant language, I've never failed to understand why they couldn't include a string variable type.
    (I assume 'never failed to understand...' was an unintentional double negative?)

    C++ does. It's called std::string, and it's part of the library described by the language standard. It's as good as a basic type.

    C doesn't, because the design philosophy of C was to abstract fundamental computer operations without hiding algorithmic complexity.

    Almost any operation on a string requires processing time in the order of the length of the string rather than the constant time required for numeric operations, so forcing C programmers to be explicit about their handling of strings in memory was a conscious performance-driven decision.

    Good old C, eh? All the power of assembly language combined with all the ease of use of assembly language.

    Quote Originally Posted by Sanx View Post
    Give me VB any day.
    Try using Visual Basic to code a software driver for a CompactFlash socket that some bastard of an electronic engineer has hung off the data bus of a Mitubishi M16C processor.

    Sometimes you really do need a language that simply and elegantly gives access to the basic operations that a CPU can perform, and nothing more.
    kiwibiker is full of love, an disrespect.
    - mikey

  3. #63
    Join Date
    18th July 2007 - 18:16
    Bike
    A naked monster - just like me.
    Location
    Just outside your window
    Posts
    1,923
    pfffft you talk tough - but everyone knows real men program using LOGO.

    http://en.wikipedia.org/wiki/Logo_(p...ming_language)

  4. #64
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    Quote Originally Posted by Sanx View Post
    *snicker* Anyway, isn't it hard to find a plane you can fly with one eye and one hand?

    As for coding: whilst C++ can be an elegant language, I've never failed to understand why they couldn't include a string variable type. You've got half a million different types for numbers, but nothing that can handle text without having to declare arrays and all the shit that goes along with that.

    Give me VB any day.
    C++ does . C doesn't because there is no such datatype as a "string". It's just an array of char types (and char is really just a small int). Those languages such as VB Java and C++ that pretend to have a string type really just define a very large array of chars.

    That's why C (and Cobol! ) are good. What you see is exactly what you get.
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

  5. #65
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    Quote Originally Posted by Tank View Post
    pfffft you talk tough - but everyone knows real men program using LOGO.

    http://en.wikipedia.org/wiki/Logo_(programming_language)
    Arrghh. LISP (Lotsa Irritating Silly Parentheses). Fetch garlic crosses and cold iron. And yes, I have programmed in LISP. I still wake up sometimes screaming at the memory.
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

  6. #66
    Join Date
    18th July 2007 - 18:16
    Bike
    A naked monster - just like me.
    Location
    Just outside your window
    Posts
    1,923
    Quote Originally Posted by Ixion View Post
    Arrghh. LISP (Lotsa Irritating Silly Parentheses). Fetch garlic crosses and cold iron. And yes, I have programmed in LISP. I still wake up sometimes screaming at the memory.
    I used to think KB was where all the cool kids hung out - Now I find its full of middle aged nerds like me. How terribly disappointing .


    (p/t of course)

  7. #67
    Join Date
    29th May 2006 - 22:14
    Bike
    2014 MV Agusta Brutale 800
    Location
    Cambridge, Waikato
    Posts
    252
    Quote Originally Posted by Ixion View Post
    C++ does . C doesn't because there is no such datatype as a "string". It's just an array of char types (and char is really just a small int). Those languages such as VB Java and C++ that pretend to have a string type really just define a very large array of chars.

    That's why C (and Cobol! ) are good. What you see is exactly what you get.
    I doubt that std::string does that, more likely it just adds "new" bits as required. oh and lets not overlook the irritating little terminating zero shall we with char type. And std::string is v v fast even compared with C char pointer handling.
    "Old" cobol was just a file processing language, optimised for reading and writing files. Hardly low level, and not anything like C, maybe they changed it? Just remember those packed decimal fields!! aaarrgghh.

    Note to myself, avoid turning this into an "I've been everywhere man" thread.
    Get your motor runnin, head out on the Highway ....

  8. #68
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by forkoil View Post
    I doubt that std::string does that, more likely it just adds "new" bits as required. oh and lets not overlook the irritating little terminating zero shall we with char type. And std::string is v v fast even compared with C char pointer handling.
    std::string has to store its data as a contiguous null-terminated array to support its c_str() member function.

    What string operations do you think are faster with std::string? I can't think of any.

    Edit: Oh, right, sorry, you weren't saying it was faster, just that it wasn't slower.
    kiwibiker is full of love, an disrespect.
    - mikey

  9. #69
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    Quote Originally Posted by forkoil View Post
    I doubt that std::string does that, more likely it just adds "new" bits as required. oh and lets not overlook the irritating little terminating zero shall we with char type. And std::string is v v fast even compared with C char pointer handling.
    "Old" cobol was just a file processing language, optimised for reading and writing files. Hardly low level, and not anything like C, maybe they changed it? Just remember those packed decimal fields!! aaarrgghh.

    Note to myself, avoid turning this into an "I've been everywhere man" thread.
    Cobol is still evolving. It is far more than a file processing language. Cobol still contributes more lines of code to business applications than any other language.

    Modern Cobol also runs under the .NET Framework, BTW.
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

  10. #70
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Ixion View Post
    Cobol still contributes more lines of code to business applications than any other language.
    I call bullshit.

    What information are you basing that assertion on?
    kiwibiker is full of love, an disrespect.
    - mikey

  11. #71
    Join Date
    29th May 2006 - 22:14
    Bike
    2014 MV Agusta Brutale 800
    Location
    Cambridge, Waikato
    Posts
    252
    Quote Originally Posted by Ixion View Post
    Cobol is still evolving. It is far more than a file processing language. Cobol still contributes more lines of code to business applications than any other language.

    Modern Cobol also runs under the .NET Framework, BTW.
    lines of source or generated
    Get your motor runnin, head out on the Highway ....

  12. #72
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    Quote Originally Posted by jrandom View Post
    I call bullshit.

    What information are you basing that assertion on?
    Gartner Group research. But don't ask me to find it now. Note also, the careful restriction to "business application". There are unthinkable amounts of Cobol code still running in the big US bank and insurance worlds.

    Just think back to how much demand there was for Cobol programmers leading up to Y2K. Headhunters wouldn't have been paying megabucks an hour to lure oild programmers out of retirement unless there was a shit load of code to be inspected.

    EDIT : 75% of the world's business data processed by Cobol according to Gartner - ref here
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

  13. #73
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Ixion View Post
    Gartner Group research. But don't ask me to find it now. Note also, the careful restriction to "business application".
    I did, but, personally, I'd consider any non-OS software used to facilitate operations in a corporate environment to be a 'business application'.

    That includes Word, Excel, Oracle, SAP, SolidWorks, SPICE, PhotoShop, and every horrible little line of Java or Visual Basic that's ever been written to glue a front end to a CRM database.

    Quote Originally Posted by Ixion View Post
    There are unthinkable amounts of Cobol code still running in the big US bank and insurance worlds.
    Define 'unthinkable'.

    I would be quite surprised if any bank is running COBOL software with a total source linecount that exceeds that of Microsoft Office (which is probably in the order of 50 million lines or thereabouts).

    Quote Originally Posted by Ixion View Post
    75% of the world's business data processed by Cobol...
    Oh, I can believe that, but that has nothing to do with your earlier statement relating to the size of the software involved.
    kiwibiker is full of love, an disrespect.
    - mikey

  14. #74
    Join Date
    26th February 2005 - 15:10
    Bike
    Ubrfarter V Klunkn,ffwabbit,Petal,phoebe
    Location
    In the cave of Adullam
    Posts
    13,624
    Quote Originally Posted by jrandom View Post
    I did, but, personally, I'd consider any non-OS software used to facilitate operations in a corporate environment to be a 'business application'.

    That includes Word, Excel, Oracle, SAP, SolidWorks, SPICE, PhotoShop, and every horrible little line of Java or Visual Basic that's ever been written to glue a front end to a CRM database.
    I would disagree with that definition. That would make anything at all a "business application". Photoshop is most certainly not a business application, for instance. Nor is email. A business application is one which handles or processes business transactions, and is designed for that purpose. Yes , you could write an accounting package in Excel (or even Word, I've seen it done). That doesn't make ewither of them a business application.

    A good rule of thumb, if it doesn't use a 'proper' database (not MS Access or such like crap) it *probably* isn't a business application. databases rule, DBAs are the true gods!

    Define 'unthinkable'.

    I would be quite surprised if any bank is running COBOL software with a total source linecount that exceeds that of Microsoft Office (which is probably in the order of 50 million lines or thereabouts).
    180 to 200 billion lines of Cobol code according to the same source. WAY more than Word, even if you count word as a business application .

    I can say from experience that any banking application in Cobol will indeed run to millions of lines of code. And there is only one Word code base. Whereas Cobol is mostly bespoke or heavily customised code, so every bank has a different codebase (f'instance - not just banks of course)
    Quote Originally Posted by skidmark
    This world has lost it's drive, everybody just wants to fit in the be the norm as it were.
    Quote Originally Posted by Phil Vincent
    The manufacturers go to a lot of trouble to find out what the average rider prefers, because the maker who guesses closest to the average preference gets the largest sales. But the average rider is mainly interested in silly (as opposed to useful) “goodies” to try to kid the public that he is riding a racer

  15. #75
    Join Date
    3rd July 2003 - 12:00
    Bike
    Scorpio, XL1200N
    Location
    forests of azure
    Posts
    9,398
    Quote Originally Posted by Ixion View Post
    180 to 200 billion lines of Cobol code according to the same source. WAY more than Word, even if you count word as a business application .

    I can say from experience that any banking application in Cobol will indeed run to millions of lines of code. And there is only one Word code base. Whereas Cobol is mostly bespoke or heavily customised code, so every bank has a different codebase (f'instance - not just banks of course)
    My bullshit detector wavers and falters; you paint a truly horrible and disturbingly believable picture.

    I shall now shut up, lest it be indisputably proven true, and I begin to wake in the night to demonic visions of:

    IDENTIFICATION DIVISION.
    PROGRAM-ID. HELLO-WORLD.
    PROCEDURE DIVISION.
    MAIN.
    DISPLAY 'Hello, world.'.
    STOP RUN.

    The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense".
    - Edsger Dijkstra
    kiwibiker is full of love, an disrespect.
    - mikey

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •