Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add understanding Java workshop #302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

illicitonion
Copy link
Member

This is intended to be completable by someone with no Java experience.

The specific issues that need to be diagnosed (which hopefully volunteers can guide through based on error messages even without knowing Java) are:

  • String.split takes a regex String, not a literal String to split on. This feels like a reasonable debugging/documentation thing to identify.
  • Identifying that InetAddress.getAllByName exists to resolve DNS names. This is easily Googled.
  • Identifying that InetAddress.getAllByName throws a checked exception, so requires either a try-catch or a throws. This requires interpreting an error message: "error: unreported exception UnknownHostException; must be caught or declared to be thrown" and turning that into action.
  • Identifying that InetAddress.getHostAddress gets a string representation of an IP address. This feels like a reasonable documentation thing to identify.

Fixes CodeYourFuture/curriculum#1327

This is intended to be completable by someone with no Java experience.

The specific issues that need to be diagnosed (which hopefully
volunteers can guide through based on error messages even without
knowing Java) are:
* String.split takes a regex String, not a literal String to split on.
  This feels like a reasonable debugging/documentation thing to
  identify.
* Identifying that `InetAddress.getAllByName` exists to resolve DNS
  names. This is easily Googled.
* Identifying that `InetAddress.getAllByName` throws a checked
  exception, so requires either a `try`-`catch` or a `throws`. This
  requires interpreting an error message:
  "error: unreported exception UnknownHostException; must be caught or declared to be thrown"
  and turning that into action.
* Identifying that `InetAddress.getHostAddress` gets a string
  representation of an IP address. This feels like a reasonable
  documentation thing to identify.
Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for cyf-workshop ready!

Name Link
🔨 Latest commit 61eda39
🔍 Latest deploy log https://app.netlify.com/sites/cyf-workshop/deploys/67adfc04dbc60c00081a011b
😎 Deploy Preview https://deploy-preview-302--cyf-workshop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for cyf-workshops canceled.

Name Link
🔨 Latest commit 61eda39
🔍 Latest deploy log https://app.netlify.com/sites/cyf-workshops/deploys/67adfc0416148f0008af25e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make SDC workshop for "understand and change some Java code"
1 participant