In this blog post, Product Manager Curtis Johnson calls out key themes from the 2024 Java Developer Productivity Report.
![How to install and use JRebel in IBM WebSphere with Rational Application Developer or Eclipse | ZeroTurnaround.com](https://cdn-ak-scissors.b.st-hatena.com/image/square/6bad8e9b3c7b1be4088c059a6c6f17c1e889c66c/height=288;version=1;width=512/https%3A%2F%2Fzeroturnaround.com%2Fwp-content%2Fuploads%2F2016%2F02%2Fgradle-logo.png)
class: center, middle # とあるDoma2の使い方 Doma勉強会 in 東京 2016/07/09 --- class: left, middle ## 自己紹介 * 中村 学(Nakamura Manabu) * [@gakuzzzz](https://twitter.com/gakuzzzz) * 株式会社 Tech to Value * Japan Scala Association --- class: left, middle ## 今日の内容 うらがみさんの[Doma実践](http://backpaper0.github.io/ghosts/doma-practice.html#1)が面白かったので、<br/> 僕も普段こんな感じでDomaを使ってるよ、<br/>というのを紹介しようと思います。 --- class: center, middle #
はじめに Javaでコードを書いていると毎回必ず必要になるメソッドが有りますが、ちょっと面倒だな〜と感じることは無いでしょうか。 そこで使えるのがlombokというライブラリです。 環境 Mac OSX 10.10.5 Yosemite Eclipse 4.5.2 Mars Java 8 インストール まずlombokのサイトからjarファイルをダウンロードします。 Project Lombok - Download jarファイルはインストーラーになっているので、実行したら下記画面で対象のIDEを選択します。 ところが、Mac環境だとすんなり進ま無い事が有りますので、該当した方は下記の設定を行ってください。 参考:eclipse mars on mac で lombok インストーラが動かない時の対処法 Eclipseの「パッケージの内容を表示」から、/Eclipse.app/Cont
Gradleプラグインを公開する How do I add my plugin to the plugin portal? の通りに進めていけばオッケー! ざっくり書くと、 まず アカウントを作って 、 自分のページでAPI Keyを作って、 それを ~/.gradle/gradle.properties に書いて、 build.gradle へ Plugin Publishing Plugin の設定を書いて、 gradle publishPlugins で公開します。 Gradleプラグインを書くときに知ってて良かったこと 知ってて良かったことっていうかGroovyの文法なんですけど、 次のようなことを知ってたらわりとスムーズにプラグインを書けました。 アクセサメソッドはフィールドアクセスのように書ける。 例えば foo.getBar() は foo.bar と書ける。 そして foo
Effective Java に書かれている通り、 Java でシングルトンを作りたい場合は単一要素の enum を作成するという方法があります。そんでまぁ結構気軽に enum を使っていたんですが、コンストラクタで例外が発生しうるような実装にしてしまうと辛いということに気づきました。 例えばこんな enum を作って、 public enum SampleEnum { INSTANCE; private SampleEnum() { throw new RuntimeException("enumコンストラクタで例外"); } public void doHoge() { System.out.println("doHoge"); } } こんな感じで使ってみるとします。 public static void main(String[] args) { try { System.out.
In this article, I will present different ways of improving your Android code with automatic tools such as Checkstyle, Findbugs, PMD, and of course Android Lint. Test your code in an automated way can be very useful, especially when you are working with teammates, in order to maintain a rigorous syntax through your code, and avoid a lot of bad practices and errors. I will explain precisely how to
At ribot, we started using RxJava a few months ago and now it’s become a core element in the architecture of the Android apps we create. There are many benefits that come with it, but the learning curve is steep and quite often we still find ourselves trying to get our heads around those “beautiful” diagrams that explain how operators work. The first step to rx-ify our architecture was to change t
This post has three parts: quick primer on what an event bus is implementing the event bus with RxJava parting thoughts on this approach “RxBus” is not going to be a library. Implementing an event bus with RxJava is so ridiculously easy that it doesn’t warrant the bloat of an independent library. Part 1: What is an event bus? Let’s talk about two concepts that seem similar: the Observer pattern an
昨日のエントリーの続きです。 mike-neck.hatenadiary.com Gradle万能派の僕には、納得がいかなかったので、最後までやってみることにしました。 切り捨てたこと まず、分散テストは何が目的なのか考えると、テスト結果をマージすることが目的なので、以下のことは切り捨てました。 dockerの外でコンパイルしたクラスファイルの共有(昨日のドハマリその2により、共有してもコンパイルしてしまうので諦めた) srcディレクトリーの共有(Javaファイルを生成するタスクがある場合はsrcディレクトリーの共有をすると、各コンテナがJavaファイル生成を行ってしまうので、諦めた) 【2015/10/20 12:19追記】 つまり、コンパイル結果を共有しても再コンパイルされるので、buildディレクトリーの共有は諦めました この結果、妥協するのは次の点です。 各コンテナでソースコード生
ここ何日か Circle CI を使ってみて何となく分かってきた事をまとめておきます。 完成した circle.yml だけ欲しい方はこちらをどうぞ。 checkout: post: - chmod +x ./gradlew machine: timezone: Asia/Tokyo environment: GRADLE_OPTS: -Xmx4G -Dorg.gradle.daemon=true JAVA_HOME: /usr/lib/jvm/java-8-oracle post: - sudo service mysql stop - sudo service postgresql stop dependencies: pre: - sudo apt-get install software-properties-common - sudo add-apt-repository -y
アトラクションルームクラス。ルームに人を追加するaddメソッドを持つ。キャパシティは合計20あり、男性の大人は3、女性の大人は2、子供は男女とも1を消費する。キャパシティがいっぱいになったら満員で、それ以上は人を追加できない package spockexample; import org.junit.Before; import org.junit.experimental.runners.Enclosed; import org.junit.experimental.theories.DataPoints; import org.junit.experimental.theories.Theories; import org.junit.experimental.theories.Theory; import org.junit.runner.RunWith; import stati
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く