Thread: Share some of your scripts that you're either proud about or is cool/interesting!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    C++ isn't really a scripting language, and as a result, a C++ program is almost never referred to as a script.

    With that being said, one of the programs I'm most proud of is my code generator, that reads in metadata from a MySQL/Aurora/MariaDB database, and generates classes for each table, with CRUD operations, including creating referential links between the classes.

    so you can do stuff like:

    Code:
    auto cars = mydb::Cars::Where(dbConnection, mydb::Cars::column::color == "Blue");
    
    for (auto const& car : cars)
    {
      auto cylinders = car.engine.Load(dbConnection).numberOfCylinders;
      // do something with this number
    }
    the capabilities are much more extensive than this, but it's just an example.
    Last edited by Elkvis; 10-23-2018 at 09:01 AM.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  2. #2
    Registered User
    Join Date
    Sep 2018
    Posts
    217
    Oh haha I didn't even know the difference!
    Nice, another complex thing that I will probably never understand but that's how it works I guess.

    But thanks for contributing, finally a reply.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Scripts Writing Scripts
    By Fauveboy in forum C Programming
    Replies: 7
    Last Post: 06-03-2014, 08:38 AM
  2. feeling proud.
    By Mike Beal in forum C++ Programming
    Replies: 12
    Last Post: 07-16-2012, 06:58 PM
  3. Not very proud of this Code.
    By caroundw5h in forum C Programming
    Replies: 17
    Last Post: 03-27-2004, 10:45 AM
  4. Very proud of this code.
    By caroundw5h in forum C Programming
    Replies: 10
    Last Post: 01-22-2004, 01:50 AM
  5. Is there something you are proud/glad to not know?
    By Commander in forum A Brief History of Cprogramming.com
    Replies: 43
    Last Post: 10-31-2002, 07:40 AM

Tags for this Thread