From the Trenches of the Enterprise Software

Yakov Fain

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


Top Stories by Yakov Fain

With Angular CLI, generating a new app and installing dependencies takes 30 seconds. Creating a production build takes another 15 seconds. And the best part is that the size of the deployed app can be as small as 55KB gzipped. Let’s do it. 1. Generate a minimalistic app with the inline template and styles with the following Angular CLI command: ng new hello-world --minimal 2. If you’re not creating custom decorators and perform the AoT build, you don’t need to import the reflect polyfill, so comment out the following line in the generated file polyfills.ts: import 'core-js/es7/reflect'; 3. In the generated file app.component.ts remove most of the HTML markup from the component template so it looks as follows: template: `Welcome to {{title}}!` 4. Make a production build (it performs the AoT compilation by default): ng build -prod 5. The npm package serve is a small web ... (more)

RxJS Essentials. Part 7: Handling errors with the catch operator

In this article, I’ll show you aone of the RxJS operators for error handling – the catch() operator. The previous articles in this series include: 1. Basic Terms 2. Operators map, filter, and reduce 3. Using Observable.create() 4. Using RxJS Subject 5. The flatMap operator 6. The switchMap operator The Reactive Manifesto declares that a reactive app should be resilient, which means that the app should implement the procedure to keep it alive in case of a failure. An observable can emit an error by invoking the error() function on the observer, but when the error() method is invoked... (more)

Angular 2 Overview By @YFain | @ThingsExpo #DevOps #IoT #Microservices

This article was excerpted from the book “Angular Development With TypeScript” (see http://bit.ly/1QYeqL0). The Angular 2 framework is a re-write of popular framework AngularJS. In short, the newer version has the following advantages over AngularJS. The code is simpler to write and read It performs better  than AngularJS It’s easier to learn The application architecture is simplified as it’s component-based This article contains a high-level overview of Angular highlighting improvements comparing to AngularJS. For a more detailed architecture overview of Angular visit product do... (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)

Yakov Fain's Java Blog: What's the Next Big Thing in Java?

What's the Next Big Thing in Java? During my rather long software development career I made several switches from one programming language to another. The last one was back in 1998 when I switched from PowerBuilder to Java. Since Java is much more than just a language, it kept me busy all these years. I was learning newly born technologies like Servlets, JSP, EJB, JMS…I’m always closely watching what’s happening in the Java community, buying (and reading!) books on new frameworks (Spring, Hibernate…), programming and design principles (OOD, AOP, SOA, ESB... (more)