LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2012, 05:45 PM   #1
zkarp
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Question University Programming Project Idea (Unix C++)


Now I have a programing assignment due at the end of the semester. Its base language is C++ and must run on linux/unix os.

Project Requirements
  • Must include atleast one level of inheritance with a base level class
  • Must use atleast one polymorphic container class(self written or from QT,STD lib etc)
  • Must use serialization or deserialization of objects via XML
  • Must use aggregate operations on the polymorphic container
  • Must be suitable for scripting by providing appropriate command-line argument processing and return code
  • Must be termnial/command line based. Not gui interface since we have to run it on a remote server through ssh.

Also it should follow this...
  • Small is beautiful.
  • Make each program do one thing well.
  • Build a prototype as soon as possible.
  • Choose portability over efficiency.
  • Store data in flat text files.
  • Use software leverage to your advantage.
  • Use shell scripts to increase leverage and portability.
  • Avoid captive user interfaces.
  • Make every program a filter.
Basic unix philosophy


We have a standard project we can do but with an option of doing our own, within those guidelines. I want to create my own for something to show off what I can do to employers etc.

The xml part has me stumped. I really want to create some /usr/bin worthy tool that could be useful to many people not just some worthless project to get credit. I want to have fun with it.


Any ideas? All broad and specific ideas welcome that fit.

Thanks

Last edited by zkarp; 03-08-2012 at 11:23 PM. Reason: Added unix philosophy
 
Old 03-08-2012, 09:27 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,237

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
It sounds like coming up with the idea is one of the things you're expected to do yourself. But what the hell:

Podcast downloader.

One obvious use for the XML serialization is to persist configuration information. This is a standard practice with C# programs, including XNA games.

Last edited by dugan; 03-08-2012 at 09:32 PM.
 
Old 03-08-2012, 11:18 PM   #3
zkarp
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Actually using your own idea is optional. There is a 10%/pt bonus if you do use you "own" idea. By "own idea" he basically means different. Since for the idea he gives, he supplys the xml file and structure you will be using, for our "own idea" we have create our own.

Also I forgot to add, it has to compile and run on our "multiserver". A unix machine we ssh into. Also must be terminal based, since it is ssh and I don't know if we have access/permission let alone even has a WM.

Thanks for the idea, I'll add it to my options. Dont feel bad about giving advice, its not cheating. I could do some simple program but I want it to actually be useful, as stated above, and potentially be something I keep developing and release to public.

*Added abit for specs to main post.
 
Old 03-09-2012, 01:49 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by zkarp View Post
[*]Must use serialization or deserialization of objects via XML
[*]Store data in flat text files.
Seems to be a contradiction here...
 
Old 03-10-2012, 02:21 PM   #5
looop
Member
 
Registered: Oct 2011
Location: Denmark
Distribution: Fedora, Ubunut, macOS Mojave, RedHat, OpenBSD
Posts: 78

Rep: Reputation: Disabled
@ntbuski an XML file is plain text.

@zkarp I would say try building a podcast downloader and library with the ability to play the podcasts.
And just a note: I don't know if you are attending Brekely (Not sure it is spelled correctly) but If you are writing code assignments like this, I was told doing my time at Aarhus University Denmark - Department of Computer Science, that licensing your code was a good idea. So why not use a bit of time reading up on eitere GPL or BSD I prefer the BSD licences which is developed at Brekely
 
Old 03-11-2012, 10:11 AM   #6
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by looop View Post
@ntbuski an XML file is plain text.
It's not flat though, it describes a hierarchical structure. None of the standard unix tools parse XML or other complicated languages.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
University Project (running a program from within another) soulchyld21 Linux - Newbie 6 01-12-2012 04:10 PM
Programming at University beetleman64 Programming 4 06-09-2011 03:14 PM
LXer: Michigan State University open source project fuels bottom-up ... LXer Syndicated Linux News 0 09-27-2006 02:03 AM
ideas for university project jonhewer Programming 25 10-15-2005 09:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration