Hello, Startup: A Programmer's Guide to Building Products, Technologies, and Teams by Yevgeniy Brikman

Hello, Startup: A Programmer's Guide to Building Products, Technologies, and Teams by Yevgeniy Brikman

Author:Yevgeniy Brikman
Language: eng
Format: mobi, pdf
Publisher: O'Reilly Media
Published: 2015-10-20T14:00:00+00:00


java.lang.AssertionError:

Expected :{hello=3, startup=2, people=1, world=1}

Actual :{Hello=3, startup=2, world=1}

You can see that the punctuation problem is fixed, but now there are two new problems. First, the code isn’t handling capitalization correctly, so “Hello” and “hello” are treated as different words. Second, the word “people” has disappeared, but it’s not obvious where. It is tempting to use a debugger or some println statements to figure out what’s going on, but if the error message from the test case isn’t enough to figure out what’s wrong, it might be a sign that something is wrong with the design of the code. If you break down the code in calculateWordCounts, you’ll see that it performs two separate tasks:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.