Why do we need to program?
Technology is part of our life. The world is changing daily and everything is getting automated. Learn to program is the creative way we can take our ideas to the next level and express solutions to society. By designing programs, we learn several abilities like critical reading, analytical thinking and create synthesis. The programmer defines the problem, plans a...
on Jan 21, 2014
The Java is a platform which grown up quickly, for many rations such it can write once time and run anywhere, it runs languages on JVM. There is a myth that Java cannot compile its sources on run time, but it's truth?
Have a dynamic language is important to make some projects, for example, calculate taxes to different cities, so the source should be on the database and each city it puts the...
on Jan 19, 2014
HTML Online Editor Sample
I have been contemplating for a number of months about reviewing a cache of articles and videos on topics like Performance tuning, JVM, GC in Java, Mechanical Sympathy, etc... and finally took the time to do it - may be this was the point in my intellectual progress when was I required to do such a thing!
Thanks to Attila-Mihaly for giving me the...
on Jan 17, 2014
Interfaces are completely abstract classes in Java that provide you with a uniform way to properly delineate the structure or inner workings of your program from its publicly available interface, with the consequence being a greater amount of flexibility and reusable code as well as more control over how you create and interact with other classes. More precisely, they are a special construct in...
on Jan 18, 2014
In object oriented programming, polymorphism is a feature that allows you to provide a single interface to varying entities of the same type. This is analogous to the interpretation of the same concept in the field of Biology.
To understand how this works in Java, we must consider inheritance and the ways by which the Java programming language makes method calls.
When you create a class in Java...
on Jan 7, 2014
There are mainly two ways by which one may reuse classes in Java. The first is by way of composition. Composition provides a way to compose your classes from objects of existing classes, essentially making use of the objects' functionality as opposed to its form.
The second method is by what we call inheritance, which describes how one may derive a new class as a type of an existing class. With...
on Dec 18, 2013
A key consideration for the library designer in the normal conduct of operations is maintaining the ability to make changes or improvements to the library at any time without requiring the consumers (client programmers) of that library to do the same. In Java, a library consists of a logical grouping of .class files packaged together to make a working program.
An apt analogy to this point may be...
on Dec 8, 2013
Every once in a while I run into someone that has a JVM that is running back to back collections and yet the heap is still almost full after each attempt! When they discover that their problem is related to the JVM not having enough memory they often ask the question, why didn't the JVM throw an OutOfMemoryError? After all my application is not making any forward progress and the reason is Java...
on Jan 8, 2014
Groovy Weather: POGOs, Gson, and Open Weather" by Ken Kousen of Making Java Groovy is 45% off with promotional code kousenjn at manning.com.
The Open Weather Map web site provides weather information as a RESTful web service in JSON form. In this blog post, I show how to access the site using Groovy and convert the results into Groovy classes using Gson, the JSON parser from Google. The code...
on Jan 7, 2014
on Dec 4, 2013
SBT in Action by Joshua Suereth and Matthew Farwell has been updated! Save 45% and just enter promo code 112113jn at manning.com. What else is new? Chapter 6, "Process & IO with sbt's libraries" has been added to the MEAP (Manning Early Access Program).
Chapter 6 takes a look at how sbt allows you to run external processes easily, and how to combine them in a shell-like manner. You
on Nov 21, 2013
One day I found myself in the situation that I had to write a unit test which checks whether my code is annotated in a particular way. I wondered how one could do that without doing an integration test that actually processes that annotations. My first idea was to use the Reflection API, which in fact worked, but was not looking smart. In fact, I wanted to have a Hamcrest matcher instead, since...
on Dec 27, 2013
In this post we will be looking at code for a system designed to integrate all of the devices used to provide surveillance and security to extensive physical premises such as malls, campuses, and industrial parks. The approach I am taking involves the actor paradigm and the Java programming language. The selection of actors for this type of application is based on a number of...
on Nov 30, 2013
Just recently I was engaged to assist with an application that wasn
on Dec 11, 2013
This post introduces a new Java actor based open source sub-project of the project "Learning Actors in Java". This work will develop a premises guardian system. A premises guardian system is a distributed application whose purpose is to support the physical protection of premises such as office buildings, campuses, apartment complexes, shopping malls, etc. Protecting information...
on Nov 20, 2013
The data warehouse is essential to enterprise business intelligence, which accounts for a great part of the total enterprise cost. With the global data explosion in recent years, the business data volume grow significantly, posing a serious challenge for enterprise data warehouse to meet the diverse and complex business demands. More data, more data warehouse applications, more concurrent...
on Dec 11, 2013
Recently I have come upon a blog article which discussed why Swing has to be Deprecated. My understanding of the author's argument was that since Swing looks ugly compared to HTML5 and nobody uses Swing anymore that it should be deprecated in favor of JavaFX. The theory was that by deprecating Swing and forcing users to upgrade to JavaFX then all Java GUIs will be better with the...
on Dec 2, 2013
In the previous post in this mini-series regarding the work I do on NASA Ground Systems, I showed some screenshots demonstrating data visualization. The basic tech stack involves combining the NetBeans Platform with custom JavaFX views. This pattern provides some very useful "At-a-Glance" (AoG) displays associated with daily data product generation.
AoG is typically appropriate, especially...
on Nov 20, 2013
So you need to build a visualization of data that must loaded and interface dynamically. Good looks are important so you chose JavaFX but you are starting from an existing Swing based application. No problem right?
But what if you have a lot of data to load into your Scene? How do you maintain a positive User Experience?
Maybe you are using the NetBeans Platform because... well...
on Nov 13, 2013
Tired of JavaFX Scene Builder being run in a separate process? Fed up with no real integration between your favorite IDE and JavaFX Scene Builder? There may be a solution heading towards you. Follow this small series of blog entries to join me on my journey towards an embedded JavaFX Scene Builder in NetBeans.
Finally, with the new developer preview builds of JavaFX Scene Builder 2.0 a new...
on Dec 1, 2013