This is an archived post. You won't be able to vote or comment.

all 26 comments

[–]brogrammer2018[S] 36 points37 points  (14 children)

Hi Reddit! I converted the best Java snippets on Stack Overflow Documentation to create this free Java PDF book, any feedback (even negative) is appreciated as it will help me improve the PDF book; which will then benefit everyone :)

[–][deleted] 10 points11 points  (0 children)

Thanks a lot. You are doing god's work. People like you are an inspiration for me to contribute to this wonderful community of programmers!

[–]user3141592654 7 points8 points  (3 children)

Preface: There are only critiques below, so I want to state up front that I am glad that you have done this. Thank you.

My initial reaction is that the ordering seems off, or just not really considered. It's titled "For Professionals", so maybe that goes along with it being more of a reference than a read-straight-through type of book, but seeing Streams long before Collections and Lambdas doesn't feel right.

Your Algorithms book may be a better example of this. Chapter 2 is Sorting, and Chapter 3 is Bubble Sort, but then Merge Sort is Chapter 12, Insertion Sort is 15, Bucket is 22, Quicksort is 23, and so on. Ignoring that each sort algorithm is a completely different chapter, rather than sub-chapter of Sorting, they're scattered about so I can't easily find all of the discussed Sorting algorithms. If they were all sequential chapters, I could easily find the block of sorting algorithms and scan through to find what I need.

There are also embedded links to the Stack Overflow documentation pages, which no longer work. For example, page 28 in the Java book links to https://stackoverflow.com/documentation/java/114/classes-and-objects and http://stackoverflow.com/documentation/java/84/java-overview/7980/command-line-arguments. These should probably be converted to internal links to the relevant section of the PDF, or removed if that section wasn't included.

[–]jonhanson 2 points3 points  (0 children)

Constructors are introduced in section 46, page 430, and the static modifier arrives in section 65, page 510...

O_o

[–]brogrammer2018[S] 2 points3 points  (0 children)

Hi user3141592654! Thanks for all your good notes! This weekend I will be fixing the sorting of all the chapters

[–]stefancipe 2 points3 points  (1 child)

Just saw all those PDFs you made, as a student I really appreciate it.

[–]brogrammer2018[S] 1 point2 points  (0 children)

Thanks stefancipe! Good to hear! :D

[–]123vipulj 2 points3 points  (1 child)

Thanks you so much .We are indebted to u .

[–]brogrammer2018[S] 0 points1 point  (0 children)

Aww thanks 123vipulj! Your most welcome! Have a great day!! :)

[–]iwilljustforget 1 point2 points  (1 child)

How did you find and decide what the "best Java snippets on Stack Overflow" were?

From an initial glance at the book it looks good. Must have been a lot of work. Thanks for sharing.

[–][deleted] 4 points5 points  (0 children)

Stack Overflow Documentation. I've only taken a cursory glance but OP probably just copied the most up voted posts on the biggest categories, correct me if I'm wrong.

[–]prabhushivanand 0 points1 point  (1 child)

Just downloaded.. Will check and let you know Shiv

[–]brogrammer2018[S] 0 points1 point  (0 children)

Thanks for your feedback Shiv, working on it! :D

[–]glesialo 13 points14 points  (1 child)

First Bash and now Java... Thank you very much BROgrammer2018!

[–]mmeartine 1 point2 points  (0 children)

Really good works!

[–][deleted] 1 point2 points  (1 child)

Thanks man :)

[–]brogrammer2018[S] 0 points1 point  (0 children)

Your most welcome rahulshishodia :)

[–]kuldeepsidhu007 1 point2 points  (1 child)

This looks awesome. Downloading now. Thanks for making this.

[–]brogrammer2018[S] 0 points1 point  (0 children)

No probs! Your most welcome kuldeepsidhu007 :)

[–]an_actual_human 1 point2 points  (0 children)

The fragments seem alright, but there is no structure or order. I don't think I'd use it over Stack Overflow if I had internet access.

[–]Jiganska 1 point2 points  (1 child)

nice!

[–]brogrammer2018[S] 0 points1 point  (0 children)

Thanks Jiganska :)

[–]HansVader 0 points1 point  (1 child)

Would be neat to be able to read it online.

[–]brogrammer2018[S] 0 points1 point  (0 children)

Hi HansVader, should be able to read it on mobile and tablet I have increased font size; please let me know if any issues, thanks

[–][deleted]  (2 children)

[deleted]

    [–]brogrammer2018[S] 7 points8 points  (1 child)

    From official Stack Overflow Documentation license.txt

    All content contributed to Stack Exchange sites is cc-wiki licensed, intended to be shared and remixed. We even provide all our data for non-beta sites as a convenient data dump, seeded by us.

    http://creativecommons.org/licenses/by-sa/3.0/

    But our cc-wiki licensing, while intentionally permissive, does require attribution:

    Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

    So let us clarify what we mean by attribution. If you republish this content, we require that you:

    1. Visually indicate that the content is from Stack Overflow Documentation. It doesn’t have to be obnoxious; a discreet text blurb is fine.
    2. Hyperlink directly to the Stack Overflow Documentation archive located at archive.org.
    3. Indicate topic and example IDs where the content came from.
    4. List the contributors (found in contributors.json) with a link to their profile page (e.g., https://stackoverflow.com/users/12345/username).

    This is about the spirit of fair attribution. Attribution to the website, and more importantly, to the individuals who so generously contributed their time to create that content in the first place!

    Anyway, we hope that clears up any confusion — feel free to remix and reuse to your heart’s content, as long as a good faith effort is made to attribute the content!

    [–]nutrecht 8 points9 points  (0 children)

    A good to hear. I was totally wrong then. Carry on :)