Computer
Computer Diary
    RepRap


    "Our greatest fear is not that we are inadequate, but that we are powerful beyond measure."

    Marianne Williamson
    from her book "A Return To Love"

    Here my little rant and praise place, where the daily experiences of my programming work are expressed. I publish them with the idea that others might find it useful and benefit from it.

    Tag <Objective-C>

    Check also other posts with other tags.

    2009/03/06
    Verbosity of Programming Languages
    last edited 2009/03/24 07:37 (*)

    Question: How do I concatenate two strings together?

    Answer by Objective-C:

    NSString *string1 = @"Alpha";
    NSString *string2 = @"Omega";
    string1 = [string1 stringByAppendingString:string2];
    

    Answer by Perl:

    my $string1 = 'Alpha';
    my $string2 = 'Beta';
    $string1 .= $string2;
    
    and now I ask you, what looks easier and more intuitive? Right, it's definitly Objective-C!



    Check also other posts with other tags.


    [ post new entry ] (only for administators)

    Title:

    Text:

    Tags: (separated by commas)

    Date (optional):

    Password:
     


    .:.




    Copyright 2007-2016, 2020-2024 © by René K. Müller <spiritdude@gmail.com>
    Illustrations and graphics made with Inkscape, GIMP and Tgif