Stories
Slash Boxes
Comments

SoylentNews is people

posted by Fnord666 on Sunday January 21 2018, @01:59PM   Printer-friendly
from the free-stuff dept.

Here is an excellent collection of 45 free books in PDF format which I found here — "Programming Notes for Professionals" books.

The PDFs contain this on one of their very first pages:

Please feel free to share this PDF with anyone for free

This ${insert title here} Notes for Professionals book is compiled from Stack
Overflow Documentation, the content is written by the beautiful people at Stack
Overflow. Text content is released under Creative Commons BY-SA, see credits at
the end of this book whom contributed to the various chapters. Images may be
copyright of their respective owners unless otherwise specified.

Because of the range of software development related topics covered, I thought this might be of interest to a large fraction of people on SN.


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by requerdanos on Sunday January 21 2018, @11:52PM (2 children)

    by requerdanos (5997) on Sunday January 21 2018, @11:52PM (#625883) Journal

    In fact, "Two statements may be joined by a semicolon, but not a comma" literally applies equally to English and to programming contexts such as C, SQL, and PHP... It is also one of the most "not that hard" things that could possibly apply here.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 2, Informative) by jb on Monday January 22 2018, @02:31AM (1 child)

    by jb (338) on Monday January 22 2018, @02:31AM (#625921)

    In fact, "Two statements may be joined by a semicolon, but not a comma" literally applies equally to English and to programming contexts such as C, SQL, and PHP...

    Not quite. At least in C it is perfectly legal to join two statements with a comma. This is most commonly seen when initialising a loop, as in:

            for (i = 0, j = 0; i < k - j; i++)
                a[i] = foo(i, &j);

    • (Score: 1, Interesting) by Anonymous Coward on Monday January 22 2018, @02:46PM

      by Anonymous Coward on Monday January 22 2018, @02:46PM (#626077)

      At least in C it is perfectly legal to join two statements with a comma.

      No, it isn't. It is legal (in contexts where the comma isn't interpreted as argument separator) to join expressions with a comma, forming another expression. Now in C, a statement may (and often does) consist only of an expression, but not all statements are of that form. For example, the following is a valid sequence of two statements:

      a += b;
      if (a > 10) do_something();

      If it were legal to join statements with a comma, then the following would be legal code, too:

      a += b, if (a > 10) do_something();

      Your compiler will tell you otherwise.