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

This year I’m planning to run a one-day workshop at a couple of software development conferences and privately for IT shops. The goal is to introduce JavaScript and related technologies to developers who are accustomed to developing in classical object-oriented languages like Java, C++ or C#. Below is the outline of this workshop. Part 1. JavaScript Building blocks Functions, Objects, Prototypal Inheritance,Closures Using Chrome Developer Tools JavaScript in the Web Browser, DOM, CSS. New JavaScript: an overview of selected ECMAScript 6 features. Part 2. Designing Single-Page Web Applications Web app prototyping. Designing a Product page of an online auction using Pure JavaScript and CSS. Responsive Web Design. CSS Media Queries. Redesigning the Product page for smart phones and tablets by adding CSS Media Queries. Our Product page will look like this. Single-Page Ap... (more)

Pushing Data to Multiple WebSocket Clients From a Java Server By @YFain | @ThingsExpo [#IoT]

Pushing Data to Multiple WebSocket Clients From a Java Server Finished writing the WebSocket chapter for the second edition of my Java 24 Hour Trainer. In this blog I’ll show you one of the code samples from lesson 28. Pretty often you need to write a program that publishes the same message to all connected clients. For example, multiple clients of the online auctions have to be notified when a new bid is placed on the product. Another example is when a new stock price quote need to be pushed from the server to all connected clients. With websockets it’s a pretty easy task. I’ll... (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)

Tic-Tac-Toe in JavaFX

Finished writing the JavaFX chapters for the second edition of my Java 24 Hour Trainer. It included a sample code of the Tic-Tac-Toe game. The front end is done in FXML and the application logic is written in Java. Using FXML allows to substantially minimize the amount of Java code. This program consists of the following four files: Tic-Tac-Toe.fxml: 45 lines Main.java: 27 lines TicTacToeContoller.java: 120 lines application.css: 12 lines. I haven’t implemented a couple of menus, which would add a couple of dozens lines to the code base. Pretty concise, isn’t it? The source code of ... (more)