Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 20th, 2007, 2:56 AM   #1
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
if it exists use it? or write it?

ok, one last question!

how do you feel about using open-source/free libraries for a big commercial project?

what im asking is would you hesitate to use libraries like Boost for a commercial project? or would it be safer to just write all the code from scratch?

suppose Boost were to withdraw the licence (hypothetically) that would cause problems with the licencing etc of the software developed using it?

i feel its probably best to just write the code from scratch (i.e. reinvent the wheel) because you have total control over it that way?

what do you think?

thanks!

rwm is offline   Reply With Quote
Old Aug 20th, 2007, 2:59 AM   #2
antihaxer
Newbie
 
Join Date: Aug 2007
Posts: 18
Rep Power: 0 antihaxer is on a distinguished road
Sure, if you want to waist all that time. I am sure that if you are using a version that was before licensed as open source and usable then their would be no problems.
antihaxer is offline   Reply With Quote
Old Aug 20th, 2007, 6:45 AM   #3
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
its not about wasting time, its about making it easy to extend your software, modify etc...

but i suppose nowadays its best to just use available libraries since software dev has become a fast paced business these days (generally i suppose anyway) ???
rwm is offline   Reply With Quote
Old Aug 20th, 2007, 8:59 AM   #4
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
Depends on a number of factors.

Personally if there is an open source option available that meets both the functional and non functional requirements of my system then I would almost certainly use it.

On occassions I have found interoperability issues or performance issues that has required me to either write my own code or alter the existing code libraries. This is all 100% dependant on the proposed projects deadline, which often leads in trade-offs that I consider the best option at the time.

You also need to consider if ou have the resources to maintain your own libraries as good as existing open source libraries such as boost.

However again, this is all dependant on the scope of the project which in my opinion goes on a case by case scenario.
Seif is offline   Reply With Quote
Old Aug 20th, 2007, 10:31 AM   #5
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
i guess thats right...

it feels nice if you write your own code from scratch, and not derived from available libraries...

still i guess the smart programmer will use available resources...
rwm is offline   Reply With Quote
Old Aug 20th, 2007, 11:16 AM   #6
antihaxer
Newbie
 
Join Date: Aug 2007
Posts: 18
Rep Power: 0 antihaxer is on a distinguished road
You do understand the libraries available like boost and such took ALOT of time to put together and for a beginner coder (I am guessing you are from your posts) you be better off using libraries that are there until you think that you are efficient enough in the language you code in to makes your own.
antihaxer is offline   Reply With Quote
Old Aug 20th, 2007, 2:39 PM   #7
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Usage of existing libraries would be ideal in a tight time frame. Although, you have to be careful in which libraries you use when developing commercial applications. If there is a doubt that will be a conflict in the license with your deployment, then you should re-evaluate the options. Also, it is a good learning strategy to reinvent the wheel, sometimes the wheel is smoother when you write it yourself. If the library is complex or there is a time issue, then use the tools that are already available.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 20th, 2007, 4:23 PM   #8
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Reusability is key to being an effective designer, regardless of the discipline. If something isn't usable to start with, it's reusability is obviously questionable.

There is a difference between acquiring knowledge and production. A modicum of thinking and research will probably point the way in most instances.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 21st, 2007, 3:00 AM   #9
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
I feel that you are missing on on the learning process if you just use libraries like boost (no doubt it took a ton of effort to develop, and for a single person to write a similar, and just as good library would take forever), but i suppose you still learn both ways, suppose you dive into writing your own library, you might have a couple of questions along the way, but if you first start by working with libraries like boost and the STL, you will gain some knowledge of how one might implement a similar library, so its a learning process both ways!

im not a programmer by profession (actually i work in visual effects, and i do alot of scripting - which led to my fascination in programming!), im still learning all this stuff, and ive learnt so much from just writing my own libraries by coming across mistakes ive made, that made me understand more...
rwm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how i write application for 32 com ports simultaneously amitpansuria C++ 3 Aug 11th, 2007 9:11 AM
Check if file exists, and delete file tayspen C++ 6 May 15th, 2006 3:47 PM
how to write Shell extensions in masm salafi Assembly 1 Jul 8th, 2005 10:26 PM
Trying to write jsp files to MySql Database reubenfields Java 1 Apr 14th, 2005 9:51 AM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:02 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC