Safe Unsafe: How to Write Portable and Production Quality Code Using Unsafe

Java Lobby Announcements - Mon, 2017-04-17 06:01

Unsafe (sun.misc.Unsafe) is one of the least understood and mysterious aspects of Java. As the name suggests, improper use of it can lead you to violate the ‘safety’ guarantees provided by Java and so the JDK builds in safeguards to make it difficult for the Java programmer to access it. In particular, trying to obtain a reference to its singleton instance in the JVM will throw a SecurityException in most cases.

The JDK itself uses Unsafe. You can see that in the Atomic classes: AtomicInteger, AtomicLong, etc., where you will see that Unsafe provides access to the CAS calls that these atomics use.

Categories: Java

Is NoOps the End of DevOps? | @DevOpsSummit #NoOps #DevOps #SDN #AI

JDJ - Mon, 2017-04-17 05:45
Automation, a key pillar of the DevOps movement, frees IT operations to focus on higher-levl work and collaborate with cross-functional teams. But what if your automation is so good that developers don’t need you anymore? Mike Gualtieri of Forrester Research coined the term NoOps in his controversial blog post “I don’t want DevOps. I want NoOps.” In the post, Gualtieri says, “NoOps means that application developers will never have to speak with an operations professional again.”

read more

Categories: Java

Code Intelligence for Java Now Available on Sourcegraph

Java Lobby Announcements - Sun, 2017-04-16 18:01

We've just announced general availability for Java on Sourcegraph. If you write Java, this means that you can now use Sourcegraph to:

  • Explore code without losing your place in your editor
  • Get IDE-like functionality to your code review tool
  • Learn from usage examples drawn from across the open-source world
  • Have more efficient code discussions by linking directly to the code in question
  • Make every piece of code easily searchable and accessible for every member of your team

Every feature mentioned in this post is available now for Java on and Sourcegraph Enterprise. Scroll down for the detailed feature list.

Categories: Java

TechTarget: @NewRelic's Scalable Systems #Monitoring | @CloudExpo #DevOps

JDJ - Sun, 2017-04-16 18:00
Developers want to create better apps faster. Static clouds are giving way to scalable systems, with dynamic resource allocation and application monitoring. You won't hear that chant from users on any picket line, but helping developers to create better apps faster is the mission of Lee Atchison, principal cloud architect and advocate at New Relic Inc., based in San Francisco. His singular job is to understand and drive the industry in the areas of cloud architecture, microservices, scalability and availability. In a keynote presentation, he spoke to a standing-room-only crowd at New York's Cloud Expo about how highly available, highly scalable systems can help developers attain the goal of better apps faster.

read more

Categories: Java

Twistlock to Exhibit at @CloudExpo | @TwistlockTeam #SDN #DevOps #Docker

JDJ - Sun, 2017-04-16 14:45
SYS-CON Events announced today that Twistlock, the leading provider of cloud container security solutions, will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Twistlock is the industry's first enterprise security suite for container security. Twistlock's technology addresses risks on the host and within the application of the container, enabling enterprises to consistently enforce security policies, monitor and audit activity and identify and isolate threats in a container or cluster of containers.

read more

Categories: Java

15 Reasons to Choose Hibernate Over JDBC

Java Lobby Announcements - Sun, 2017-04-16 13:01

Hey Java Developer,

  1. Have you ever felt irritated by repeating the same lines of code over and over again in your application for fetching data from a database?
  2. Are you struggling to map objects to your database tables?
  3. Is it difficult for you to implement oops with your JDBC code?
  4. Does it takes too much rework while migrating from one database to another?
  5. Have you ever found it difficult to create associations between tables using JDBC?

If you are wondering whether there is a way to avoid these problems, I am very much pleased to inform you that there is an ORM tool called Hibernate that you can use to overcome this.

Categories: Java

Spring Tips: Season 2 Recap

Java Lobby Announcements - Sun, 2017-04-16 07:01

Hi, Spring fans! We’ve now finished two seasons — 11 episodes and a recap post each — of Spring Tips. I’m going to take a little while to dream up some more content and, before you know it, we’ll be back at it again! I’m always interested in hearing proposed topics so if you have some, please, by all means, shout it out loud to me on Twitter (@starbuxman) .

The motivations for me in doing these Spring Tips are to:

Categories: Java

Intricacies of Multi-Threading in Java

Java Lobby Announcements - Sat, 2017-04-15 22:01

Multi-Threading in Computer Science represents a very intriguing topic, even after years of research and development for high quality, robust and efficient software. With equal emphasis on hardware improvements and the software that runs on it – we have newer paradigms for parallelism. The most important yet basic concepts are the ones which I present here. I then explain the intricacies of multi-threading in the Java Programming Language. Some of these are newer features and supported only from the Java Platform Standard Edition 5.0. Let us start with a quick overview and understanding of the core concepts.

Thread Concepts in Operating Systems           

Thread: A thread is a lightweight process, but it differs from a process in multiple ways. The primary features of a thread are that it creates a sense of execution of processes concurrently; it effectively distributes work and executes a single task, it can be used to schedule and asynchronously execute tasks, it has a more effective context switching mechanism than processes, and it shares the memory space along with other threads yet can have its own storage

Categories: Java

[video] @Docker and #Kubernetes | @CloudExpo @Rancher_Labs #DevOps #AI

JDJ - Sat, 2017-04-15 19:30
In his keynote at 19th Cloud Expo, Sheng Liang, co-founder and CEO of Rancher Labs, discussed the technological advances and new business opportunities created by the rapid adoption of containers. With the success of Amazon Web Services (AWS) and various open source technologies used to build private clouds, cloud computing has become an essential component of IT strategy. However, users continue to face challenges in implementing clouds, as older technologies evolve and newer ones like Docker containers gain prominence. He explored these challenges and how to address them, while considering how containers will influence the direction of cloud computing.

read more

Categories: Java

Spring Boot vs. Spring MVC vs. Spring: How Do They Compare?

Java Lobby Announcements - Sat, 2017-04-15 18:01

In this article, you will receive overviews of Spring, Spring MVC, and Spring Boot, learn what problems they solve, and where they're best applied. The most important thing that you will learn is that Spring, Spring MVC, and Spring Boot are not competing for the same space. They solve different problems and they solve them very well.

What Is the Core Problem That Spring Framework Solves?

Think long and hard. What’s the problem Spring Framework solves?

Categories: Java

What's Used Most Frequently With Java?

Java Lobby Announcements - Sat, 2017-04-15 13:01

To gather insights on the state of the Java ecosystem today, we spoke to nine executives who are familiar with it. We asked these experienced Java professionals, "What other technical solutions do you use in conjunction with Java?" Here's what they told us:

  • .Net, C#, JavaScript, HTML, SQL for batch and ETL. We deploy in Ruby and Chef.
  • Web, mobile, and desktop tool chains. We try to take the best of breed to solve a particular problem. Pragmatic decision making.
  • Java 8, Spring Boot, and MongoDB for scalable platforms. Modernization transformations for lasting and sustainable platforms. Particularly with the U.S. Patent and Trademark Office and the HHS.
  • Customers are using various messaging solutions like AMQP, JMS, RabbitMQ, and Microsoft BizTalk server. Seeing more big data solutions like Hadoop, Apache Kafka, and Spark to integrate with.
  • We are all Java except for plug-ins. We use CNC and C++ for other products. We select the right software for the job.
  • AppGlu, JavaScript, Ruby, Objective C, Swift, Kotlin, Xamarin.
  • See more UX in JavaScript. Newer applications are in Python. The oldest and highest performing applications are in C.
  • Skilltree – Java for Android. JavaScript for the web and Java for mobile.
  • A lot:.NET, Go, Ruby, Python, Jango, NodeJS, Rust. We’re a polyglot shop.

What technical solutions do you use most frequently with Java? 

Categories: Java

This Week in Spring: Gradle Plugin, Cloud Foundry, and Spring Boot

Java Lobby Announcements - Sat, 2017-04-15 07:01

Welcome to another installation of This Week in Spring!

Categories: Java

Catching Exceptions in Scala (Part 1)

Java Lobby Announcements - Fri, 2017-04-14 22:01

Hey, folks! I hope everyone is enjoying their coding days (or nights, whichever you prefer). If you are here, then you are probably looking for a better or cleaner way to make your Scala code robust and readable altogether.

Recently, I have been going through some Scala code written by a majority of Java developers who would like to learn Scala and are fairly new to the language. I hope this blog helps them as well and that they learn something from it.

Categories: Java

What's New in Bootique: Custom Shell Vars and Kotlin Integration

Java Lobby Announcements - Fri, 2017-04-14 18:01

We just posted another consequential release of Bootique — version 0.22. The focus of the changes in the core was to make module customization more transparent and give more power to the users to shape the CLI (command-line interfaces) of their apps. There was a significant improvement in handling of the test data sets in bootique-jdbc-test. And, as has become a tradition lately, we’ve added 4 new top-level Bootique projects, providing integration facilities for JBoss UndertowRabbitMQApache Shiro, and also Kotlin!

Let’s start with the core changes…

Categories: Java

How to Stop Your Developers from Jumping Ship | @DevOpsSummit #Agile #DevOps

JDJ - Fri, 2017-04-14 18:00
We are experiencing a ‘crisis of engagement,’ according to a survey by management consultancy Gallup, with a staggering 87 percent of employees worldwide disengaged with their jobs. While there are many factors that can influence an employee’s contentment – from support to compensation to job security – a common grievance in software development is disempowerment, where talented individuals are feeling hampered by their working environment.

read more

Categories: Java

How to Weave Lean Thinking into Your Release Management | @DevOpsSummit #Lean #Agile #DevOps

JDJ - Fri, 2017-04-14 16:00
Businesses are being driven up against the wall by continual industry disruption. Many are fighting back by adopting Lean as a means to support business transformation. The aim is simple: create more value for customers with fewer resources. Lean thinking views the whole, not its parts. Then it identifies and eliminates waste across value streams. Here’s how you can implement Lean thinking to improve your enterprise release management,

read more

Categories: Java

Java Packaging System [Comic]

Java Lobby Announcements - Fri, 2017-04-14 15:01
Categories: Java

JVM-Free Kotlin With Kotlin/Native

Java Lobby Announcements - Fri, 2017-04-14 12:01

I would never call myself a real programmer, but I have a healthy obsession with studying new languages that emerge, especially those that arrive with little baggage and attempt to solve current problems and new use cases. This brought about my explorations in recent years of Swift and Kotlin, both initially aimed to fix issues with the languages traditionally used in their worlds, but rapidly became used in more widespread contexts, and generally, have enthusiastic communities.

One of the positives of Kotlin was its interoperability with the language it intended to supplement and replace, as Kotlin runs in the JVM, it was relatively easy to run it alongside your existing Java stack, replacing components of, or complete code-bases. Last week JetBrains announced a tech preview of Kotlin/Native that compiles your code straight to machine code, opening it up to a whole other world of platforms and use cases where virtual machines aren’t desirable or possible. I couldn’t resist taking a look and seeing how it worked.

Categories: Java

MVC Pattern Language (Part 1)

Java Lobby Announcements - Fri, 2017-04-14 09:01

There seems to be a lot of misconceptions related to MVC. Some consider it a technique for code reuse, others think it’s how you group classes in web applications, and some have even mistaken it for the frameworks that claim to support the pattern. In this post, we’ll take a look at a paper written by Trygve Reenskaug and try to figure out what its original creator really means when he talks about MVC.

MVC Pattern Language

The first two sentences of the abstract already shed some interesting light on MVC:

Categories: Java

Calculating Dependency

Java Lobby Announcements - Fri, 2017-04-14 06:01

What does the concept of dependency mean in programming? Is it important in modern development process? Does the concept of dependency have a different meaning when we speak about procedural programming, object-oriented programming, or functional programming? In this post, I will try to sum up all the knowledge I gained during my life as a software developer.

The Very Beginning

First of all, we need to have, clearly in mind, the concept of dependency in everyday language. Merriam-Webster gives the following definition of dependency:

Categories: Java


Subscribe to EGJUG aggregator - Java