Welcome!

From the Trenches of the Enterprise Software

Yakov Fain

Subscribe to Yakov Fain: eMailAlertsEmail Alerts
Get Yakov Fain via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Yakov Fain

I was experimenting with Java HashSet, which is a pretty expensive collection to create, but it has a benefit of the O(1) performance on the retrieval of elements from this collection. Based on my experiments performance of HashSet is improved over the last year. I’ve written a small benchmark comparing the performance of the one year old JRE 1.8.0_05 with the latest 1.8.0_51. In my tests I’m creating a HashSet containing 100000 objects. The object looks like this: import java.math.BigDecimal; public class MyObject { public String s1 = "aaaaaaaaaaaaa"; public Double d1 = 222222222222.22; public BigDecimal b1 = new BigDecimal(1.54); public int i1; public String s2 = "aaaaaaaaaaaaa"; public Double d2 = 222222222222.22; public BigDecimal b2 = new BigDecimal(1.54); public int i2; public String s3 = "aaaaaaaaaaaaa"; public Double d3 = 222222222222.22;... (more)

JavaFX 8: Keyboard Events By @YFain | @ThingsExpo [#IoT]

JavaFX 8: The Keyboard Events Are Not Being Processed If a Scene Has Only Shapes I ran into an interesting problems with JavaFX. When the GUI is done in FXML it seems that if a scene has only shapes (e.g., Rectangle, Circle, etc.) the handler method doesn’t receive keyboard events. And the problem seems to be that there is no way (at least I don’t see it) to give a focus to such a scene. I found a workaround, but I’d appreciate if someone could offer a cleaner solution or confirm that this is a JavaFX bug. Here’s a code sample that illustrates the problem and the solution: 1. He... (more)

Teaching Kids Programming: Even Younger Kids Can Learn Java

My solution to the problem? I've written my own e-book on it: Java Programming for Kids, Parents and Grandparents. Dave became my first kid student and this has helped me a lot to understand the mentality of the little people. This is what I've learned while working on this project: Most of the programming tasks require minimal knowledge of arithmetic and algebra skills. To start programming, a kid needs to understand what x = y+2 means. Another important concept to understand is an if statement.   Kids develop the abstract reasoning abilities by the fourth-fifth grade, and they... (more)

Am I Still a Java Developer? By @YFain | @ThingsExpo [#IoT]

This morning I got the following email from a Java developer: “It seems you are doing less Java and more web development every year.” This got me thinking, and I decided to write this blog. Am I still a Java developer after 17 years of using this language? I certainly am. But in today’s world using just one programming language is almost impossible unless you’re willing to limit yourself to the server-side development. I’m not saying this is bad – it’s a huge field for never ending self-education and research. Even from the career perspective becoming an expert in a specific Jav... (more)

Containers and AngularJS for Java Developers By @YFain | @DevOpsSummit [#DevOps]

Introducing AngularJS to Java Developers If you want to develop Web applications, you’ll need to learn JavaScript. But writing code in JavaScript (at least in its ECMAScript 5 incarnation) is non-productive. You need to pick up a one of the JavaScript frameworks, because: they make you more productive will deal with cross-browser compatibility and make the application more structured may include reusable components lower the amount of manually written code. JavaScript market offers multiple frameworks and libraries. While frameworks expect you to programs using well defined rules... (more)