Computer programming

Computer programming

Computer programming news and links

Articles

Java Tutorial Source Code: Producer-Consumer Example

The following example is an implementation of the Producer-Consumer problem. A class which provides the methods for generating and consuming an integer value is separated from the Producer and the Consumer thread classes. class SharedData { int data; synchronized void set(int value) { System.out.println("Generate " + value); data = value; } synchronized int get() { System.out.println("Get " + data); return data; } } class Producer implements Runnable { SharedData sd; Producer(SharedData sd... Read Full Story

Design Patterns in PHP

From:  sitepoint.com
Design Patterns in PHP : Singleton Design Pattern By Rakhitha Ratnayake, 14 December 2009. Singleton design pattern is the most simple design pattern which has only one class. Singleton design pattern allows only one object to be created from a singleton class. If many other classes need to use a object from a singleton class, they have to use the same instance. These types of classes are required for logging, registry, database connections, memory manager, window manager…etc. This... Read Full Story

ActionScript 3.0 Game Programming University Review

I got interested in this book after discovering Gary Rosenzweig’s AS3 tutorials on his Flash Game University Website. I was impressed by his ability to explain things clearly and simply. As other reviews have already stated “AS3 Game Programming University” is an excellent and highly readable book for learning AS3. In practice I find it much more helpful than Colin Moock’s book “Essential ActionScript 3.0″, which is a little too academic for me (although I’m glad I have it!). I’m also... Read Full Story

Java Programming Tutorial The Thread Class

Java Programming Thread Constructor The thread has eight constructors. Let us have a quick look at some of these constructors. Thread Constructors Thread() Creates a new Thread object. Thread(String name) Creates a new Thread object with the specified name. Thread(Runnable target) Creates a new Thread object based on a Runnable object. target refers to the object whose run method is called. Thread(Runnable target, String name) Creates a new Thread object with the specified name and based on... Read Full Story

Java Programming Tutorial Thread Definition

A thread refers to a single sequential flow of control within a program. For simplicity, think of threads as processes being executed within the context of a certain program. Consider modern operating systems that allow you to run multiple programs at once. While typing a document on your computer using a text editor, you can listen to music at the same time and surf through the net on your PC. The operating system installed in your computer allows multitasking. Likewise, a program... Read Full Story

Java Programming Tutorial Sample Source Code Setting Up Top-Level Containers

The top-level containers like JFrame and JApplet in Swing are slightly incompatible with those in AWT. This is in terms of adding components to the container. Instead of directly adding a component to the container as in AWT containers, you have to first get the content pane of the container. To do this, you'll have to use the getContentPane method of the container. Java Programming Tutorial Sample Source Code: Setting Up Top-Level Containers: A JFrame Example: import javax.swing.*; import... Read Full Story

Pro Apache Struts with Ajax

Book Details Author:John Carnell, Rob Harrop, and Kunal Mittal (Ed) No of Pages: 528 pages Press: Apress Dated:October 17, 2006 Language: English ISBN-10: 1590597389 ISBN-13: 978-1590597385 Book Description Pro Apache Struts with Ajax maps out how to use the Apache Struts MVC web framework, so you can solve everyday web application development challenges. This book takes an application-centric approach: the development of an application drives Struts along with Ajax coveragenot the other way... Read Full Story

A Primer on Scientific Programming with Python

Book Details Author:Hans Petter Langtangen No of Pages: 693 pages Press: Springer; Edition:1 edition Dated:September 10, 2009 Language: English ISBN-10: 3642024742 ISBN-13: 978-3642024740 Book Description The book serves as a first introduction to computer programming of scientific applications, using the high-level Python language. The exposition is example- and problem-oriented, where the applications are taken from mathematics, numerical calculus, statistics, physics, biology, and finance... Read Full Story

Programmer : Core Java, Hibernate, Struts, MySQL

This job is posted by TarunDelhi based reputed IT company requires 3-5 years experienced Programmer in Core Java, Hibernate, Struts Framework, Servlets, JSP, MYSQL, Ajax. Walk-In MB-1D, Shakarpur... [[ This is a content summary only. Visit my website for full links, other content, and more! ]] Read Full Story

Practical Programming : An Introduction to Computer Science Using Python

Book Details Author:Jennifer Campbell, Paul Gries, Jason Montojo, and Greg Wilson No of Pages: 363 pages Press: Pragmatic Bookshelf; 1 edition Dated:May 1, 2009 Language: English ISBN-10: 1934356271 ISBN-13: 978-1934356272 Book Description Computers are used in every part of science from ecology to particle physics. This introduction to computer science continually reinforces those ties by using real-world science problems as examples. Anyone who has taken a high school science class will be... Read Full Story
Top Geek Articles
Celebrities on the Phone
Cell phones are to celebrities like bats are to baseball: no one runs too far without them.
Hot Geeks -- The Sexiest Geeky Girls
These girls are gorgeous AND they'll play Warcraft with you. Doesn't get much better than that.
Hottest Girl Superhero List
A list of female video-game characters you should check out.
More From Zimbio
Copyright © 2009 - Zimbio, Inc. Some rights reserved.