Category Archives: Coding

All kinds of Programming.

Java socket programming tutorial

By | July 22, 2012

Socket programming in Java This is a quick guide/tutorial to learning socket programming in Java. The Socket class is documented at To summarise the basics, sockets are the fundamental “things” behind any kind of network communications done by your computer. For example when you type in your web browser, it opens a socket… Read More »

Javascript style object literals in PHP

By | July 21, 2012

Javascript object literals look like this As similar thing can be done in PHP using anonymous functions (since 5.3) Quick example Looks interesting ? Ofcourse! Since version 5.3 Php added support for closures and that feature has been used above to create javascript style object literals. The use(&$a) expression makes the variable $a available inside… Read More »