Coder Social home page Coder Social logo

jshell's Introduction

JShell Utilities Example

In this repo, you'll find several folders:

  • imports
  • libs
  • startups
  • utils

Imports

This directory contains pre-defined, commonly used imports.

You'll find as you use JShell more and more that it becomes quite painful to have to re-type a bunch of import statements when you want to use or experiment with a particular external library.

Instead, you can save all the necessary import statements into a file and then utilize the /open command to bring them in.

Libs

This directory is pretty self-explanatory and contains any and all external libraries that you might use with JShell. You can choose to organize your libraries in whatever fashion makes the most sense, whether it's all in one directory or on a per-project basis. Whatever it is, having all your external libraries organized in an easily loadable way will save you time in the end, as we saw in the Classpath Tips section.

Startups

You can utilize this directory to store any startup or initialization code. This is a feature that's directly supported by JShell with the --startup parameter.

These files are similar, in nature, to the type of files located in the imports directory but they go beyond just imports. These files are meant to contain any necessary commands, imports, snippets, methods, classes, etc needed to initailize your JShell environment.

Utils

We all know how verbose Java can be. This directory, as it's aptly named, is meant to contain any utility or "shortcut code", that will make your time spent with JShell more enjoyable. The type of files you would store here are very similiar to the special PRINTING file that comes with JShell, which defines a number of shortcut methods for printing text.

jshell's People

Contributors

anykeydev avatar dustinschultz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.