SparkJava

Creating webapps with the Spark framework for java

On website: https://ucsb-cs56-pconrad.github.io/tutorials/sparkjava

SparkJava tutorials: table of contents

Section Code
(github repo)
Topics Covered
Rational: ex01 code private data members, public constructors, integers from command line arguments, main methods, built in toString method, simple compilation/execution with javac/java
Rational: ex02 code toString method, public getters, simple build.xml file for Ant, mutiple classes with main() in a single project
Rational: ex03 code creating a jar file, automatic testing with junit, creating and publishing javadoc
Rational: ex04 code move source to /src and .class files to /build, adjustments to Ant build.xml, discuss immutable objects
Rational: ex05 code Addressing bugs with test-driven development (expose bug with test first, then make test pass to squash bug)
Rational: ex06 code understanding inheritance (from java.lang.Object), linking from our javadoc to Java standard libraries, negative rational numbers, multiplying rational numbers
Rational: ex07 code Exceptions, testing for Exceptions with JUnit
Rational: ex08 code functions (methods) to multiply two rational numbers
Rational: ex09 code == vs. .equals, hashCode()
Rational: ex10 code packages: edu.ucsb.cs56.pconrad.rational
Rational: ex11 code Using java arrays and java.util.ArrayList with Rational; running main() programs from a jar file; reading from file, constructing from string
Rational: ex12 code Converting from Ant to Maven, adding jacoco test case coverage
Rational: ex13 code Improved test case coverage
Rational: ex14 code Java Lambdas
Rational: ex15 code Sorting: Comparable, Comparators