forked from RussianSmalltalk/pharo-by-example-ru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPBE2.tex
172 lines (137 loc) · 5.68 KB
/
PBE2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
% $Author: ducasse $
% $Date: 2009-09-05 14:10:56 +0600 (сб, 05 сен 2009) $
% $Revision: 28915 $
% HISTORY:
% 2008-02-04 - new umbrella
% 2009-04-23 - pharo -> squeak
%=================================================================
% This is the main file for the Pharo By Example book.
% The individual chapters can also be latexed by themselves.
% Note that the \end{document} marker occurs near the
% middle of this file, to leave out additional material
% for a future version of the book.
%=================================================================
\documentclass[a4paper,10pt,twoside]{book}
\usepackage[
papersize={6.13in,9.21in},
hmargin={.75in,.75in},
vmargin={.75in,1in},
ignoreheadfoot
]{geometry}
\input{common.tex}
\setboolean{lulu}{true}
%=================================================================
% Add the path for the figures of each chapter here:
\graphicspath{
{figures/}
{Monticello/figures/}
% {Debugging/figures/}
% {Profiling/figures/}
% {Installer/figures/}
% {Magma/figures/}
{Regex/figures/}
{Omnibrowser/figures/}
{Exceptions/figures/}
% {Concurrency/figures/}
% {Announcements/figures/}
% {Compiler/figures/}
% {Block/figures/}
}
%=================================================================
\let\wholebook=\relax
\makeindex
\makeglossary
%=================================================================
\renewcommand{\nnbb}[2]{} % Disable editorial comments
%=================================================================
\begin{document}
\frontmatter
%=================================================================
\setcounter{page}{1}
\pagestyle{headings}
%=================================================================
\author{
Alexandre Bergel\quad
Andrew P. Black\\[1ex]
St\'ephane Ducasse\quad
Oscar Nierstrasz\quad}
% (to be updated at the end)
\title{\Huge\bf More Pharo by Example\\[1ex]}
\isodate
\date{\emph{Version of \today}}
\maketitle
%=================================================================
\tableofcontents
% \listoffigures
% \listoftables
% \lstlistoflistings
\sloppy % To avoid LaTeX's annoying habit of letting lines stick over the margins!
\mainmatter
%=================================================================
\input{Preface/Preface2.tex}
%=================================================================
\part{Software Development}
\input{Monticello/Monticello.tex}
% \input{Debugging/Debugging.tex}
% \input{Profiling/Profiling.tex}
% \input{Installer/Installer.tex}
\part{Frameworks}
% \input{Magma/Magma.tex}
\input{Regex/Regex.tex}
\input{Omnibrowser/Omnibrowser.tex}
\part{Language}
\input{Exceptions/Exceptions.tex}
% \input{Concurrency/Concurrency.tex} % ON: seems to be broken for now
% \input{Announcements/Announcements.tex}
%\input{Block/Blocks.tex}
%=================================================================
% \printglossary
\bibliographystyle{jurabib}
\bibliography{scg}
\printindex
\end{document}
%=================================================================
% The following chapters are planned for later releases.
\input{Compiler/Compiler.tex}
%=================================================================
\chapter{Inheritance}
\on{or: The darker side of inheritance ?}
Include use and misuse of Inheritance.
\on{should be about idioms, not design!}
Prefer abstract superclasses.
Include the stuff that never gets talked about, like weak subclasses and variable subclasses.
Why it's impossible to subclass SmallInteger.
\ab{programming idioms involving inheritance. singleton, initialization, set... methods for instance initialization, self class and self species rather than using explicit class names. More as they appear. }
\chapter{Exceptions}
% Stef
\chapter{Concurrency}
Processes and friends.
\chapter{Dependency Mechanisms}
Stef sez: we need on overview on publish/subscribe and the dependency mechanisms in pharo.
\chapter{Common Errors}
The last chapter of Smalltalk with Style is a good source.
\chapter{Leftover stuff}
Time.
\section{XML processing :)}
\section{How make an image self executable with Pharo}
We save an image with our main application window already opened, and unwanted things disabled (halos, alt-., menus, etc). Additionally, we have a class-side \#startUp: method to initialize what's necessary on startup, like re-reading config files etc.
The image is started automatically when double-clicking "plopp.exe", or rather a short-cut in the program menu placed there by the installer. This exe is nothing more than a renamed Pharo.exe, with a different icon patched in using a resource editor. There is a VM config file "plopp.ini", which most importantly contains the path to the image to load (see http://minnow.cc.gatech.edu/squeak/3274).
The exe along with the needed plugins, the image and other data files is installed in the "programs" directory by a regular Windows installer (InstallShield).
It's really not too different from other applications, which nowadays also consist of an executable and several additional files. That the actual application logic in Squeak's case is not contained in the executable but in a "data file" is of no concern to the end user.
Note that this is an FAQ item (http://minnow.cc.gatech.edu/squeak/3563). Feel free to put my explanation on the Swiki, I haven't checked carefully if a similar answer is already there.
- Bert -
%=================================================================
% \printglossary
\bibliographystyle{jurabib}
\bibliography{scg}
\printindex
\end{document}
% \end{document} % NB: The actual end is further up
%=================================================================
%%% Local Variables:
%%% coding: utf-8
%%% mode: latex
%%% TeX-master: t
%%% TeX-PDF-mode: t
%%% ispell-local-dictionary: "english"
%%% End: