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

  • SEARCH
  • Home
  • 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 780517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T20:05:09+00:00 2026-05-14T20:05:09+00:00

I’m sitting here writing a function that I’m positive has been written before, somewhere

  • 0

I’m sitting here writing a function that I’m positive has been written before, somewhere on earth. It’s just too common to have not been attempted, and I’m wondering why I can’t just go to a website and search for a function that I can then copy and paste into my project in 2 seconds, instead of wasting my day reinventing the wheel.

Sure there are certain libraries you can use, but where do you find these libraries and when they are absent, is there a site like I’m describing?

Possibly a wiki of some type that contains free code that anybody can edit and improve?

Edit: I can code things fine, I just don’t know HOW to do them. So for example, right now, I’m trying to localize a robot/car/point in space. I KNOW there is a way to do it, just based off of range and distance. Triangulation and Trilateration. How to code that is a different story. A site that could have psuedo code, step by step how to do that would be ridiculously helpful. It would also ensure the optimal solution since everybody can edit it. I’m also writing in Matlab, which I hate because it’s quirky, adding to my desire for creating a website like I describe.

  • 1 1 Answer
  • 1 View
  • 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-14T20:05:09+00:00Added an answer on May 14, 2026 at 8:05 pm

    Firstly, two caveats:

    1. Copy and pasting code you don’t understand is a bad idea. Make sure you understand exactly what the code does before you use it.
    2. Make sure you respect the license of the code you are copying. This is important!

    Those caveats aside, it’s often language dependent. Languages with an open development ethos (not just an open source implementation, think Python as compared to Java) tend to have official archives of open source libraries. For example:

    • Perl (which probably started this trend) has CPAN
    • Python has PyPI and Python Cookbook
    • PHP has PEAR
    • C++ has boost
    • Ruby has gems
    • R has CRAN.
    • Haskell has Hoogle and Hackage

    Furthermore, don’t forget to look in your languages standard library. Some modern languages have massive standard libraries, which have often contained the functionality I am looking for:

    • Java has its API documentation
    • C# and VB.NET have the massive MSDN

    Non-openly developed languages often have non-official community archives. For example:

    • C# tends to have a lot of code at CodePlex and CodeProject
    • MATLAB has the Matlab Central File Exchange

    A third category of sites are language agnostic. They are often best search through POG (plain old-fashioned Google). For example:

    • Stack Overflow
    • SourceForge
    • The confusingly language agnostic Java2s
    • Planet source code
    • Github

    Finally, a fourth category of sites that I find increasingly useful are source-code search engines:

    • Google Codesearch
    • Koders

    You may also be able to find useful source code, or at least get help writing something, through various pastebins.

    • Pastebin is language-agnostic
    • HPaste is mostly Haskell, but has a little in other languages.

    Often, at the end of the day it is easiest just to google it, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I need a function that will clean a strings' special characters. I do NOT
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has

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.