GithubHelp home page GithubHelp logo

bootcamp-2021-feb's Introduction

bootcamp-tasks

A project containing bootcamp lessons and exercises

Getting started

Prerequisites

You need:

  • Laptop with Linux, Mac OS X, or recent Windows

Note, if you have Linux or Mac, you can install these using your package manager. In case of Mac, use Homebrew.

Check that everything works

Run lein nightlight in the project's root folder. You should see something like this:

Open your browser and navigate to localhost:4000. You should see the Nightlight editor environment.

Open the Clojure REPL tab on the right, and type (+ 1 1) into the REPL. You should get a result.

From the right side menu, navigate to src/bootcamp/topics/aaa_intro.clj. Click on InstaREPL at the top of the editor. You should see something like this:

You may continue with setting up your IDE if you wish, but only Nightlight is required for the first part of training.

Setup your IDE

General

The development process for Clojure is radically different from Java development process. Likewise, the features that you'll want from your IDE are also different.

The important features that you should look for in Clojure IDE are:

  • REPL, the IDE should allow access to project REPL
  • Evaluating from source, you should be able to select part of source code and send it to REPL for evaluation

The State of Clojure survey for 2020 found the most popular editors to be Emacs+Cider and IDEA+Cursive. If you're familiar with Emacs (or vim), you can use those. If not, consider IDEA+Cursive, or VS Code+Calva if you want a free and open source editor environment.

IntelliJ IDEA with Cursive

Follow the instructions for installing Cursive in here https://cursiveclojure.com/userguide/

Import the project as described in this page https://cursiveclojure.com/userguide/leiningen.html

Visual Studio Code with Calva

Microsoft Visual Studio Code has Calva plugin for Clojure code. The plugin can be installed through the Visual Studio Marketplace (just click the "Extensions" icon and search for "Calva").

Vim

See https://gist.github.com/Deraen/da73db508e75eb4aad71 for list of few useful plugins and settings.

Emacs

See https://github.com/clojure-emacs/cider

Copyright

Copyright © 2021 Metosin

bootcamp-2021-feb's People

Contributors

kauko 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.