このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。
def concatAsString(a: Int, b: Int): String = {
val a_ = a.toString();
val b_ = b.toString();
$ dig @202.216.229.30 a cloudfront.net. | |
; <<>> DiG 9.9.2-P2 <<>> @202.216.229.30 a cloudfront.net. | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32100 | |
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2 | |
;; OPT PSEUDOSECTION: |
package main | |
import ( | |
"math/rand" | |
"fmt" | |
"strings" | |
) | |
var words = []string { | |
"ボ", |
$ ruby -e 'C=`stty size`.scan(/\d+/)[1].to_i;S="\xf0\x9f\x8d\xa3";a={};puts "\033[2J";loop{a[rand(C)]=0;a.each{|x,o|;a[x]+=1;print "\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H"};$stdout.flush;sleep 0.01}' |
scala> Iterator.iterate(0)(_ + 1).take(10).addString(new StringBuilder, ",") | |
res7: StringBuilder = 0,1,2,3,4,5,6,7,8,9 | |
scala> Stream.iterate(0)(_ + 1).take(10).addString(new StringBuilder, ",") | |
res8: StringBuilder = 0,? | |
scala> Iterator.iterate(0)(_ + 1).take(10).toString | |
res9: String = non-empty iterator | |
scala> Stream.iterate(0)(_ + 1).take(10).toString |
# Description: | |
# 進捗 is the most important thing in your life | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# | |
# Commands: |
// jQuery GC Helper - v0.9.5 | |
// | |
// Copyright (C) 2014 MURAOKA Taro | |
// Licensed under the MIT license. | |
(function(global, jQuery) { | |
var observer; | |
function callback(mutations) { |
Re: http://twitter.com/hondallica/status/436117998823165952
クソコードを見たとき: "Looking at this code is pure agony!"
同僚がバグを直してくれた時: "You are an angel sent to save me!"