Laptop:

Code farmer:

码农、黑客和2B程序员之间的区别

Hacker:

码农、黑客和2B程序员之间的区别

2B programmer:

码农、黑客和2B程序员之间的区别

Calculate 2 to the 32nd power:

Code farmer:

System.out.println(Math.pow(2, 32));

Hacker:

System.out.println(1L<<32);

2B programmer:

System.out.println(2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2);

Swap two numbers:

Code farmer:

void swap(int &a,int &b)
{
    int temp;
    temp=a;
    a=b;
    b=temp;
}

Hacker:

void swap(int &a,int &b)
{

    a=a^b;

    b=a^b;

    a=a^b;

}

2B programmer:

void swap(int a,int b)
{
    int temp;
    temp=a;
    a=b;
    b=temp;
}

Class attribute definition:

Code farmer:

public static int TYPE = 1;

Hacker:

/**
* 此策略下消息类型为全局类型,用以通知所有符合B05协议要求的处理者
* …… ……
*/
public static int TYPE = MsgTypes.TYPE_GLOBAL;

2B programmer:

public static String TYPE_ONE = "1";
public String TYPE = TYPE_ONE;

Mobile development platform:

Code farmer: WinCE/BlackBerry/Symbian/Android

Hacker: iPhone

2B programmer: MTK

Desktop application UI development:

Code farmer: Swing/MFC/C#

Hacker: WPF

2B programmer: VB (Haha, don't blame me, I've also done VB projects, I have no prejudice, but the criticism about VB is simply way too much. Even Dijkstra said, "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.")

Instant messaging software:

Code farmer: Work: MSN, Life: Skype

Hacker: Work: GTalk, Life: confidential

2B programmer: Work: Tencent QQ, Life: QQ

Problem searching:

Code farmer: Google Search

Hacker: Google Scholar/Scirus

2B programmer: Baidu Knows

Solution to Windows crash:

Code farmer: Search for the cause and solution of the problem based on exception information

Hacker: Bro, I haven't used Windows since I was a kid!

2B programmer: Reinstall the system (universal solution), install 360

Personal blog:

Code farmer: CSDN/CNBlogs/BlogBus

Hacker: Personal website (I'm not bragging, haha)

2B programmer: QQ Space

Interview location:

Code farmer: Meeting room/classroom

Hacker: Coffee shop

2B programmer: Cafeteria

Java interview questions:

Code farmer: Please explain the meanings of encapsulation, inheritance, and polymorphism respectively?

Hacker: If you were to design a system to count the total number of all roads in the world, how would you design it?

2B programmer: Please talk about the differences between Spring 2.5.6 and 2.5.5?

Just for a laugh. What other funnier programmer versions do you have?

Original source: http://www.techug.com/the-diffenents-between-coder-hacker-and-2b-programmer