Thread: onion stlye of coding

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned
    Join Date
    Nov 2007
    Posts
    678

    Unhappy onion style of coding

    Code:
    int add(int a, int b) { return a+b; }
    int addThem(int a, int b) { return add(a,b); }
    int addition(int a, int b) { return addThem(a,b); }
    // ... 
    int main()
    {
        return addition(-5, 5);
    }

    i am sick of this onion style of coding
    can someone please give me a little comment on this, possibly giving reasons, why it can be useful?
    Last edited by manav; 04-17-2008 at 06:40 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 03-20-2009, 05:22 PM
  2. Coding Guideline ....!!
    By imfeelingfortun in forum Tech Board
    Replies: 8
    Last Post: 10-08-2006, 07:09 AM
  3. Before Coding
    By cyberCLoWn in forum C++ Programming
    Replies: 16
    Last Post: 12-15-2003, 02:26 AM
  4. Coding Contest....
    By Koshare in forum A Brief History of Cprogramming.com
    Replies: 46
    Last Post: 10-14-2001, 04:32 PM