Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...
![総まとめ:Javaの将来的な後継者としての Scala](https://cdn-ak-scissors.b.st-hatena.com/image/square/587e2d3a83417ac27fda05f120f431c101b887a7/height=288;version=1;width=512/https%3A%2F%2Fcdn.infoq.com%2Fstatics_s2_20240702064044%2Fstyles%2Fstatic%2Fimages%2Flogo%2Flogo-big.jpg)
ネタ元 業務系のJavaプログラマーが知っておくべき10個のBad Partsとその対策 結論から先に言うと、3と10以外は結構直接的にscalaで解決できるというか、javaに比べてscalaの方が便利だとおもいます。*1 あと、元ネタのblogの人はgroovy詳しいみたいですが・・・ groovyとscala比べるとgroovyの方が手軽で便利だったり、scalaのほうが型安全だったり*2いろいろあるかもしれませんが、groovyあまり詳しくないので、その辺の言及というか、比較はやめておきます。*3 1.標準APIのチェック例外が扱いにくい チェック例外ってなにそれおいしいの?(・ω・) java Field field; try { field = getClass().getField("testField"); Object value = field.get(this); }
このシリーズの一覧はこちら はじめに 昨日(2011-02-19)に第2回Scala道場に参加してきたわけですが、コーディング最中に一点はまったことがあったのでメモしておく。 はまった点 まずは、ソースコード*1をご覧下さい。 /* DishOrderSheetTest.scala */ package dishs object DishOrderSheetTest { def main(args: Array[String]): Unit = { var os: DishOrderSheet = new DishOrderSheet(800) // <- ココ注目! var ios: IDishOrderSheet = os.takeOrderSheet System.out.println("1:" + ios.getOrderValue) os.setOrderId("k.kano_
id:ryoasaiさんと先日会社で話した内容が、「いまさらだけど、Java言語にはクロージャーがない」にまとめられたけれど、関数リテラルが利用できるという文法の話と、引数以外の外部変数(自由変数)が参照できるという機能の話が混ざっている気がします。 前者の意味では現在の Java 6 にはクロージャがないけれど、後者の意味では Java でも内部クラスで同様なことが実現できます。他の言語が内部的にクロージャをどう実現しているか詳しくは知りませんが、クロージャを導入する土台は既にあると考えています。C/C++ でクロージャを実現するよりはかなり敷居が低いかと。 「想像以上にガラパゴス化した日本のIT業界?」で、Groovy と Scala の比較もされているようなので、クロージャに関して、Java、Scala、Groovy の違いを整理しておこうと思います。 記事で引用されている クロージ
ArticlesBase Updates and Latest Information for Our Readers and Community Members Since 2005, ArticlesBase.com has been committed to serving the online community with free-to-read informative articles across multiple categories. We have been a pioneer in user-generated content. However, with the changing nature of the internet and how users interact with content online, we have considered pivoting
This is a development-focused blog covering Java software development. This blog entry is inspired by a blog post I read recently bashing Groovy in favor of Scala. I will opportunistically join in the brawl, contributing my 2 cups of kerosene to the flames by coming out in favor of Groovy. If you are not interested in the language wars, or if you take this sort of thing way too seriously, feel fr
API (App Programming Interface) is an interface software program that helps to interact with other software like a user interface (UI). It is the primary entry point for a website and app, including third-party integration, making life easy for developers. This article is for those considering using APIs in their coding projects. Let's see, what are APIs? APIs provide a way for an app to interact
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く