Slashdot Mirror


Best Reference Site For Each Programming Language?

Howling writes "I've been a PHP programmer for a few years and after taking a trip through many sites Ive learned that www.php.net is probably the most complete source when looking for information/documentation. I have been trying to find similar sites for every other language (Java, perl or ASP, for instance) without equal success, though. I ask: what is the best documentation/reference site for your preferred programming language?"

58 of 538 comments (clear)

  1. Scheme by klutometis · · Score: 5, Interesting

    If it's scheme you're looking for, there's R5RS and the SRFIs; also, don't forget the world's possibly best-written programming book: SICP.

    1. Re:Scheme by c0nman · · Score: 5, Informative

      Quick Ref
      QuickRef currently includes: C, C++, CSS, HTML, HTML DOM, Java, JavaScript, MySQL, Perl, PHP, Python, and Ruby

    2. Re:Scheme by Anonymous Coward · · Score: 5, Informative

      gotapi currently includes many many more and has a nice ajaxy interface.

    3. Re:Scheme by halfnerd · · Score: 3, Informative

      Would you actually rather read the pdf, which can't be reflowed, instead of html, which can be reflowed, if both would be available as a single file download?

      At least on mobile devices such as the Nokia N810 I prefer reflowable formats. Actually I prefer them on the desktop also.

  2. Perl and Python by mangu · · Score: 4, Informative

    cpan.org and python.org

    1. Re:Perl and Python by SatanicPuppy · · Score: 5, Informative

      Agreed. I'd also add Perlmonks.org; it's not documentation per se but it's damn useful.

      For java, you have to master the API...Even modules that other people write are often documented with javadoc, and look just the same. Once you use it for a while it becomes familiar.

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    2. Re:Perl and Python by Praedon · · Score: 5, Interesting

      Yep, those are good too.. but I'd also add something that was basically born from Slashdot, it's Rosetta Code For common solutions with multiple code for different programming environments.

      --
      Just me
    3. Re:Perl and Python by mangu · · Score: 4, Interesting

      The funny thing is that for some 20 years, before I started using Python, my favorite and almost only language was C, and I don't know of any really good site for C.

      However, I do know of a really good author, that is a "dead tree" author, for C: Herbert Schildt. I would recommend these. Any of them. Well, just kidding, I haven't read them all, I doubt anyone has, but I bet they are all good.

      My favorite is his book on artificial intelligence. It's out of print now, but it was one of the reasons why C was my favorite language for about 20 years, and it still would be if Python hadn't come out.

    4. Re:Perl and Python by mr_mischief · · Score: 3, Informative

      perldoc.perl.org

      use Perl; comes high on the list, along with PerlMonks and PerlBuzz.

      Perl.org in general gets points for being where you can find Use, perldoc, and more.

    5. Re:Perl and Python by Anonymous Coward · · Score: 5, Informative

      C was my favorite language for about 20 years, and it still would be if Python hadn't come out.

      You know this of course, but I thought I'd mention that your C experience isn't wasted as a Python programmer. The cycle: design in Python => profile => redo bottlenecks in C, is the basis of industrial strength Python application.

    6. Re:Perl and Python by Bogtha · · Score: 4, Informative

      However, I do know of a really good author, that is a "dead tree" author, for C: Herbert Schildt.

      I used to recommend his books too, but he has a bad reputation among many developers:

      Why do many experts not think very highly of Herbert Schildt's books?

      A good answer to this question could fill a book by itself. While no book is perfect, Schildt's books, in the opinion of many gurus, seem to positively aim to mislead learners and encourage bad habits. Schildt's beautifully clear writing style only makes things worse by causing many "satisfied" learners to recommend his books to other learners.

      Do take a look at the following scathing articles before deciding to buy a Schildt text.
      http://www.lysator.liu.se/c/schildt.html
      http://herd.plethora.net/~seebs/c/c_tcr.html

      The above reviews are admittedly based on two of Schildt's older books. However, the language they describe has not changed in the intervening period, and several books written at around the same time remain highly regarded.

      The following humorous post also illustrates the general feeling towards Schildt and his books.

      http://www.qnx.com/~glen/deadbeef/2764.html

      There is exactly one and ONLY one C book bearing Schildt's name on its cover that is at all recommended by many C experts - see Q 25.

      --
      Bogtha Bogtha Bogtha
    7. Re:Perl and Python by Schlage · · Score: 4, Funny

      ...undecidedly positive.

      I don't think this means what you think it means.

  3. Java.sun.com by acon1modm · · Score: 5, Informative

    just google: java X class where X is whatever you want. Top results will be sun java docs which are complete and have links to parent and descendent classes, implemented interfaces, etc.

    1. Re:Java.sun.com by Vectronic · · Score: 3, Informative

      http://java.sun.com/reference/

      Samples, API, Docs, Tutorials, etc.
      (redudndant, but people usually like links)

    2. Re:Java.sun.com by B4D+BE4T · · Score: 4, Informative

      I agree. I have been using Java for a while now and have always found the information I needed at java.sun.com. Just about anything you could want to know about Java can be found in the reference section. The API section has all of the classes listed alphabetically for the more recent versions of Java with a fairly detailed description of each class and its methods.

    3. Re:Java.sun.com by Reverend528 · · Score: 4, Informative

      There is also the Java Forums which is a great place to ask people to do your intro CS homework and get flamed.

  4. ASP by Anonymous Coward · · Score: 3, Informative

    for asp: asp.net. has very good tutorials. for reference use msdn library.

  5. Here's what I do by shellster_dude · · Score: 5, Informative

    php: php.net
    coldfusion: adobe.com
    html, css, javascript, sql: w3schools.com
    python: python.org
    c/c++: devshed.com
    java: java.sun.com

    Anything else: my brilliant co-worker.

    1. Re:Here's what I do by MrMunkey · · Score: 4, Informative

      For JavaScript I head over to

      developer.mozilla.org

      It's pretty clear, but unfortunately you still have to watch out for browser incompatibilities. They sometimes will have a note about it though.

    2. Re:Here's what I do by apathy+maybe · · Score: 4, Informative

      html, css, javascript, sql: w3schools.com

      Why oh why would you go to w3schools (ad filled piece of shit), when you go directly to the source for all the HTML and CSS requirements?

      For example, want to learn HTML?
      http://www.w3.org/MarkUp/Guide/
      http://www.w3.org/MarkUp/Guide/Advanced.html

      Already know HTML but want to do one thing (or can't remember the exact syntax?)?
      http://www.w3.org/TR/html4/

      Do a search through the HTML 4.01 Specification.
      Similarly for XHTML.

      CSS tips and tricks? You got them all.

      Just learning? Get started with HTML and CSS. Other CSS resources all also easily available.

      Oh right, and don't forget the authoritative text...

      Basically, for HTML and CSS, it is much better for both beginners and advanced users to go to the W3C rather then the ad filled crap w3schools.

      --
      I wank in the shower.
    3. Re:Here's what I do by fredrik70 · · Score: 3, Informative
      --
      if (!signature) { throw std::runtime_error("No sig!"); }
  6. Tcl -- use the Wikibook by Xcott+Craver · · Score: 4, Informative

    One of the best tutorials and references for Tcl is the Wikibook on Tcl programming.

    Indeed, it's one of the best programming texts I've seen in any language.

  7. Object Pascal and C by jmpeax · · Score: 4, Informative
  8. Suggestions for perl by howlinmonkey · · Score: 4, Informative

    Documentation: peldoc.perl.org
    Community: perlmonks.org
    Articles: www.perl.com (O'Reilly site)

    I have found the perl community to be the most open, supportive and cohesive group of all the languages I work with. Right now I am working with PHP, perl and C#, and perl is by far the easiest language to get help and correct information. I can find tons of info on the other languages, but the information isn't always the best quality.

    Good luck with your search.

  9. Perl/Python/Ruby and now Each by Lije+Baley · · Score: 3, Funny

    So is Each the next great scripting language? I've never tried it...

    --
    Strange things are afoot at the Circle-K.
  10. For all languages by Korbeau · · Score: 5, Funny

    experts-exchange.com

    *ducks*

    1. Re:For all languages by nog_lorp · · Score: 4, Funny

      answers.yahoo.com

      *geese*

    2. Re:For all languages by mr_mischief · · Score: 4, Funny

      ask.slashdot.org

      *swans*

    3. Re:For all languages by William-Ely · · Score: 5, Funny

      I use http://lolcode.com/examples for all my LOLCODE programs.

      --
      Mod me down with all of your hatred, and your journey towards the dark side will be complete!
    4. Re:For all languages by bakes · · Score: 5, Funny

      www.youporn.com

      *swallows*

      --
      Ho! Haha! Guard! Turn! Parry! Dodge! Spin! Ha! Thrust!
    5. Re:For all languages by Junior+J.+Junior+III · · Score: 3, Funny

      goatse.cx

      *ewe*

      --
      You see? You see? Your stupid minds! Stupid! Stupid!
  11. C/C++ by Kuraitou · · Score: 5, Informative

    http://cprogramming.com/ - best site for beginners in my opinion.

    1. Re:C/C++ by nog_lorp · · Score: 5, Informative

      www.cplusplus.com

      Beats the hell out of man pages for the POSIX C libraries.

    2. Re:C/C++ by Simon80 · · Score: 3, Informative

      Standard Template Library:

      • SGI reference - readable, comes with informative explanations of concepts
      • libstdc++ reference - less readable, but it may have some non-standard things that aren't in the SGI docs, useful if you're using libstd++

      Boost libraries:
      For anything not present in the standard library, these are the next place to check. They're freely usable in commercial projects.

    3. Re:C/C++ by Anonymous Coward · · Score: 3, Informative

      http://cppreference.com/ - easy guide to the STL

  12. stack overflow question by fragbait · · Score: 5, Informative

    Perhaps this a question for Stack Overflow?

    -fragbait

  13. PHP.net is great. by nog_lorp · · Score: 4, Insightful

    PHP has probably the best documentation of an language thanks to PHP.net. It is really wonderful, everyone should follow their lead.

    1. Re:PHP.net is great. by Maian · · Score: 5, Insightful

      I don't know. I've recently had to use PHP for something, and I've been struggling to find out the performance of each function. For example, the php.net articles on count()/sizeof() functions on an array tell me nothing of whether it's O(1) or O(n). PHP really strikes me as a programming language for non-CS majors.

  14. C: K&R. by proidiot · · Score: 5, Informative

    For C, use the most holy book:
    K&R
    (aka "The C Programming Language" by Kernighan and Ritchie, http://cm.bell-labs.com/cm/cs/cbook/)

    --
    -proidiot
    1. Re:C: K&R. by mr_mischief · · Score: 3, Informative

      Make sure to use the second edition, which covers ANSI C (which is practically ISO C89).

    2. Re:C: K&R. by raddan · · Score: 3, Insightful

      K&R style, maybe. But it's still useful to have your code wrap to some consistent length-- there's nothing worse than reading someone else's shitty 200-column-wide code in a terminal. There are LOTS of terminals still in use. Not to mention (I don't remember where I heard this-- Oualline's book?), if you can't fit a function call in 80 columns, you might want to rethink about what you're doing. There's probably a better, simpler way.

      But style aside, the content of the book is classic, especially when you start getting into systems programming. These guys had the logical structure of a good computer system worked out a long time ago! Considering that the UNIX C API was basically the first draft of POSIX, reading this book is a must if you ever want to play with the low-level (aka, fun) parts of your operating system. This book almost never leaves my desk, even though I do most of my work in Perl and PHP nowadays.

      I love C because it is a sparse programming language that is very expressive, mainly due to pointers. That has a big influence on my code in other languages, for better or worse. But I find C to be very readable, and I try to do the same for other programs. A lot of "modern" languages just look like barf to me, but I'm probably biased.

  15. Your language is too bloated by Waffle+Iron · · Score: 3, Funny

    ... if the complete reference can't be included inline in a /. post. Here's all you need to know:

        > increment the pointer (to point to the next cell to the right).

        < decrement the pointer (to point to the next cell to the left).

        + increment (increase by one) the byte at the pointer.

        - decrement (decrease by one) the byte at the pointer.

        . output the value of the byte at the pointer.

        , accept one byte of input, storing its value in the byte at the pointer.

        [ jump forward to the command after the corresponding ] if the byte at the pointer is zero.

        ] jump back to the command after the corresponding [ if the byte at the pointer is nonzero.

  16. www.gotapi.com by YutakaFrog · · Score: 5, Informative

    http://www.gotapi.com/ It's got all the good reference sites in one. You click the reference site, it adds a tab to the gotAPI webpage. It has a really good search box. No signup required. Best all-in-one reference ever.

  17. Re:Cookbook site by Anonymous Coward · · Score: 3, Insightful

    Yeah, this is a troll. But I think it's a necessary one.

    It's a pathetic one. You've made no outrageous link from "this sorta piece" to "deserves to get offshored". You just stuck them in the same sentence. You should have written something to draw people along to agreeing or violently disagreeing with your assertion. You've given people nothing to bite on. It's a hook with no bait. Pathetic.

  18. Missing Cowboy Neal option by Drishmung · · Score: 3, Funny

    you insensitive clod!!

    --
    Protoplasm. Quiet Protoplasm. I like quiet protoplasm.
  19. FYI by Anonymous Coward · · Score: 5, Informative

    If you use Eclipse you can configure the javadoc URL in your JDK configuration and pull up the pages from within the IDE. VERY handy.

  20. Parashift by D+Ninja · · Score: 4, Informative

    C++ FAQ Lite is an excellent site for C++ information.

  21. how to write unmaintainable code by mdmarkus · · Score: 3, Funny

    This site is good for a number of languages, particularly for Java. Just read it and do the opposite.

  22. Lua by Samah · · Score: 4, Informative

    Lua:
    Official website: http://www.lua.org/
    Direct link to manual: http://www.lua.org/manual/5.1/
    Lua community: http://lua-users.org/wiki/

    --
    Homonyms are fun!
    You're driving your car, but they're riding their bikes there.
  23. Most popular languages are at Wikibooks by Orion+Blastar · · Score: 5, Interesting

    Wikibooks because if it isn't already there, someone will eventually write one and make it open sourced.

    I invite Slashdot readers and posters to write their own ebooks at Wikibooks in an open source license.

    --
    Remember, Slashdot does not have a -1 disagree moderation, and no, troll, flamebait, and overrated are not substitutes.
  24. scissors beats paper, paper beats the internet by OrangeTide · · Score: 5, Interesting

    I think you misinterpreted the tongue-in-cheek language.

    I don't know the reason why some languages (like C) have little online presence. There is comp.lang.c on usenet and the comp.lang.c FAQ. And a couple of online versions of man pages, but it's hard to learn C from man pages alone. And there is the C89/C99 specs, but I don't think that's a great way to learn C either. If you ignore usenet (most people do), I would venture to say there is basically nothing good about C online.

    Compared to the books you can get that cover C programming, ones on algorithms, data structures, C itself, and various APIs. The web seems vastly inferior. I'm not trying to claim I know the reason why, I'm just pointing out that this is currently the case. Currently paper is better than electrons for SOME languages.

    --
    “Common sense is not so common.” — Voltaire
  25. Ruby by SanityInAnarchy · · Score: 3, Informative

    The official site is always a good bet. But I also make it a habit to memorize the url to the rdoc of whatever I'm doing:

    ruby-doc.org/core
    api.rubyonrails.org

    Beyond that, it's more about the framework. For example:

    ramaze.net
    sequel.rubyforge.org

    Beyond that, there's the source (and IRB + tab-completion), and for the really tough questions, the ruby-talk mailing list.

    Can't really recommend the jQuery docs, as they're down half the time, the UI is lacking some critical features, and it doesn't seem to quite work in Konqueror. For a library claiming to be cross-browser, you should at least have your docs be cross-browser!

    --
    Don't thank God, thank a doctor!
  26. Re:DevGuru.com by dwarfsoft · · Score: 3, Informative

    For VBScript I tend to use google to find specific things. I haven't found one site that really covers enough in one place. Most people will write off VBScript being that it is Microsoft and Windows is evil and all that.

    Seeing as I use VBScript mainly for natively being able to pull information from LDAP directories from a Windows XP machine I must at least defend it.

    MS Scripting Guy, DevGuru, 4GuysFromRolla, and last but not least ActiveXperts.

    It depends if I want info on WMI, LDAP, or general WSH Objects.

    For VB or MSVC++ its MSDN.

    The main source of information just is.

    *Ducks*

    --
    Cheers, Chris
  27. Re:gExp by zobier · · Score: 4, Informative

    http://www.regular-expressions.info/

    I'll just leave this here.

    --
    Me lost me cookie at the disco.
  28. Dear programming languages: by rs79 · · Score: 5, Funny

    Hi there all you programming langauges. I've called you all here because we need to talk. There's some things I need to get off my chest.

    SNOBOL

    If the world revolved around writing backgammon games, baby, you'd be the end all be all. But you're bloody useless at anything else. You're pretty but uselss.

    Logo

    You wear me out. I have to tell you to do everything.

    FORTH

    DARLING I MISS YOU. Where are you?

    Prolog

    You look good on paper, but you scare me. Remember that time in Beverly Hills? You have some very odd friends. And what's with the pink ties?

    Algol

    Oh algol. We had some great times together. But there is life after college, really.

    Lucid

    Lucid: you aren't. You should have been called "heroin".

    PL/I - http://www.users.bigpond.com/robin_v/resource.htm

    PL/I you are the perfect ex langauge. There's nothing to like about you and I don't miss you. Hell I don't even remember you that well any more. You're so damn difficult even your name cant be used in a URL because you screw that up. Put skip THIS, bitch.

    Forth come back! All is forgiven. Let's just you and me go someplace and dup dup dup. Or was that postscript. No no, she's just a friend.

    Aww dammit. Forth? Honey?

    --
    Need Mercedes parts ?
  29. Objective-C and Cocoa by wumpus188 · · Score: 3, Informative

    Almost 300 replies and no mention of Objective-C ?

    developer.apple.com - Apple documentation, good reference but sometimes lacking in details
    cocoadev.com - Cocoa wiki
    cocoabuilder.com - Cocoa mailing list archives

  30. C/C++/Java/Perl/Python references by phrank · · Score: 3, Informative

    C
        The GNU C Library
        http://www.gnu.org/software/libc/manual/

    C++
        Standard Template Library Programmer's Guide
        http://www.sgi.com/tech/stl/

        Boost C++ Libraries
        http://www.boost.org/doc/libs

    Java
        Java(TM) Platform, Standard Edition 6 API Specification
        http://java.sun.com/javase/6/docs/api/

    Perl
        Perl version 5.10.0 documentation
        http://perldoc.perl.org/

    Python
        Python Library Reference
        http://docs.python.org/lib/lib.html

    For learning C and C++, I recommend these books:

        Kernighan, Ritchie: The C Programming language
        Kernighan, Pike: The Practice Of Programming
        Koenig, Moo: Accelerated C++: Practical Programming by Example
        Sutter, Alexandrescu: C++ Coding Standards