Mercurial Hosting > reactionary
comparison src/learn.html.luan @ 86:9b700f8d9610
learn java
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 21 Apr 2025 18:32:10 -0600 |
parents | c6d9fab4779a |
children | 416bdc22a478 |
comparison
equal
deleted
inserted
replaced
85:0d1a0fa301ea | 86:9b700f8d9610 |
---|---|
183 </code> | 183 </code> |
184 | 184 |
185 <% | 185 <% |
186 end | 186 end |
187 } | 187 } |
188 java = { | |
189 title = [[Java 8]] | |
190 content = function() | |
191 %> | |
192 <p><a href="/java.html">Java</a> is not an easy language to learn and if you later use Python or Luan then you won't use Java much. So why learn it first? Because it will give you a core understanding of programming. Also, ChatGPT understands Java very well, so this can help you learn it. And lastly because Java will help you understand Luan.</p> | |
193 | |
194 <p>To learn Java, you will need the following resources:</p> | |
195 <ul> | |
196 <li><a href="https://docs.oracle.com/javase/8/docs/api/overview-summary.html">Java 8 API Specification</a> - This is the reference for the different types of Java objects and what they do. I will refer to this a lot.</li> | |
197 <li><a href="https://www.amazon.com/Java-Programming-Language-4th/dp/0321349806/">The Java Programming Language</a> - This is the core reference text for Java.</li> | |
198 <li>You should get a Java book for beginners. Unfortunately they are all horrible. Sorry, but you still have to get one and read it.</li> | |
199 <li>For desktop GUI programming, you will need <a href="https://docs.oracle.com/javase/tutorial/uiswing/">Creating a GUI With Swing</a>, <a href="http://www.miglayout.com/">MigLayout</a>, <a href="https://www.formdev.com/flatlaf/">FlatLaf</a>, and <a href="https://docs.oracle.com/javase/tutorial/2d/">2D Graphics</a>.</li> | |
200 </ul> | |
201 | |
202 <p>I am not so sadistic as to have you start with straight Java. That would be too painful. Instead I will have you start with a gentler interface to Java called BeanShell. Here are the steps to learning Java:</p> | |
203 | |
204 <h3>Install Java 8</h3> | |
205 | |
206 <p>Download <a href="https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html">Java (JDK) 8</a> and install it. Your Java book for beginners may have more detailed instructions. Of just ask ChatGPT if you have trouble. After installing the JDK, you can check it like this: | |
207 | |
208 <code block> | |
209 ~ $ java -version | |
210 java version "1.8.0_241" | |
211 Java(TM) SE Runtime Environment (build 1.8.0_241-b07) | |
212 Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) | |
213 ~ $ | |
214 </code> | |
215 | |
216 <h3>Learn BeanShell</h3> | |
217 | |
218 <p>As with Bash, I will write my own <a href="beanshell.html">BeanShell tutorial</a>. Read it.</p> | |
219 | |
220 <h3>Learn Java</h3> | |
221 | |
222 <p>Now it's time to read your Java book for beginners and try writing some Java programs. Refer to <a href="https://www.amazon.com/Java-Programming-Language-4th/dp/0321349806/">The Java Programming Language</a> for details and ask ChatGPT for explanations. You do not need to become a Java expert, so don't spend too much time on this. You just need to get the basic idea of Java.</p> | |
223 | |
224 <% | |
225 end | |
226 } | |
227 luan = { | |
228 title = [[Luan]] | |
229 content = function() | |
230 %> | |
231 <p>later</p> | |
232 <% | |
233 end | |
234 } | |
188 html = { | 235 html = { |
189 title = [[HTML and CSS]] | 236 title = [[HTML and CSS]] |
190 content = function() | 237 content = function() |
191 %> | 238 %> |
192 <p>Google Chrome is the standard client-side web development tool. So the first step is to make sure that you have Chrome installed and running.</p> | 239 <p>Google Chrome is the standard client-side web development tool. So the first step is to make sure that you have Chrome installed and running.</p> |
232 %> | 279 %> |
233 <p>later</p> | 280 <p>later</p> |
234 <% | 281 <% |
235 end | 282 end |
236 } | 283 } |
237 luan = { | |
238 title = [[Luan]] | |
239 content = function() | |
240 %> | |
241 <p>later</p> | |
242 <% | |
243 end | |
244 } | |
245 http = { | 284 http = { |
246 title = [[HTTP]] | 285 title = [[HTTP]] |
247 content = function() | |
248 %> | |
249 <p>later</p> | |
250 <% | |
251 end | |
252 } | |
253 java = { | |
254 title = [[Java 8]] | |
255 content = function() | 286 content = function() |
256 %> | 287 %> |
257 <p>later</p> | 288 <p>later</p> |
258 <% | 289 <% |
259 end | 290 end |