Jump to content

  • Log In with Google      Sign In   
  • Create Account
Browse All You cannot add articles

General Programming Articles


Recent Updates


Automata, Virtual Machines and Compilers - Part 2

Category: General Programming

By Vilem Otte

Game Engine Containers - handle_map

Category: General Programming

By Jeff Kiah

Custom Deleters for C++ Smart Pointers

Category: General Programming

By Bartlomiej Filipek

Static, zero-overhead (probably) PIMPL in C++

Category: General Programming

By Boreal

Making Your C++ Namespace Solid and Future-Proof

Category: General Programming

By Dario Oliveri

Problems Found in Appleseed Source Code

Category: General Programming

By PVS-Studio team

Cache In A Multi-Core Environment

Category: General Programming

By Joshua Waring

Cache And How To Work For It

Category: General Programming

By Joshua Waring




Like
13Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 4)

Apr 10 2013 04:10 AM | Posted By AllEightUp in General Programming
It is time to finish fleshing out the build environment and discussing some of the more advanced features of CMake. This article goes through the options system in more detail and shows how to add a cross compilation target for iOS. Many of the prior article details are put into use in the process and the resulting environment is not a bad starting point for further work.

Tagged With:  cross platform  makefile  c++  c++11  make  cmake 
Like
16Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 3)

Apr 08 2013 03:40 AM | Posted By AllEightUp in General Programming
In Part 3, it is time to finish off the basic build environment by adding the last target type, shared libraries. Unfortunately this portion involves Windows specifics and takes a while to make fully cross platform. When everything is functional it will be time to add the unit testing framework. The remainder of the article will cover how to setup the unit tests with CMake and various methods...

Tagged With:  make  cmake  makefile  cross platform  c++  c++11 
Like
13Likes
Dislike

Data Structures for Pre-College Programmers: Non-linear Data Structures

Apr 07 2013 07:23 PM | Posted By frob in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers the the non-linear data structures. These include data dictionaries, ordered sets, and unordered sets.

Tagged With:  beginner  data  data structure  dictionary  hash  set  unordered set  ordered set 
Like
12Likes
Dislike

Data Structures for Pre-College Programmers: Stacks and Queues

Apr 01 2013 03:51 PM | Posted By frob in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers stacks and queues.

Tagged With:  beginner  stack  queue  data structure  data 
Like
17Likes
Dislike

Data Structures for Pre-College Programmers: Trees and Heaps

Mar 31 2013 01:51 PM | Posted By Bryan Wagstaff (frob) in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers trees and heaps.

Tagged With:  beginner  data  data structure  trees  heaps 
Like
19Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 2)

Mar 31 2013 10:37 AM | Posted By AllEightUp in General Programming
In the first part of this series, a first use of CMake was presented and a very simple project outline was built. At the end of the article a build break was intentionally introduced in order to show how quickly a simple fix could be put in. This article continues from that point and begins the process of correcting the broken build in a better manner while introducing more CMake syntax and u...

Tagged With:  cmake  make  cross platform  makefile  c++  c++11 
Like
23Likes
Dislike

Data Structures for Pre-College Programmers: Arrays, Dynamic Arrays, and Linked Lists

Mar 29 2013 03:58 AM | Posted By Bryan Wagstaff (frob) in General Programming
This is part of a series of articles dealing with data structures for beginners. It covers the three most basic data structures.

Like
26Likes
Dislike

Cross Platform Test Driven Development Environment Using CMake (Part 1)

Mar 27 2013 07:56 PM | Posted By AllEightUp in General Programming
Game development is often difficult enough when you want to target a single platform. It can become a nightmare when you start working on multiple platforms. Presented is one possible example of how to setup your project and directories in preparation for multi-target work with a focus on test driven development.

Tagged With:  make  cmake  cross platform  makefile  c++  c++11 
Like
5Likes
Dislike

100 bugs in Open Source C/C++ projects

Mar 16 2012 04:28 AM | Posted By Andrey Karpov in General Programming
AbstractThis article demonstrates capabilities of the static code analysis methodology. The readers are offered to study the samples of one hundred errors found in open-source projects in C/C++. All the errors have been found with the PVS-Studio static code analyzer.IntroductionWe won't tire you programmers by making you read texts and will pass to the error samples right away. Those who wa...

Tagged With:  #39  error  example  found  array  project  diagnostic  code  operator 
Like
2Likes
Dislike

Producer Consumer Using Double Queues

Feb 22 2012 09:10 AM | Posted By Ram Mohan Raja in General Programming
Download source - 4.02 KBLicense: ZlibIntroductionProducer consumer is an old computer science problem. Many solutions have been proposed to solve this problem. The general approach is using a common queue. A single queue to which the producer writes data to and the consumer reads data from. Avoiding race conditions is done by locking the queue so that when the producer is writing, the consumer...

Tagged With:  queue  producer  consumer  data  write  read  solution  reading  writing 
Like
2Likes
Dislike

JIRA: Programming Workflows

Jan 31 2012 09:29 PM | Posted By Jobin Kuruvilla in General Programming
In this article by Jobin Kuruvilla author of JIRA Development Cookbook, we will cover:Writing a workflow conditionWriting a workflow validatorWriting a workflow post functionEditing an active workflowIntroductionWorkflows are one standout feature which help users to transform JIRA into a user-friendly system. It helps users to define a lifecycle for the issues, depending on the issue type, the...

Tagged With:  workflow  user  issue  field  method  velocity  parameters  role 
Like
2Likes
Dislike

.NET Generics 4.0: Container Patterns and Best Practices

Jan 31 2012 09:26 PM | Posted By Sudipta Mukherjee in General Programming
There are several generic containers and generic algorithms available in the .NET Framework and a couple of other majorly accepted APIs such as Power Collections and C5.In this article by Sudipta Mukherjee, author of .NET Generics 4.0 Beginner’s Guide, we will take a look at:Generic container patterns: There are several patterns that are used more than the others in code bases that use Generics...

Tagged With:  pattern  list  generic  using  collection  mapping  implementation  don'  example 
Like
3Likes
Dislike

Sedge: An Automated Error Reporting Tool

Jan 30 2012 02:23 PM | Posted By Andrei Marukovich in General Programming
Download demo - 248 KBDownload source - 1.26 MBLicense: Ms-PL IntroductionEvery developer knows how important a good bug report is, and every developer wants as much details about the issue as the user can provide. There are different solutions that aim to facilitate the error reporting process, from tiny third-party components to such powerful technologies like Microsoft Windows Error Reportin...

Tagged With:  report  information  configuration  files  user  error  file  application 
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
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
12Likes
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
3Likes
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