By Andrés Valloud

A developer constantly seeks larger knowing of software program engineering and layout. occasionally success intervenes and a mentor is helping to strengthen one's skills. despite the fact that, there are just such a lot of of those infrequent encounters, and hence, now not everyone seems to be afforded such possibilities. This e-book makes an attempt to take away good fortune as a proscribing issue for one's specialist progress in Smalltalk via disseminating fabric discovered over a number of years of mentoring.

Show description

Read or Download A Mentoring Course on Smalltalk PDF

Best programming: programming languages books

Thinking in Java (One-Off)

Pondering in Java, 3rd version is the much-anticipated revision of Bruce Eckel's best-selling creation to Java. In pondering in Java, 3/e, Bruce Eckel offers whole integration of JDK 1. four applied sciences to his award profitable 'Thinking in' presentation. Eckel introduces the entire fundamentals of gadgets as Java makes use of them, then walks conscientiously throughout the primary innovations underlying all Java programming -- together with application stream, initialization and cleanup, implementation hiding, reusing sessions, and polymorphism.

C# 2010 for Programmers (4th Edition) (Deitel Developer Series)

Written for programmers with a history in C++, Java or different high-level, object-oriented languages, this e-book applies the Deitel signature live-code method of educating programming and explores Microsoft’s C# 2010 language and . web four extensive. The ebook is up-to-date for visible Studio® 2010 and C# four, and offers C# options within the context of absolutely confirmed courses, whole with syntax shading, distinctive line-by-line code descriptions and software outputs.

Additional info for A Mentoring Course on Smalltalk

Example text

This means that if performAction is not implemented, this test will pass because the exception corresponding to a message not being understood is not ActionException. What, if anything, is wrong with this? 22 CHAPTER 1. IT’S ALL IN A NAME Live Smalltalk exercises Solving these exercises will definitely require a computer. Give them your best effort before looking at the solutions. 24 [31] In Classic releases of ObjectStudio Smalltalk (those prior to its inclusion in VisualWorks), some messages have no source code.

The symptoms are deep block or parenthesis nesting, and code redundancy. Techniques such as fast-out logic and truth table analysis are necessary to simplify or even maintain these expressions. These take time and effort to apply properly. Complex conditions offer a better way to write these expressions. Nesting and code repetition are avoided. The resulting code is inherently intention revealing, smaller, easier to read, and easier to maintain. The implementation is both light and flexible. Above all, complex conditions can save time and effort to a point where regular Smalltalk idioms cannot.

And: [bHasDot not]) ifTrue: [^false]. not and: [bHasDot]) ifTrue: [^true] Now that the similar statements are together, it is easier to see that whether the answer is true or false in the last two lines is equivalent to asking whether bHasDot is true1 . (aHasDot and: [bHasDot]) ifTrue: [^a < b]. (aHasDot not and: [bHasDot not]) ifTrue: [^a > b]. ^bHasDot This is certainly better than the original code. Nevertheless, it is not as good as it can be because there is a lot of redundancy: the intermediate results are referenced 5 times, 6 logical operators are being used, and the code still has a bunch of parentheses and square brackets.

Download PDF sample

Rated 4.56 of 5 – based on 46 votes