Thread: Library Implementation Guide

  1. #1
    Registered User
    Join Date
    Aug 2019
    inside a singularity

    Library Implementation Guide

    Hey. I really like the code design and implementations of many libraries I've happened to come across. Everything looks so pure, if that's the right word. I'm looking forward to a career involving library programming, language designing, problem solving and program designing in general few years down the line (I don't know if I've used the right words but as long as you get the idea, all good, no?).

    I want to start practicing such concepts and design ideas.. I once tried implementing a simple 2D Game Engine a few months back. The idea was good and everything worked as planned, but as far as implementation was concerned, it was terrible. The entire concept of OOP seemed distant in the code, compared to even the low-end library implementations by hobby-ist programmers. I know I can do better, it's just that the whole idea seems alien to me right now.

    The purpose of this thread is to ask for suggestions (from those who've got some experience in this field in the past) regarding online content or books that I can read and learn from related to the topic "Getting accustomed to writing good, clean code" and "Library programming for beginners" and "OOP - the C++ way of doing things" and "How to write efficient, neat code like in the STL or Boost or GMP or any big open source project". You get the idea. I've been looking at open source projects for a few weeks now and it's simply amazing to see the level of abstraction implemented and code designing without a tad-bit effect on performance. I'd like to do something great some day with code too.... I get it, practice makes perfect, and that's what I'm going to be doing more and more, but having some material to read along would be great.

    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook, The Wizardry Compiled

  2. #2
    Registered User
    Join Date
    May 2009
    Library programming and class programming can be two different things.

    I know enough to do an good (but not great) C Library; but, not sure I could do an good C++ library which often means using templates.

    I know I can not do a good job on an C++ OOP Library.

    So, one thing is to learn templates for C++ and look at the STL or Boost libraries for how they did it.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 12
    Last Post: 02-23-2015, 01:38 AM
  2. Libssh library installation advice/guide
    By Butchy in forum C Programming
    Replies: 2
    Last Post: 04-10-2014, 07:48 PM
  3. Replies: 2
    Last Post: 02-06-2011, 03:34 AM
  4. Library Implementation of nullptr
    By laserlight in forum C++ Programming
    Replies: 1
    Last Post: 12-27-2007, 04:14 PM
  5. Writing your own C++ Standard Library implementation...
    By SlyMaelstrom in forum A Brief History of
    Replies: 20
    Last Post: 10-02-2006, 07:54 PM

Tags for this Thread