This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Library classes  RSS feed

 
Shafian Kisna
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Need some sharing here on what is writing library classes and its benefits?
I would prefer if someone can give me an example of it...

Thanks & Best Regards
SK
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A library class is a class that offers useful functionality that others might want to include in their program. For example, see the standard library of any language. The benefits are code reuse, faster development, predictible results, ect.

There are many reasons you might want to write some of your own.

You can often beat the execution speed of standard libraries, at the cost of extra development time and perhaps lessened reusability.

You might need functionality not found elsewhere.

You want to learn how to program, as opposed to just learning how to use java tools. Writing your own data structures, searching, sorting,networking, graphics, math libraries are great ways to become a better programmer and learning what is going on behind the scenes.
[ June 08, 2006: Message edited by: Rusty Shackleford ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!