THOMAS TANG'S BLOG

Record life with my coding words

Senior Chinglish writer and coder, familiar with JavaScript, Objective-C, Swift. Good at mobile application development, a tittle understanding about server side. Like swimming, reading, basketball and traveling.


My dream is write the word, change the world.

倚楼听风雨,淡看江湖路

Hello World


_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
. ' \\| |// `.
/ \\||| : |||// \
/ _||||| -:- |||||- \
| | \\\ - /// | |
| \_| ''\---/'' | |
\ .-\__ `-` ___/-. /
___`. .' /--.--\ `. . __
."" '< `.___\_<|>_/___.' >'"".
| | : `- \`.;`\ _ /`;.`/ - ` : | |
\ \ `-. \_ __\ /__ _/ .-` / /
======`-.____`-.___\_____/___.-`____.-'======
`=---='
.............................................
佛曰: Hello World

写字楼里写字间,写字间里程序员;
程序人员写程序,又拿程序换酒钱。
酒醒只在网上坐,酒醉还来网下眠;
酒醉酒醒日复日,网上网下年复年。
但愿老死电脑间,不愿鞠躬老板前;
奔驰宝马贵者趣,公交自行程序员。
别人笑我忒疯癫,我笑自己命太贱;
不见满街漂亮妹,哪个归得程序员?

C


#include <stdio.h>

int main(int argc, const char * argv[]) {
printf("Hello, World!\n");
return 0;
}

Objective-C


#import <Foundation/Foundation.h>

int main(int argc, const char * argv[]) {
@autoreleasepool {
NSLog(@"Hello, World!");
}
return 0;
}

Swift

import Foundation

print("Hello, World!")

Java

public class HelloWorld {
public static void main( String[] args ) {
System.out.println( "Hello World!" );
}
}

JavaScript

#!/usr/local/bin/node

var http = require( "http" );
http.createServer( function ( request, response ) {
response.writeHeader( 200, {
"Content-Type": "text/html"
} );
response.write( "Hello World!" );
response.end();
} ).listen( 8080 ); // Activates this server, listening on port 8080.

PHP


<?php echo '<p>Hello World!</p>'; ?>

Keep Learning && Coding && Producting…

codingMyLife