Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Evolution of a Sepples Programmer

Name: Anonymous 2008-06-16 13:42

Learned basic C++ from an inadequate tutorial.

#include <iostream.h>
using namespace std; // thanks, joe
void main(int argc, char** argv) {
    cout << "Hello, world!" << endl;
}


Learned basic C++ from a slightly better tutorial.

#include <iostream>
using namespace std;
int main(int argc, char* argv[]) {
    cout << "Hello, world!" << endl;
    return 0;
}


Learned about namespace pollution.

#include <iostream>
int main(int argc, char* argv[]) {
    std::cout << "Hello, world!" << std::endl;
    return 0;
}


Learned about classes.

#include <iostream>
#include <string.h>
class Hello {
private:
    char* msg;
public:
    Hello() {
        this->msg = strdup("Hello, world!");
    }
    ~Hello() {
        delete this->msg;
    }
    char* hello() {
        return this->msg;
    }
};
int main(int argc, char* argv[]) {
    Hello* hello = new Hello();
    std::cout << hello->hello() << std::endl;
    delete hello;
    return 0;
}


Learned about the C++ string container.

#include <iostream>
#include <string>
class Hello {
private:
    std::string msg;
public:
    Hello() {
        this->msg = "Hello, world!";
    }
    std::string hello() {
        return this->msg;
    }
};
int main(int argc, char* argv[]) {
    Hello hello;
    std::cout << hello.hello() << std::endl;
    return 0;
}


Found out about the STL.

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/ios_base.h: In copy constructor ‘std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)’:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/ios_base.h:783: error: ‘std::ios_base::ios_base(const std::ios_base&)’ is private
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/iosfwd:52: error: within this context
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/iosfwd: In copy constructor ‘std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const std::basic_ostream<char, std::char_traits<char> >&)’:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/iosfwd:61: note: synthesized method ‘std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)’ first required here
test.cpp: In function ‘int main(int, char**)’:
test.cpp:7: note: synthesized method ‘std::basic_ostream<char, std::char_traits<char> >::basic_ostream(const std::basic_ostream<char, std::char_traits<char> >&)’ first required here
test.cpp:7: error:   initializing argument 3 of ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Funct = std::basic_ostream<char, std::char_traits<char> >]’
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/stl_algo.h: In function ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, _Funct = std::basic_ostream<char, std::char_traits<char> >]’:
test.cpp:7:   instantiated from here
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.3.1/../../../../include/c++/4.3.1/bits/stl_algo.h:3791: error: no match for call to ‘(std::basic_ostream<char, std::char_traits<char> >) (char&)’


Mastered the basic containers of the STL.

#include <iostream>
#include <string>
#include <vector>
int main(int argc, char* argv[]) {
    std::string hello = "Hello, world!";
    std::vector<char> v;
    for (unsigned int j = 0; j < hello.length(); ++j) {
        v.push_back(hello[j]);
    }
    std::vector<char>::iterator i;
    for (i = v.begin(); i != v.end(); ++i) {
        std::cout << *i;
    }
    std::cout << std::endl;
    return 0;
}


Mastered the STL.

#include <iostream>
#include <string>
#include <algorithm>
class printc { public: void operator() (char c) { std::cout << c; } };
int main(int argc, char* argv[]) {
    std::string hello = "Hello, world!";
    std::for_each(hello.begin(), hello.end(), printc());
    std::cout << std::endl;
    return 0;
}


Read the C++ FAQ Lite and realized C++ mastery is impossible.

#include <iostream>
int main(int argc, char* argv[]) {
    std::cout << "Hello, world!" << std::endl;
    return 0;
}


Read the C++ FQA Lite.

#include <stdio.h>
int main(int argc, char* argv[]) {
    printf("Hello, world!\n");
    return 0;
}


Heard of 4chan and wound up in /b/.

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE


Found a replacement for /b/ after finding it overrun by ``cancer'' and ``newfags.''

One word, the forced indentation of code.  Thread over.  Also, read SICP!

Read SICP after months of telling people to read SICP.

(display "Hello, world!")
(newline)


Achieved Satori after re-reading SICP every day for many years.

void main() { puts("Hello, world!"); }

Name: Anonymous 2008-06-19 7:10

/r/ The Evolution of a Java Programmer

Name: Anonymous 2008-06-19 7:15

C++ is such a 1990s fad.

Name: Anonymous 2008-06-19 7:29

>>42
Except C++ wasn't invented in 1990s

Name: Anonymous 2008-06-19 7:56

>>43
No, but it became most popular during the early 90s.

Name: Anonymous 2008-06-19 9:13

>>44
no, lrn2progmaming

Name: Anonymous 2008-06-19 9:15

Name: Anonymous 2008-06-19 9:18

>>46
Java?

Name: Anonymous 2008-06-19 9:19

