For this installment of the Testing in Go series I'll share a really nifty way to deal with time in your unit tests. When the behavior you are testing depends on the current time it can be tricky to assert on the results because the current time is a moving target. So, usually we end up resorting to approximations in our assertions that, while functional, always bother me a bit. In some cases, dep
Insider: Oracle has lost interest in Java New sources are stepping up questions about Oracle's stewardship of the Java development platform There has been a lot of scuttlebutt lately about Oracle and a supposed de-emphasis on Java within the company. The rumblings are getting louder. From the apparent dismissal of Java evangelists to an email alleging a shrugged-shoulders attitude about Java, Orac
When we aren’t worried about storing any state, we don’t have to create an object in order to refer to a implementations in Go, or we can use an empty object. Thanks to @dchapes for simplifying this solution for me — I love the Go community, and Reddit :) Let’s say we want to describe types capable of encoding or decoding bytes to objects, we’ll call them Codecs: type Codec interface { Encode(w io
東日本の鉄道事業者37社で1日、混雑時を除いて優先席やその付近でも携帯電話を使えるようになった。JR東日本では車内放送やポスターで乗客に周知し、混乱は見られなかった。 1日午前9時前のJR山手線。体が触れあうほどだったり、空席が出来たり。駅ごとに混雑状況はまちまちだったが、優先席付近では常に誰かが携帯をいじっていた。 ゲームをしていた東京都港区の会社員須藤優美さん(21)は「『携帯を使うな』と怒鳴られたことがあり、これからは気兼ねせずに済む」。ニュースを見ていた江東区の田山圭さん(66)は「すでに電源オフは形骸化していた。新しいルールもどれだけの人が守るのだろうか」と話した。 鉄道37社は、携帯の電波が心臓ペースメーカーに与える影響は非常に低いとする総務省の指針を受け、優先席での携帯利用マナーの見直しを9月17日に発表。JR東日本によると、ルール変更に対し、ペースメーカー利用者からは不安の
2004年くらいからITという産業に関わり始めて、その頃は主流はフレッツISDNくらいだった。そこからADSLになり、FTTHになって、FTTHが主流になったのは2007年くらいかな。体感として。わずか5年程度で主流が変わった。 ISDNの頃のATMの装置は切り替えられ、電話線がメタルに、ファイバーになった。 ファイバーになって収容装置は変わって、伝送距離、光の減衰を意識するようになり、考え方は大きく変わった。FTTH以上の固定回線技術はなかなか普及しないかも。 FTTHを効率的に使う技術は流行しても、それ自体は変わらなそう。GE-PONがG-PONに変わるくらいかな。 これと同じことがモバイルのパケットコアで起きていることに驚愕した。 EPCは従来、エリクソンやNEC、ノキアといった100年企業が作り上げてきたモバイルネットワークの完成系の一つで、これからはハードウェアをACTAベースか
「初診は2年後になります」親が絶句する児童精神科の実態 子どもの発達障害なかなか診ず…実はパンク状態、その深刻な背景
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く