Jump to content

  • Log In with Google      Sign In   
  • Create Account


General Programming Articles

Article Listing

Introduction to Software Optimization

Published in General Programming

By Bartlomiej Filipek - Takes you through the process and goes over the various techniques to optimizing your code

Using Varadic Templates for a Signals and Slots Implementation in C++

Published in General Programming

By Paul Cook (Aardvajk) - Varadic templates allow for signals and slots systems to be implemented in an elegant and concise manner and are a good example of how the power of...

What Language Do I Use?

Published in General Programming

By John Hattan - This article will cover some of the languages that are popular with game programmers. This list is neither complete nor deep. This article is inten...


View Complete Archive You cannot add articles


Like
3Likes
Dislike

Inter-Process Communication (IPC) Introduction and Sample Code (.net)

Jan 30 2012 02:17 PM | Posted By All-In-One Code Framework in General Programming
Download IPC source code - 229.21 KBLicense: Ms-PL IntroductionInter-Process Communication (IPC) is a set of techniques for the exchange of data among multiple threads in one or more processes. Processes may be running on one or more computers connected by a network. IPC techniques include Named Pipes, File Mapping, Mailslot, Remote Procedure Calls (RPC), etc.In All-In-One Code Framework, we ha...

Tagged With:  #39  mailslot  code  messages  channel  remoting  register  net 
Like
2Likes
Dislike

Parallel programming in .NET - Internals

Jan 30 2012 02:15 PM | Posted By Manabendra Roy (Manab) in General Programming
Download demo - 2.67 KBLicense: Ms-PL Introduction.NET 4 brings a powerful Task library to support a piece of code to run in parallel processors. It just simply spawns threads into multiple processes using the newly written Task libraries (System.Threading.Tasks) in Mscorlib 4.0. Task libraries contain methods like For, ForEach, and Invoke to support parallelism in .NET languages, which I will...

Tagged With:  thread  task  queue  work  threads  class  new  tasks  parallel 
Like
2Likes
Dislike

TortoiseSVN: Revision Graphs

Jan 27 2012 02:37 AM | Posted By Lesley A. Harrison in General Programming
TortoiseSVN is a free and open-source Subversion client for Microsoft Windows. It is not tied to any particular Integrated Development Environment (IDE); instead, it is a shell extension which integrates into the Windows Explorer, giving you easy access to Subversion repositories from within applications you're already familiar with. This means that it can be used with any software, and by...

Tagged With:  revision  graph  option  view  project  revisions  branches  branch  tortoisesvn 
Like
2Likes
Dislike

Working with Revision Logs in TortoiseSVN

Jan 27 2012 02:34 AM | Posted By Lesley A. Harrison in General Programming
TortoiseSVN is a popular and easy-to-use Subversion client for Microsoft Windows. It is a Windows Shell extension, and is not limited to any particular IDE. TortoiseSVN is a free software which has been released under the GNU General Public License.In this article by Lesley Harrison, author of TortoiseSVN 1.7, we shall learn about differences and changelists in TortoiseSVN 1.7Differences in det...

Tagged With:  files  differences  file  changelist  version  working  changelists  copy  tortoisesvn 
Like
2Likes
Dislike

TortoiseSVN: Getting Started

Jan 27 2012 02:29 AM | Posted By Lesley A. Harrison in General Programming
In this article you will get your first taste of using TortoiseSVN. This article will explain the concept of working copies and will cover how to check out a working copy, how to manage copy depth, and how to commit a copy after you have made some changes to it. This process is the nuts-and-bolts of version management and something that you will be doing a lot during your work with TortoiseSVN....

Tagged With:  file  files  working  changes  commit  copy  repository  folder  time 
Like
2Likes
Dislike

Owl's Programming Snippets

Jan 17 2012 03:20 PM | Posted By Damian Paz in General Programming
wordpress.com — This blog is intended to be a compilation of programming snippets I actually use in my projects. The articles are not intended to be the perfect approach to solve a necessity but more to be a guide on how to use different patterns and libraries. The source code should run on_copy_paste but I can’t guarantee I won’t make a mistake once in a while.

Like
3Likes
Dislike

Collision detection and bug detection

Nov 02 2011 12:00 AM | Posted By Ronen Krendel in General Programming
A Few months ago I decided it was about time I write my own Pacman clone. I had it all figured out except for the AI. I wanted to make a good AI, and started looking for one. Diving more and more into the Pacman’s world, I became obsessed with the AI, and trust me the Pacman AI deserves an article of its own. But it was that obsession, which led me to a decision. I’m gonna to reverse engineer t...

Tagged With:  pacman  ghost  collision  maze_position  detection  charcter  screen_pos  bug 
Like
2Likes
Dislike

An Introduction to Version Control

Nov 01 2011 08:00 AM | Posted By Chris Nagele in General Programming
Learn about the new partnership between GameDev.net and Beanstalk and get an introduction to Version Control systems and why they are so valuable to your coding project - alone or with a team

Tagged With:  control  version  changes  files  system  beanstalk  code  commit  file 
Like
2Likes
Dislike

A Type-safe Generic Pointer

Aug 17 2010 06:23 AM | Posted By Francis Xavier in General Programming
A safer alternative to void*, any_ptr can point to any type of object and provide type-safe, const-correct access to it

Tagged With:  void  any_ptr  pointer  int  health  #39  notifier  point  pany 
Like
2Likes
Dislike

A Collection of Examples of 64-bit Errors in Real Programs

Aug 04 2010 03:13 PM | Posted By Andrey Karpov in General Programming
This article is the most complete collection of examples of 64-bit errors in the C and C++ languages. The article is intended for Windows-application developers who use Visual C++, however, it will be useful for other programmers as well

