Skip to content

Instantly share code, notes, and snippets.

View hhariri's full-sized avatar

Hadi Hariri hhariri

View GitHub Profile
public class PascalHumanizerTests(): Spek() {{
val data = listOf(
"ThisIsATest" to "This Is A Test",
"ThisIsAnotherTest" to "This Is Another Test"
)
givenData(data) {
val (input, expected) = it
on("calling humanize", {
public class PascalHumanizerTests(): Spek() {{
val data = listOf(
"ThisIsATest" to "This Is A Test",
"ThisIsAnotherTest" to "This Is Another Test"
)
given(data) {
on("calling humanize", {
val actual = it.component1().humanize()
fun String.extendingStrings() {
}
data class ThisDto(val nameProperty: String, val emailProperty: String) // DTO
// gives me hashCode, toString, equal operator (comparing properties) and two immutable properties name, email
var REVEALING = function () {
var privateProp = "Log";
var PIVALUE = 3.14;
log = function (message) {
console.log(privateProp + ": " + message);
};
val server = AppServer()
server.serveStaticFilesFromFolder("/public")
server.useBasicAuthentication("private-area", path = "/private", callback = { (user, pass) -> user == pass })
server.get("/headers", {
request.rawHeaders.forEach {
println("${it.first}: ${it.second}")
}
response.send("Hello!")
val http = EasyHttp()
http.post(
url = "http://httpbin.org/post",
contents = Customer(name = "Joe", email = "joe@gmail.com"),
headers = RequestHeaders(contentType = "application/x-www-form-urlencoded"),
callback = { assertEquals(StatusCode.OK, statusCode) }
)
var o = Observable.from(arrayListOf("1", "2", "3", "4"))
o.subscribe(
onNext = { result -> println(result)},
onError = { (error) -> println(error)},
onComplete = { () -> println("Complete")}
)
fun main(args: Array<String>) {
val httpClient = HttpClient()
httpClient.get("http://site.com") {
println(body)
}
}
fun main(args: Array<String>) {
val httpClient = HttpClient()
httpClient.get("http://site.com") { response -> Unit
println(response.body)
}
}
1. It's a boy's club (by and large)
2. The submission process is major pain. 100 fields to fill out
3. They want it to be focused entirely around Microsoft products, and giving little attention to other important values of software development.
4. They don't cover travel expenses unless you know somebody or fight for it. And covering for some and not all is wrong.
5. They want to review your presentation and have the right to modify it if they want.
6. It's hardly about development anymore, but IT.
and finally, the whole conference is a lot of hype and somewhat arguable formalities.