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

Angular, TypeScript, SystemJS, and Browser Cache I was writing a small app in Angular 2 in TypeScript with the on-the-fly transpiling by SystemJS. I needed to implement a router that would switch between the Home and ProductDetail views in a single page app. The root component had two links and was supposed to render either Home or ProductDetail components depending on which link the user clicks. Angular 2 offers a pretty elegant syntax for this: Configure the router to map the component to a URL, and use property binding in the form of [router-link]. Nice and easy, isn't it? Then I created a HomeComponent to render the text ‘Home Component' , copy-pasted the code into ProductDetailComponent and started the app in the browser. My app uses the on-the-fly TypeScript to JavaScript compilation offered by the module loader SystemJS. Running the app properly rendered the ... (more)

JavaScript in TypeScript | @ThingsExpo #IoT #DevOps #InternetOfThings

Why Writing JavaScript Applications in TypeScript JavaScript is the language of the Web. There is no other language that can run literally on any old or new device connected to the Internet. On the other hand, there are dozens of languages that compile (a.k.a. transpile) to JavaScript. Why not just writing JavaScript applications in JavaScript? Let me start with analogy with Assembly. Programs written in the a particular flavor of Assembly language run on any device that have a CPU that understand it. See the shortcoming comparing to JavaScript? An Assembly program can’t run on a... (more)

Java Exceptions

Java Exceptions Lesson 4 Let's say a Java class reads a file with the customer's data. What's going to happen if someone deletes this file? Will the program crash with that scary multi-line error message, or will it stay alive displaying a user friendly message like this one: "Dear friend, for some reason I could not read the file customer.txt. Please make sure that the file exists"? In many programming languages, error processing depends on the skills of a programmer. Java forces software developers to include error processing code, otherwise the programs will not even compile.... (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)

Secrets Of The Masters: Core Java Job Interview Questions

JDJ's Enterprise Editor, Yakov Fain (pictured) writes: If you are planning to hit the job market,  you may need to refresh some of the Java basic terms and techniques to prepare yourself for a technical interview. Let me offer you some of the core Java questions that you might expect during the interviews.  For  most questions  I’ve provided only  short  answers to encourage further research.  I have included only  questions for mid (*) and senior level (**) Java developers. These sample questions could also become handy for people who need to interview Java developers (see also ... (more)