Mercurial Hosting > reactionary
changeset 86:9b700f8d9610
learn java
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 21 Apr 2025 18:32:10 -0600 |
parents | 0d1a0fa301ea |
children | 5f4cc9d3d3cb |
files | src/learn.html.luan |
diffstat | 1 files changed, 47 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/src/learn.html.luan Fri Apr 18 10:51:59 2025 -0600 +++ b/src/learn.html.luan Mon Apr 21 18:32:10 2025 -0600 @@ -185,6 +185,53 @@ <% end } + java = { + title = [[Java 8]] + content = function() +%> +<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> + +<p>To learn Java, you will need the following resources:</p> +<ul> + <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> + <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> + <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> + <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> +</ul> + +<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> + +<h3>Install Java 8</h3> + +<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: + +<code block> +~ $ java -version +java version "1.8.0_241" +Java(TM) SE Runtime Environment (build 1.8.0_241-b07) +Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode) +~ $ +</code> + +<h3>Learn BeanShell</h3> + +<p>As with Bash, I will write my own <a href="beanshell.html">BeanShell tutorial</a>. Read it.</p> + +<h3>Learn Java</h3> + +<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> + +<% + end + } + luan = { + title = [[Luan]] + content = function() +%> +<p>later</p> +<% + end + } html = { title = [[HTML and CSS]] content = function() @@ -234,14 +281,6 @@ <% end } - luan = { - title = [[Luan]] - content = function() -%> -<p>later</p> -<% - end - } http = { title = [[HTTP]] content = function() @@ -250,14 +289,6 @@ <% end } - java = { - title = [[Java 8]] - content = function() -%> -<p>later</p> -<% - end - } lucene = { title = [[Lucene]] content = function()