Merged
Conversation
…e.main with options is deprecated, use -M -m greet.main everyone`
Owner
|
Hi @sumbach , thanks for these fixes, I'm glad you found the series useful! Your other suggestions all look sensible to me, so I'm happy to merge this as is and apply them myself, or wait if you want to add those to this PR, whichever you prefer. |
Contributor
Author
|
@lkitching Glad to hear from you 😀 I was planning to split my "all-suggestions" branch into 3 PRs:
If you're comfortable with that, please merge this PR as-is and I'll rebase and open those follow-up PRs. |
Owner
|
Ok that plan sounds good, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is absolutely awesome @lkitching! I've been working with Clojure and the JVM for years and still learned a lot from working through this. Thank you!!
(Thank you also to @kirahowe for the recommendation 😄 )
I bumped into a few minor issues as I worked through the examples. With the changes in this PR, I was able to work through all the examples, see the same behavior, and get more comfortable with the JVM (and Maven, and tools.build 👍 ).
There are a few other potential stumbling blocks that I wanted to discuss with you before attempting to correct/improve:
javac: directory not found: ...until I manually created the output directory (mkdir -p classes/libhello/mkdir -p classes/app).javac: directory not found: ..., though if you assume you're in the same directory as Chapter 4 we might just assume these directories already exist...mkdir appbecause of a slight inconsistency between Chapters 4 and 5:javac -d classes/app -cp libhello.jar src/app/Echo.javavsjavac -cp json-java.jar:libhello.jar -d app EchoJSON.java.cd libhello/cd json-testbeforemvn package,mvn install, etc.cd mainbeforeclojure -M -m greet.main --excite everyone..classfile format specification for the first time yesterday...)java/lang/System.outin thejavapoutput, andjava/lang/System::outin the Constant Pool table. This isn't something I'm intimately familiar with, so perhaps the::double-colon syntax is common.I know this is a lot. Happy to split any of this out to separate issues/PRs if that's helpful. Thanks again!!