Throw in version numbers for the languages, and it's just too much.įirst line that is repeated twice “Let’s assume that that you’ve actually managed the difficult task” If I just took the top 4 platforms, I'd be going through examples in 28 language/platform combinations. When running in Win32 build Io- I don’t see “asObject” in the list when I type “Map proto” and when I create a Map and fill a map I get the following when I try to run “asObject”:Įxception: Map does not respond to ‘asObject’Įxception: Map does not respond to ‘asobject’ On the Win32 build Io- when I run “true and 0” (true and zero) I get 0 (i.e. Under the “Day 1 self study” heading, in the “Find:” section, the first item reads “Some Io examples problems” I believe the word “examples” should not be pluralized, e.g. Of those language have procedural elements too.”Ģ ‘of’: “…method returns an array of of methods.” ‘language’ should be ‘languages’: “…but many => list(“find my car”, “find Continuum Transfunctioner”, “Find a present”)Īdding “Get girlfriend a present” results in the list having “Find a present” added to it? Io> toDos append(“Get girlfriend a present”) > list("find my car", "find Continuum Transfunctioner") Io> toDos := list(“find my car”, “find Continuum Transfunctioner”) Was too popular and and replaced it with…” Two ‘and’ in the sentence: “I struck JavaScript because it “…I picked are not necessarily the best, but each each one is unique…” 2 “each” “Thus is is with programming.” Should only have 1 is It doesn’t seem important to show that a.any? did not change the state of ‘a’ it wasn’t clear to me if this was an oversight or meant to demonstrate something. Method is called ‘to_file’ in text, and called ‘to_f’ in example codeĪ.sort called twice and ‘a’ assigned twice. That the system splits out when you make an error.” “… it is rather a matter of getting the semicolons andĬommas in the right places and understanding the weird error messages Seems like “spits out” may have been the intended phrase but just because I’ve never heard “splits out” (i.e. (irb):61: syntax error, unexpected ‘!’, expecting $end It looks like the !! and ! operators in the Ruby conditional examples should have been || and | (double pipe and pipe): I found that one a bit difficult to understand for newbies as well. I know the grammar is that of the as is. That way there is a specific element in the grammar (I called it messages, a better name can be found) that represent the receiver message chain. I would explain that the construction message message (allowed by the grammar) means sending the second message to the first message object. In fact, the construction receiver message does not appear in the BNF grammar. What is the difference between := and ::=? When would you use each one?īy reading the previous page and the BNF grammar I CAN’T really tell that receivers go on the left an messages on the right. What is the difference between =:= and ::=? When would you use each one? Unless Io is able to “simplify” “Get girlfriend a present” to “Find a present”. Io> toDos append("Get girlfriend a present") > list(“find my car”, “find Continuum Transfunctioner”, “Get girlfriend a present”) Io> toDos append(“Get girlfriend a present”) > list("find my car", "find Continuum Transfunctioner", "Find a present") #Elements of programming interviews errata code#As far as I can tell the same happens with C#.Īs an example, the next Java code would not compile: That’s true of C, but in Java 0 is not false, because in Java 0 is not a boolean but an integer. Make a note: 0 is true as in Ruby, not false as in Java, C, or C#.” The code examples with the logical or operator mistakenly use exclamation marks (!) instead of pipe characters (|) thus generating unexpected errors. This seems to be a recurrent typo throughout the book. #Elements of programming interviews errata mac os x#Mac OS X should be spelled with a capital X. > list(“find my car”, “find Continuum Transfunctioner”, “Find a present”) > list("find my car", "find Continuum Transfunctioner","Get girlfriend a present") The last code line of the page should read: Historical errata for Seven Languages in Seven Weeks
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |