June 2019 Summaries
2 posts from Tabnine
Filter
Month:
Year:
Post Summaries
Back to Blog
In the realm of Java software development, connecting code with other software often involves using JSON, a lightweight and language-independent data interchange format, to facilitate the conversion of Java objects to JSON strings. This process is crucial for enabling communication between a Java-based RESTful web service and mobile or web applications, which often use JSON for data transactions. Developers typically use APIs like Jackson or GSON to convert Java objects to JSON strings. The Jackson API employs the ObjectMapper class to perform this conversion, while GSON uses the Gson class. Both methods involve including the necessary JAR files in the project's classpath and utilizing specific methods like `writeValueAsString()` for Jackson or `toJson()` for GSON to achieve the conversion. Meanwhile, Tabnine, an AI-powered coding assistant, enhances the software development process by providing personalized code completions, context-aware recommendations, and code documentation capabilities, while ensuring security and compliance through its open-source code training and customizable deployment options.
Jun 27, 2019
1,647 words in the original blog post.
Kotlin and Scala are two prominent JVM languages that aim to improve upon Java by offering unique strengths and addressing different development needs. Scala, introduced in 2004, is well-suited for big data and complex mathematical applications due to its robust pattern matching, macros, and higher-kinded types, boasting a strong following and a diverse community. However, it suffers from slow compilation speeds and less seamless Java interoperability. Kotlin, on the other hand, launched by JetBrains in 2012, excels in Android development with its concise syntax and superior Java compatibility, supported by corporate backing from Google and JetBrains. While Kotlin's community is still growing, it offers faster compilation and reduced boilerplate code, making it ideal for projects within the Android ecosystem. Ultimately, the choice between these languages depends on the specific needs and goals of a given project, with Scala favoring data science and mixed paradigms, and Kotlin being the go-to for Android applications.
Jun 10, 2019
1,214 words in the original blog post.