Tagged With:  code  64-bit  buffer  error  int  type  figure  struct_1  example 
Like
2Likes
Dislike

Using Abstraction to Optimize Runtime Polymorphism

Jul 09 2010 08:41 AM | Posted By Gabriel T. Delarosa in General Programming
We take a look at the cost of C++'s virtual function mechanism and how to improve the performance of runtime polymorphism without giving up it's many benefits

Tagged With:  virtual  class  code  cache  function  polymorphism  object  data  objects 
Like
2Likes
Dislike

Response Curves in XML for Game Parametrization

Nov 30 2009 06:00 AM | Posted By Diego B.S. in General Programming
A basic programming rule is to avoid using parameters and magic numbers directly in source code. This article proposes an addition to this well-known design pattern, explaining a simple way to parametrize in xml the response curves that otherwise may be hard-coded

Tagged With:  curve  response  code  speed  linear  stamina  game  input  maximum 
Like
2Likes
Dislike

A Data-driven Animation Manager

Oct 20 2009 02:07 PM | Posted By Diego B.S. in General Programming
This article explains a simple, yet flexible and robust layer between the game state and the graphics engine. It takes as input the character state, and as output it plays the right animation sequence.

Tagged With:  animation  state  event  change  sequence  character  game  events  sequences 
Like
2Likes
Dislike

A Simple C++ Object Loader

Oct 06 2009 12:19 AM | Posted By Francis Xavier in General Programming
A guide to deserializing objects using Daabli. Demonstrates how easy it is to load objects, enumerations, pointers and STL containers using Daabli. Also discusses Daabli's flexible string conversion mechanism

Tagged With:  objects  code  object  daabli  bool  load  support  const  read 
Like
1Likes
Dislike

Super Factory

Jul 17 2009 06:20 AM | Posted By Francis Xavier in General Programming
IntroductionWith object factory implementations already done to death, you might be wondering what on earth a "Super Factory" is. Simply put, it's an object factory which can create objects of any type and return them through any of their respective base class interfaces. This is a very useful feature indeed (especially for persistence frameworks, and especially for the one I'm...

Tagged With:  factory  class  create  objects  base  classes  register  object  code 
Like
1Likes
Dislike

Creating a Generic Object Factory

May 19 2004 03:41 PM | Posted By Robert Geiman in General Programming
The IntroductionObject factories are one of those extremely useful but often times overlooked constructs in programming. To put it simply, object factories are like virtual functions but instead of dynamically choosing which function gets executed at runtime, object factories dynamically choose which class gets instantiated at runtime.If you don't have a good understanding of object factori...

Tagged With:  object  class  factory  shape_factory  shape  create  new  constructor  shapefactory 
Like
10Likes
Dislike

Organizing Code Files in C and C++

Apr 06 2002 03:35 PM | Posted By Ben Sizer in General Programming
Note:  A newer, revised version of this article has since been posted IntroductionWhile many simple programs fit into a single C or CPP source file, any serious project is going to need splitting up into several source files in order to be manageable. However, many beginning programmers may not realize what the point of this is - especially since some may have tried it them...

Tagged With:  file  files  code  header  source  #include  function  class 
Like
2Likes
Dislike

A Tutorial on Pointers and Arrays in C

Feb 16 2002 07:35 PM | Posted By Ted Jensen in General Programming
Editors Note: Please refer to the original document as we reformat this version. Thank you. Feb. 2000This material is hereby placed in the public domainAvailable in various formats viahttp://www.netcom.com/~tjensen/ptr/cpoint.htmTable of ContentsPrefaceIntroductionChapter 1: What is a Pointer?Chapter 2: Pointer Types and Arrays.Chapter 3: Pointers and StringsChapter 4: More on StringsChapter 5:...

Tagged With:  pointers  value  chapter  variable  material  document  memory  size  integer 
Like
2Likes
Dislike

Bitwise Operations in C

Oct 30 2001 11:34 AM | Posted By Joseph Farrell in General Programming
This article is meant to be a complete introduction to bitwise manipulations using the C programming language

Tagged With:  bitwise  c lang 
Like
2Likes
Dislike

Java Game Programming Part II: Making a Simple Game

May 10 2001 05:06 PM | Posted By Adam King in General Programming
In the first part of this series we looked at how to create a basic applet, display text and shapes, and get random numbers. In this much anticipated second part (sorry for the delay and thanks for all the emails) I will cover how to use threads and double buffering as well as how to get input from the mouse and keyboard to create a simple air hockey game.The GameMost of you are probably famili...

Tagged With:  game  method  paddle  applet  puck  collision  mouse  board 
Like
1Likes
Dislike

Simple File I/O Using C++

Jul 17 2000 05:03 AM | Posted By John Peregrine in General Programming
PrefaceI have been reviewing the message boards and posted articles on file input and output, and I just think it’s that time again. File I/O is easier than baking cookies when used in conjunction with C++. In this article, I will be explaining to all of you how exactly to handle just about every aspect of file input and output using both ASCII and binary methods, and the best part is that it’s...

Tagged With:  file  files  output  binary  method  methods  fin  number  ascii 
Like
2Likes
Dislike

Understanding C++ Exception Handling

Mar 05 2000 01:33 PM | Posted By Steve Crocker in General Programming
IntroductionExceptions have been around in C++ for a while and are pretty common. If you use the STL or even just new you have been exposed to exceptions. Of course, like all things in C++, having a language feature does not necessarily clearly point one in the direction of the best use of that feature. I would not dare to call myself an expert or authority on exception handling, but as a user...

Tagged With:  exception  exceptions  code  thread  handling  block  c++  try  using 
PARTNERS