Establishing the stereotype

http://i.imgur.com/P57xw.png

I was surfing reddit when I happened upon this image. Does any one else here see a problem with this woman's code?
No. no_of_indians is declared in <india.h>.
Unless you are concerned about that string literal spanning more than one line... (that could just be an artifact of the text display she's using).
Also, lokpal bill not passed is defined in <jan lokpal bill.h>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//jan lokpal bill.h

class Bill
{
private:
     bool m_passed;
//...
public:
//...
     bool IsPassed() const { return m_passed; }
     bool IsNotPassed() const { return !IsPassed(); }
//...
};

class Law
{
private:
     Bill m_bill;
//...
public:
//...
     const Bill& GetBill() { return m_bill; }
} lokpal;

//macros to improve readability
#define bill .GetBill()
#define not .IsNot
#define passed Passed() 
Last edited on
Oh crap! I was just wondering if the "void main" or lack of printing newlines was anything, but then I noticed what was wrong...

The syntax highlighting is entirely wrong... It only shows special colors for preprocessor directives!
She's not using a very good text editor. I mean let's face it, pen & paper is only one step up from using vi...
ohhhh galik... haha. I thought it was void main that was being used was incorrect but legal/deprecated usage. But I guess the highlighting is incorrect. Still funny and creative.
Last edited on
I mean let's face it, pen & paper is only one step up from using vi...


Are you saying pen & paper is better than vi ?
closed account (S6k9GNh0)
EMACS IS THE WIN.

/me runs as far as he can.
I actually cannot stand Emacs... I prefer vi[m].

I am used to the WordStar 3 command set (which is still superior to all those other weird control sets). The first time I used Emacs I think I nearly formatted my harddrive trying to figure out how to escape.
What was that backronym? "Eventually malloc()s All Core Space"?
closed account (1vRz3TCk)
GNU EMACS - Generally Not Used. Excepting Middle Aged Computer Scientists
What do you mean?

They use Emacs on the Enterprise (NCC-1701-D). Why do you think the crew's hands are always flying all over their control panels to do normal, simple stuff, but they have a Vulcan nerve-pinch command to do complicated stuff?
Literally laughing out loud! :)

Logged in just to post this. lol.
EMACS IS A PRETTY GOOD OPERATING SYSTEM, ALL IT NEEDS IS A DECENT EDITOR.
Truer words have never been said, chris.
I actually still use my old Borland Delphi 5 IDE to do all my plain-text editing. It has some annoying limitations (which, to be fair, are OK because it wasn't designed to edit anything but Pascal and Delphi, C and C++, and SQL). And it isn't an OS... but I only want my editor to be an editor...

I've actually been working on my own editor program again lately...
Topic archived. No new replies allowed.