Giter Site home page Giter Site logo

codingbat-go's Introduction

Codingbat for Golang

I found Nick Parlante's codingbat.com programming exercise site useful and enjoyable when I was learning Python. I wanted something similar to practice "little code" as I learn Golang. Since there is no official support for Go at codingbat.com, I created this repo as a port of the Codingbat Python exercises to Go.

I'm very grateful to Nick for having created Codingbat. But this is not an official Codingbat project. I've done my best to port the exercises and unit tests accurately. However, it is a port and I'm just learning Go so there could be errors and non-idiomatic code. These problems were almost certainly introduced by me, not CodingBat. If you find better ways to do things, feel free to submit a PR.

How to use

The repo is organized with each sub-directory representing the problems in a specific CodingBat category. Each directory has a <catagory>.go file with stub functions you need to finish coding to pass the unit tests in the <category>_test.go file in the same directory.

  1. Install Go in your local environment in whatever way you want.
  2. Clone the repo to your local environment: git clone https://github.com/rwehner/codingbat-go.git
  3. Choose a directory and start coding solutions in its <category>.go file.
  4. Validate your solutions by running go test -v in the sub-directory.

Solutions

Ideally, write your own. However, there is a solutions branch in this repo that has my solutions. As with the tests, these solutions are likely not particularly idiomatic, but they pass the tests.

codingbat-go's People

Contributors

rwehner avatar

Watchers

 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.