>>45
Yes it did.

Name: Anonymous 2008-06-19 10:56

>>35,41
To do that one would have to know Java!  Surely a feat no sane man is capable of.

Name: Anonymous 2008-06-19 12:39

>>49
50get presented by JAVA!

Name: Anonymous 2008-06-20 7:45

The Evolution of a QBasic Programmer

Name: Anonymous 2008-06-20 7:57

Name: Anonymous 2008-06-20 8:03

Name: Anonymous 2008-06-21 7:13

                           __
                       , ' ´ ̄´     `丶、
                     /   rヘ=,,≠==、、  ` 、
                     〃l  ハl`ヽ       )   ヽ
                     リ l l ゝ      ,,,,从 l  l
                      (l∨ ⌒ヽ   ´   〃 }  l
                       l |   r ‐ - 、⌒ヽ/ l) │
                        ,'| |   l   /   / /   |
                      ,'.| | \` ー '  _ / /    !
         _          , -| | - l ` ー < / /    |
 r———-、-''、 ` ー--‐'' ̄`ー''´  |.│∠  /  / / ヽ   !
   ̄ { `   ヾ }           { | /≠ミ/  ,'  ,'    l  |
    ヾ____ノ ノ    ` ー-____.l | l   /  / /    │ │
        ` ー----‐‐ ̄   / / | l  /   ./ /    │  .l
                     / /  ! l , '   / / {    |  ヽ
                 / /   | l_ . //  ! /|     |   ヽ
                   / /   / ̄ ` ーl   !ー− ヽ  |   ヽ
                / /  /三    i  ! }       }  ヽ ヽ
               / , '  /ーrォrォ - |   |/      l   ヽ ヽ
              /   l  /   | |│| │  !ー┬〜' ´ ヽ   ヽ ヽ
             /  │ / | .│| .| !  ! l |   ヽ    ヽ   ヽ \
            /    | ,'  l  | | | |  | l│   ヽ     ヽ   ヽ. \
           /     !/   !.  | | │|  l ! !     ヽ     ヽ   ヽ  \
          /     /   /  `'  `'   ! .l ゝ     ヽ     ヽ    \ \
            /    /   ./         ヾl       ヽ     ヽ     ヽ  \
        /     \                      \     ヽ      \  \

Name: Anonymous 2008-06-21 7:14

                           __
                       , ' ´ ̄´     `丶、
                     /   rヘ=,,≠==、、  ` 、
                     〃l  ハl`ヽ       )   ヽ
                     リ l l ゝ      ,,,,从 l  l
                      (l∨ ⌒ヽ   ´   〃 }  l
                       l |   r ‐ - 、⌒ヽ/ l) │
                        ,'| |   l   /   / /   |
                      ,'.| | \` ー '  _ / /    !
         _          , -| | - l ` ー < / /    |
 r———-、-''、 ` ー--‐'' ̄`ー''´  |.│∠  /  / / ヽ   !
   ̄ { `   ヾ }           { | /≠ミ/  ,'  ,'    l  |
    ヾ____ノ ノ    ` ー-____.l | l   /  / /    │ │
        ` ー----‐‐ ̄   / / | l  /   ./ /    │  .l
                     / /  ! l , '   / / {    |  ヽ
                 / /   | l_ . //  ! /|     |   ヽ
                   / /   / ̄ ` ーl   !ー− ヽ  |   ヽ
                / /  /三    i  ! }       }  ヽ ヽ
               / , '  /ーrォrォ - |   |/      l   ヽ ヽ
              /   l  /   | |│| │  !ー┬〜' ´ ヽ   ヽ ヽ
             /  │ / | .│| .| !  ! l |   ヽ    ヽ   ヽ \
            /    | ,'  l  | | | |  | l│   ヽ     ヽ   ヽ. \
           /     !/   !.  | | │|  l ! !     ヽ     ヽ   ヽ  \
          /     /   /  `'  `'   ! .l ゝ     ヽ     ヽ    \ \
            /    /   ./         ヾl       ヽ     ヽ     ヽ  \
        /     \                      \     ヽ      \  \

Name: Anonymous 2009-03-06 6:47

The defining features of   C just write   one string such   as buttons i   setText reader readLine.

Name: Anonymous 2009-03-06 10:13

The best way to   PROGRAM GET USED   to that paradigm.

Name: Anonymous 2010-12-10 11:06

Name: Anonymous 2010-12-20 5:27

bamp

Name: Anonymous 2010-12-20 12:22

>>55

                           __
                       , ' ´ ̄´     `丶、
                     /   rヘ=,,≠==、、  ` 、
                     〃l  ハl`ヽ       )   ヽ
                     リ l l ゝ      ,,,,从 l  l
                      (l∨ ⌒ヽ   ´   〃 }  l
                       l |   r ‐ - 、⌒ヽ/ l) │
                        ,'| |   l   /   / /   |
                      ,'.| | \` ー '  _ / /    !
         _          , -| | - l ` ー < / /    |
 r———-、-''、 ` ー--‐'' ̄`ー''´  |.│∠  /  / / ヽ   !
   ̄ { `   ヾ }           { | /≠ミ/  ,'  ,'    l  |
    ヾ____ノ ノ    ` ー-____.l | l   /  / /    │ │
        ` ー----‐‐ ̄   / / | l  /   ./ /    │  .l
                     / /  ! l , '   / / {    |  ヽ
                 / /   | l_ . //  ! /|     |   ヽ
                   / /   / ̄ ` ーl   !ー− ヽ  |   ヽ
                / /  /三    i  ! }       }  ヽ ヽ
               / , '  /ーrォrォ - |   |/      l   ヽ ヽ
              /   l  /   | |│| │  !ー┬〜' ´ ヽ   ヽ ヽ
             /  │ / | .│| .| !  ! l |   ヽ    ヽ   ヽ \
            /    | ,'  l  | | | |  | l│   ヽ     ヽ   ヽ. \
           /     !/   !.  | | │|  l ! !     ヽ     ヽ   ヽ  \
          /     /   /  `'  `'   ! .l ゝ     ヽ     ヽ    \ \
            /    /   ./         ヾl       ヽ     ヽ     ヽ  \

Name: Anonymous 2010-12-21 6:10

<

Name: Anonymous 2011-02-04 17:00

Name: Anonymous 2011-07-26 15:48

I'm at the Mastered the STL phase. What should I do next?

Name: Anonymous 2011-07-26 15:50

>>63
Read SICP and achieve Satori. You can skip the previous phases.

Name: Anonymous 2011-07-26 16:16

Oh God, I thought that /prog/ had become good again... But it hadn't.

T h a t  m a k e s  m e  s a d  : (

Name: Anonymous 2011-07-26 17:27

>>39
what

Name: Anonymous 2011-07-26 18:01

The Evolution of a Common Lisp Programmer

[b]Learned basic C++ from an inadequate tutorial.[/b]

(print "Hello, world!")

[b]Achieved Satori after re-reading SICP every day for many years.[/b]

(print "Hello, world!")

Name: BBCode Fairy 2011-07-26 18:02

>>67 oops
The Evolution of a Common Lisp Programmer

Learned basic C++ from an inadequate tutorial.

(print "Hello, world!")

Achieved Satori after re-reading SICP every day for many years.

(print "Hello, world!")

Name: Anonymous 2011-07-26 18:02

>>67,68
Oh, man, I suck.  Learned basic Common Lisp from an adequate tutorial.

Name: Anonymous 2011-07-26 18:20

>>69
no shit, wow, how could you not see it

Name: Anonymous 2011-07-26 18:27

Mastered and understood every nook and cranny of the Universe after long talks and LSD trips with Dr. Hawking.

#include <stdio.h>

#include <ooc/io/io.h>
#include <ooc/util/LinkedStack.h>

int main(void) {
  var stack local = new(LinkedStack());

  Stack$push(stack, "verden!");
  Stack$push(stack, ", ");
  Stack$push(stack, "Hei");

  foreach(str, stack)
    print(str);

  putchar('\n');

  return 0;
}

/* GRUNNUR - EOF */

Name: Anonymous 2011-07-26 19:11

true story >>1

Name: Anonymous 2011-07-26 20:32

>Read SICP everyday for years
>program "Hello, World!" in C

Yep. Sounds about right.

inb4 back to the imageboards

Name: Anonymous 2011-07-26 20:59

>>71
What's OOC? I want to use it.

Name: Anonymous 2011-07-26 21:51

>>74
https://launchpad.net/ooc-language

also learn to google, faggot

Name: Anonymous 2011-07-27 1:02

First, the use of the term STL or Standard Template Library is obsolete, and has been since 1998 when C++ was first ratified as a standard. You should instead refer to them as Standard C++ Library template containers/algorithms/adapters/iterators, etc. If you use the term "STL" while job hunting, a professional C++ programmer will secretly laugh at you and decline you a job.

Also GCC has shitty error reporting. Try Clang/LLVM with your broken program, and you will be pleasantly surprised. It even has built in color-highlighting via ncurses.

Name: Anonymous 2011-07-27 1:11

>>71
Looks like ooc >>>>>>> C++

Name: Anonymous 2011-07-27 2:13

>>77
Last update: 2009

Name: Anonymous 2011-07-27 3:00

>>1
I LOVE YOU!
I LOVE YOUR POST!
I READ IT FIVE TIMES!
KEEP POSTING!

Name: Anonymous 2011-07-27 4:07

SEPPLES?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List