Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7532083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:20:58+00:00 2026-05-30T05:20:58+00:00

In many languages, for me specifically, Java and C++, there is an massive standard

  • 0

In many languages, for me specifically, Java and C++, there is an massive standard library. Many classic problems in computer science, search, sorting, hashing etc etc… are implemented in this library. My question is, are there any benefits of say implementing one’s own algorithm versus simply using the library’s version? Are there any particular instances were this would be true?

I only ask because in school a huge deal of time is spent on say sorting, however in my actual code I have found no reason to utilize this knowledge when people have already implemented and optimized a sorting algorithm in both Java and C++.

EDIT: I discussed this at length with a professor I know and I posted his response, can anyone think of more to add to it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:21:00+00:00Added an answer on May 30, 2026 at 5:21 am

    After discussing this at length with professor of Computer Science, here were his opinions:

    Reasons to Use Libraries

    1. You are writing code with a deadline.

    • There is no sense in hampering your ability to complete a project in a quick and timely manner. That’s why libraries are written after all, to save time and avoid “reinventing the wheel”

    2. If you want to optimize your code fully.

    • Chances are the team of incredibly talented people who wrote the algorithm in Java or C++’s or whoever’s library did a far better job at optimizing their algorithm for that language in however long it took them than you can possibly do in an hour or two. Or four.

    3. You’ve already done previously solved this problem.

    • If you have already solved this problem and have a good complete understanding of how it is designed you don’t need to labor over a complex solution as you don’t stand to gain much benefit.

    That being said, there are still many reasons to make your own solution.

    Reasons to Do It Yourself

    1. A fundamental understanding of problem solving techniques and algorithms are completely necessary once you reach a problem that is better optimized by a non-library solution.

    • If you have a highly specified problem, such things often come up when working with networking or gaming or such. It becomes invaluable to be able to spot situations in which a specific algorithm will outperform the libraries version.

    2. Having a very good understanding of algorithms and their design and use makes you much more valuable in the work place.

    • Any halfway decent programmer can write a function to compare two objects and then toss them into a library function, however the one that is able to spot a situation and ultimately improve the programs functionality and speed is going to be looked upon well by management.

    3. Having the concept of how to do something is often just as, if not more so, valuable than being able to do it.

    • With an outstanding knowledge of Java’s libraries and how to use them, chances are you can field any problem in java with reasonable success. However when you get hired to work in erlang you’re going to have some rough times ahead. Where if you had known how and not merely what Java’s libraries did, you could move those ideas to any language.

    4. We as programmers are never truly satisfied with merely having something “work”.

    • Chances are that you have an itch to understand why things work. It was this curiosity that probably drove you to this area of study. Don’t deny this curiosity! Encourage it and learn to your hearts content.

    5. Finally, there is a huge feeling of success and accomplishment that comes with creating your own personal way of sorting or hashing etc.

    • Just imagine how cool your friends will see you when you proclaim that you can find the shortest path between 2 vertices in n log(n) time! On a serious note, it is very rewarding to know that you are completely capable of understanding and choosing an optimum solution based on knowledge. Not what some library gives you.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many languages have standard repositories where people donate useful libraries that they want others
Many languages, such as .NET languages and Java come with a currency formatting facility
In many languages (and places) there is a nice practice of creating local scopes
There are so many languages in web development that sometime I get confused which
This can be applied to many different languages, but I am specifically working with
Many languages, such as Java, C#, do not separate declaration from implementation. C# has
Many languages have a facility to check to see if an Object is of
In many languages, assignments are legal in conditions. I never understood the reason behind
In how many languages is Null not equal to anything not even Null?
With so many languages and frameworks that exist, and with new ones appearing all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.