duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| import Cocoa | |
| class MyAppDelegate: NSObject, NSApplicationDelegate { | |
| let window = NSWindow() | |
| var didFinishLaunching: NSWindow -> () = { _ in () } | |
| func applicationDidFinishLaunching(aNotification: NSNotification) { | |
| didFinishLaunching(window) | |
| } | |
| } |
| #!/usr/bin/env bash | |
| ## Given a Clojure source file, 'example.clj' | |
| ## Where the contents are captured by START and END comments like: | |
| ## | |
| ## ;;START SomeTagName | |
| ## (println (inc 2)) | |
| ## ;;END | |
| ## | |
| ## Run this script: colorblock.sh example.clj SomeTagName |
| ------------ | |
| Conformances | |
| ------------ | |
| protocol AbsoluteValuable | |
| Conformances: | |
| Comparable | |
| IntegerLiteralConvertible | |
| SignedNumberType |
| // One note before we start: if the inhabitants of Value are a closed set, | |
| // then making Value an enum is going to be a clearer model than using a | |
| // protocol like this. I'm assuming you need to be able to retroactively add | |
| // new members of Value. | |
| // Can't use Equatable directly because of its Self requirement. | |
| protocol HeteroEquatable { | |
| func isEqualTo(value: HeteroEquatable) -> Bool | |
| } |
PS: If you liked this talk or like this concept, let's chat about iOS development at Stitch Fix! #shamelessplug
Speaker: David Abrahams. (Tech lead for Swift standard library)
"Crusty" is an old-school programmer who doesn't trust IDE's, debuggers, programming fads. He's cynical, grumpy.
OOP has been around since the 1970's. It's not actually new.
Classes are Awesome
| # | |
| # In your project.clj, make sure you're currently using test.check | |
| # version 0.7.0, then add a plugins entry: | |
| # | |
| # :plugins [[com.gfredericks/corncob-cigar "0.1.4"]] | |
| # | |
| # Then run: | |
| echo "Testing 0.7.0..." > test.check.log | |
| lein do clean, benchmark-task 10 test 2>/dev/null | grep "Ran task 10 times" >> test.check.log |
| ;; Copyright (c) Alan Dipert. All rights reserved. | |
| ;; The use and distribution terms for this software are covered by the | |
| ;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
| ;; By using this software in any fashion, you are agreeing to be bound by | |
| ;; the terms of this license. | |
| ;; You must not remove this notice, or any other, from this software. | |
| (defn paths | |
| "Enumerate paths into a nested map." | |
| ([root] |
| toccata | |
| (def true) | |
| (def false) | |
| (def abort) | |
| (def get-type) | |
| (def type=) | |
| (def subs) | |
| (def number-str) |