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

Books: Angular Development with TypeScript, Second Edition, Manning Publications, 2018 Angular 2 Development with TypeScript, Manning Publications, 2016 Java Programming. 24-Hour Training, 2nd edition, Wiley, 2015 Java Programming for Kids, Self-Published e-book, 2015, Free Download Enterprise Web Development: From Desktop to Mobile“, O’Reilly, 2014. Java Programming. 24-Hour Training, 1st edition, Wiley, 2011 Enterprise Development with Flex, O’Reilly, 2010 Enterprise Development Without the BS, Self-Published, 2008, Free Download” Rich Internet Applications with Flex and Java, Sys-Con Books, 2007 Java 2. Enterprise Edition 1.4 Bible, Wiley, 2003 Java Tutorial for the Real World”, Self-Published, 2002 Back to blog ... (more)

Reading Data from the Internet

To read local file streams, a program has to specify the file's location, i.e. "c:\practice\training.html". The same procedure is valid for reading of the remote files: just open the stream over the network. Java has a class URL that will help you to connect to a remote computer on the Internet. At first, create an instance of the class URL: try{ URL xyz = new URL("http://www.xyz.com:80/training.html"); } catch(MalformedURLException e){ e.printStackTrace(); } The MalformedURLException could be thrown if a non-valid URL has been used, for example missed protocol if you forgot to sta... (more)

TypeScript Generics

TypeScript supports parameterized types, also known as generics, which can be used in a variety of scenarios. For example, you can create a function that can take values of any type, but during its invocation, in a particular context, you can explicitly specify a concrete type. Take another example: an array can hold objects of any type, but you can specify which particular object types (for example, instances of Person) are allowed in an array. If you were to try to add an object of a different type, the TypeScript compiler would generate an error. Generics syntax The following... (more)

My presentations and workshops in 2017

This is a list of presentations and workshops that Yakov Fain offers in 2017. If you’d like to invite Yakov to run any of these talks/workshops at your organization, please send an email at training@faratasystems.com. To get familiar with Yakov’s teaching style, watch his Youtube Java tutorial. Presentations Mastering TypeScript – 90 min In this presentation, you’ll learn how to write code in TypeScript, one of the most loved languages today.TypeScript is a superset of JavaScript, which allows you to be more productive in writing JavaScript applications. Per StackOverflow develop... (more)

Java Basics: Processing GUI Events

Various events may happen to a running program: a user clicks on a button in a window, the Web browser decides to re-paint the window, and so on. I'm sure, you've tried to click on the buttons of the calculator from the lesson on Swing Basics, but these buttons were not ready to respond to your actions yet. This time, let's teach window components to react on such actions. Each window component can listen to and process a number of events, and your program has to register window components with Java classes called listeners. You should make components listen to only those events th... (more)