Forum Nokia
Nokia Connecting People

Login Register

 

Home: Resources: Technologies: Open C/C++: Tips for Selecting Open Source Code for an Open C/C++ Project

Tips for Selecting Open Source Code for an Open C Project



Open C is typically used when porting existing C code for the S60 platform. The following checklist provides questions developers should have answers to when choosing third-party code for porting purposes.

On the topic of code quality:

  • Does the code follow POSIX standards? This will ensure the best compatibility with Open C.
  • How mature is the code being ported? The longer the code has been under development, the fewer bugs there will be. Alpha and beta releases are labeled that for reason.
  • Has the code ever been ported to different platforms? If so, then someone else has probably done some of the developer's work already. If the code can run in both Unix and Windows realms, it has a good chance of working with Open C, too.

About the community of developers:

  • Has the project been underway for some time? In the open source code world an enormous number of projects have been undertaken, but some never quite took off. Those with mileage behind them tend to be the best.
  • How many developers are working on the project? Most open source projects are one- or two-man operations. The more people that are involved, the better the results usually are. And the better the results, the easier life will be while porting the code.
  • What is the quality of the documentation? It’s a simple fact that reading thousands of lines of code just to get to know it is not really what most people want to do. The existence of documentation usually indicates that the code is already mature, and that the community now has time to ponder what is going on.

And finally, the porting process:

  • How will the developer make the code work with his/her native environment? S60 and Symbian C++ differ from the world of C language. For example, conversions between data types will be needed, and here less is better.
  • Does the original code use a console for output? If yes, the developer will have to think of alternative ways to inform the user about what is going on. Again, less conversion work is most likely better.
  • What about memory leaks? When coding for desktop purposes, resources such as memory are not going to run out easily. But in the mobile environment, all memory leaks should be plugged. If the code being ported is mature and has already been proven to work with many platforms, there is a good chance that these leaks have already been ironed out.

See also these examples of Open C projects that have been ported from Open Source software:

Open C: IRC Example
Open C: FTP Client Example

Back to top

Learn how to
download applications

java symbian_os s60 maemo c++

Community highlights

Discussion thread of the week

How to run an EXAMPLE...

Champion of the month

Mika Raento
Read more about
Mika on the
Champions web site.

Newsletter sign up

Privacy policy   Archives

Press

Events

Forum Nokia feed

  • Latest devices
  • Latest documents
  • Latest tools
  • Latest blog entries

Terms & Conditions | Privacy policy | Site map | Developer feedback | © Nokia 2008


RDF Facets:


qdcZcoverageQUxhttpE3AE2FE2FforumE2EnokiaE2EcomE2FX
qdcZtypeQUqfnZE45E78cludedFromGeneralE4CistingsQ
qdcZtypeQUqfnTypeZE52esourceQ
qdcZtypeQUqfnTypeZWebpageQ
qdcZtypeQUqmarsZManagedE52esourceQ
qdcZtypeQUqwebZInformationE52esourceQ
qdcZtypeQUqwebZPageQ
qdcZtypeQUqrdfsZE52esourceQ
qfnZdistributionQUxhttpE3AE2FE2FforumE2EnokiaE2EcomE2FX
qfnZtypeQUqfnTypeZE52esourceQ
qfnZtypeQUqfnTypeZWebpageQ
qfnZtypeQUqmarsZManagedE52esourceQ
qfnZtypeQUqwebZInformationE52esourceQ
qfnZtypeQUqwebZPageQ
qfnZtypeQUqrdfsZE52esourceQ
qmarsZlanguageQUxhttpE3AE2FE2FswE2EnokiaE2EcomE2FlanguageE2D1E2FenX
qrdfZtypeQUqfnZE45E78cludedFromGeneralE4CistingsQ
qrdfZtypeQUqfnTypeZE52esourceQ
qrdfZtypeQUqfnTypeZWebpageQ
qrdfZtypeQUqmarsZManagedE52esourceQ
qrdfZtypeQUqwebZInformationE52esourceQ
qrdfZtypeQUqwebZPageQ
qrdfZtypeQUqrdfsZE52esourceQ