Vijitha Kumara

Bartender
+ Follow
since Mar 24, 2008
Vijitha likes ...
Chrome Fedora Hibernate
Cows and Likes
Cows
Total received
48
In last 30 days
1
Total given
34
Likes
Total received
94
Received in last 30 days
1
Total given
160
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vijitha Kumara

[review_grid]
https://coderanch.com/wiki/691076/books/Core-Java-SE-Impatient-Edition
http://coderanch.com/t/660904/books/Murach-HTML-CSS-Anne-Boehm
http://coderanch.com/t/660909/books/OCM-Java-EE-Enterprise-Architect
http://coderanch.com/t/660915/books/EJB-Action-Edition-Debu-Panda
http://coderanch.com/t/660916/books/OCA-Java-SE-Programmer-Certification
http://coderanch.com/t/660917/books/Murach-Android-Programming-Joel-Murach
http://coderanch.com/t/660933/books/Essence-Software-Engineering-Applying-SEMAT
http://coderanch.com/t/660934/books/Core-Java-Volume-II-Advanced
http://coderanch.com/t/660936/books/Java-Application-Architecture-Modularity-Patterns
http://coderanch.com/t/660940/books/Java-SE-Programming-Essentials-Michael
http://coderanch.com/t/660942/books/Murach-MySQL-Joel-Murach
http://coderanch.com/t/660984/books/Scrum-Field-Guide-Practical-Advice
http://coderanch.com/t/660985/books/Essential-Skills-Agile-Developer-Guide
http://coderanch.com/t/660986/books/Murach-Java-Programming-Joel-Murach
http://coderanch.com/t/660988/books/Murach-JavaScript-Edition-Mary-Delamater
http://coderanch.com/t/660989/books/Iron-Clad-Java-Building-Secure
http://coderanch.com/t/660990/books/Learning-Agile-Understanding-Scrum-XP
http://coderanch.com/t/660991/books/Java-SE-Impatient-Short-Basics
http://coderanch.com/t/661040/books/Murach-Java-Servlets-JSP-Edition
http://coderanch.com/t/661042/books/Functional-Thinking-Paradigm-Syntax-Neal
http://coderanch.com/t/661043/books/Object-Oriented-Thought-Process-Edition
http://coderanch.com/t/661044/books/Murach-jQuery-Edition-Zak-Ruvalcaba
http://coderanch.com/t/661152/books/Test-Automation-Selenium-WebDriver-Java
http://coderanch.com/t/661505/books/Scrum-Field-Guide-Agile-Advice
http://coderanch.com/t/661506/books/Microsoft-Office-Step-Step-Joan
http://coderanch.com/t/661507/books/Digital-Photography-Seniors-Jason-Rich
http://coderanch.com/t/662649/books/Jenkins-Definitive-Guide-John-Ferguson
http://coderanch.com/t/662651/books/Continous-Delivery-Jez-Humble-David
http://coderanch.com/t/664111/books/Murach-Anne-Boehm-Joel-Murach
http://coderanch.com/t/665193/books/Docker-Action-Jeff-Nickoloff
http://coderanch.com/t/669541/books/Programmer-Guide-Java-SE-Oracle
http://coderanch.com/t/669711/books/Soft-Skills-software-developer-life
http://coderanch.com/t/671902/books/Business-Blockchain-William-Mougayar
http://coderanch.com/t/671042/books/CS-Detective-Jeremy-Kubia
http://coderanch.com/t/670234/books/Pragmatic-Unit-Testing-Java-JUnit
http://coderanch.com/t/672977/books/OCA-Java-SE-Programmer-Study
https://coderanch.com/wiki/677665/books/Women-Tech-Tarah-Wheeler-Van
https://coderanch.com/wiki/678770/books/Practice-Java-Level-Ayo-Agboola
https://coderanch.com/wiki/679811/books/Murach-Python-Programming-Michael-Urban
https://coderanch.com/wiki/681451/books/Strengths-Finders-Tom-Rath
https://coderanch.com/wiki/682432/books/Deep-Work-Cal-Newport
https://coderanch.com/wiki/683057/books/Murach-Java-Programming-edition-Joel
https://coderanch.com/wiki/683058/books/Girls-Code-Learn-Code-Change
https://coderanch.com/wiki/684154/books/Manager-Guide-Continuous-Delivery-Andrew
https://coderanch.com/wiki/678793/books/Learn-Linux-Month-Lunches
https://coderanch.com/wiki/671285/books/OCA-Java-SE-Programmer-Certification
https://coderanch.com/wiki/684779/books/Phoenix-Project-DevOps-Helping-Business
https://coderanch.com/wiki/685190/books/Modern-Java-Recipes-Ken-Kousen
https://coderanch.com/wiki/687381/books/Learn-Java-Easy-Hands-Introduction
https://coderanch.com/wiki/690852/books/Cracking-Codes-Python-Introduction-Building
https://coderanch.com/t/657201/books/Code-Crime-Scene-Adam-Tornhill
https://coderanch.com/t/653206/books/Nature-Software-Development-Ron-Jeffries
https://coderanch.com/t/650719/books/Pragmatic-Unit-Testing-Java-JUnit
https://coderanch.com/t/650322/books/Programming-Elixir-Dave-Thomas
https://coderanch.com/wiki/694127/books/Head-Agile-Andrew-Stellman-Jennifer
https://coderanch.com/wiki/694318/books/Introduction-DevOps-Chocolate-LEGO-Scrum
https://coderanch.com/wiki/694902/books/Optimizing-Java-Ben-Evans-James
https://coderanch.com/wiki/695460/books/Learning-Spring-Boot-Author-Greg
https://coderanch.com/wiki/696613/books/Professional-Product-owner-Don-McGreal
https://coderanch.com/wiki/697883/books/Java-Comparison-Java-Craftsman-Examples
[/review_grid]
10 hours ago
Book is structured around a set of examples where authors take a bad code snippet and show you how to convert it to a clean/maintainable code. These examples are captured around a single theme which makes it easier to follow .

It starts with simple yet some of the widely made mistakes when using booleans and basic constructs and demonstrate how to correct them. It also discusses some of the best practices of coding certain specific constructs and addresses performance concerns when using them. It’s good to see two separate chapters, one to talk about comments in the code(and how best to utilize them) and the other about the naming conventions and how to go about writing more readable code.

The book covers fairly good amount of exception handling separately. It also has a chapter on how to write tests and how to structure your test code with JUnit being used as the reference library. I liked how they cover some of the high level design aspects along with how you can design & structure your classes/methods to better understand the code.Book has a separate chapter on new functional/streaming aspects of Java, which tries to provide a basic understanding on some of the fundamental patterns & use cases. But they don’t go in to much details to cover more advanced use cases.At the end it gives you some taste in to the real world development aspects which is a very high level coverage on some of the tools frequently used for development as well as for production related activities.

The background for the book has been the experience the authors gained by teaching Java to students, so they are able to express some common mistakes/practices specially the novice programmers are getting in to.

It does not cover advanced concepts such as concurrency etc… which is not the intention of the book. I liked how they have added the code snippets in the chapters as they are clearly pointing out the lines of code which are the focus of the explanation that follows.

Overall it is a good one to have as a reference to some of the fundamental patterns/practices of Java programming.

I give this book 9 out of 10 horseshoes

Disclosure: I received a review copy of this book from the publisher for reviewing it on behalf of CodeRanch.
3 days ago

Image from Amazon
Title: Java By Comparison: Become a Java Craftsman in 70 Examples
Author(s): Simon Harrer, Jörg Lenhard, Linus Dietz
Publisher: Pragmatic Bookshelf, 1 edition (April 1, 2018)
Category: Beginning Java

Amazon wrote:
Write code that's clean, concise, and to the point: code that others will read with pleasure and reuse. Comparing your code to that of expert programmers is a great way to improve your coding skills. Get hands-on advice to level up your coding style through small and understandable examples that compare flawed code to an improved solution. Discover handy tips and tricks, as well as common bugs an experienced Java programmer needs to know. Make your way from a Java novice to a master craftsman.

This book is a useful companion for anyone learning to write clean Java code. The authors introduce you to the fundamentals of becoming a software craftsman, by comparing pieces of problematic code with an improved version, to help you to develop a sense for clean code. This unique before-and-after approach teaches you to create clean Java code.

Learn to keep your booleans in check, dodge formatting bugs, get rid of magic numbers, and use the right style of iteration. Write informative comments when needed, but avoid them when they are not. Improve the understandability of your code for others by following conventions and naming your objects accurately. Make your programs more robust with intelligent exception handling and learn to assert that everything works as expected using JUnit5 as your testing framework. Impress your peers with an elegant functional programming style and clear-cut object-oriented class design.

Writing excellent code isn't just about implementing the functionality. It's about the small important details that make your code more readable, maintainable, flexible, robust, and faster. Java by Comparison teaches you to spot these details and trains you to become a better programmer.

What You Need:

You need a Java 8 compiler, a text editor, and a fresh mind.That's it.






From the publisher
  • Official website including the table of contents



  • Where to get it?
  • Amazon
  • Publisher


  • Related Websites
    3 days ago

    Image from Amazon
    Title: Java By Comparison: Become a Java Craftsman in 70 Examples
    Author(s): Simon Harrer, Jörg Lenhard, Linus Dietz
    Publisher: Pragmatic Bookshelf, 1 edition (April 1, 2018)
    Category: Beginning Java

    Amazon wrote:
    Write code that's clean, concise, and to the point: code that others will read with pleasure and reuse. Comparing your code to that of expert programmers is a great way to improve your coding skills. Get hands-on advice to level up your coding style through small and understandable examples that compare flawed code to an improved solution. Discover handy tips and tricks, as well as common bugs an experienced Java programmer needs to know. Make your way from a Java novice to a master craftsman.

    This book is a useful companion for anyone learning to write clean Java code. The authors introduce you to the fundamentals of becoming a software craftsman, by comparing pieces of problematic code with an improved version, to help you to develop a sense for clean code. This unique before-and-after approach teaches you to create clean Java code.

    Learn to keep your booleans in check, dodge formatting bugs, get rid of magic numbers, and use the right style of iteration. Write informative comments when needed, but avoid them when they are not. Improve the understandability of your code for others by following conventions and naming your objects accurately. Make your programs more robust with intelligent exception handling and learn to assert that everything works as expected using JUnit5 as your testing framework. Impress your peers with an elegant functional programming style and clear-cut object-oriented class design.

    Writing excellent code isn't just about implementing the functionality. It's about the small important details that make your code more readable, maintainable, flexible, robust, and faster. Java by Comparison teaches you to spot these details and trains you to become a better programmer.

    What You Need:

    You need a Java 8 compiler, a text editor, and a fresh mind.That's it.






    From the publisher
  • Official website including the table of contents



  • Where to get it?
  • Amazon
  • Publisher


  • Related Websites
    3 days ago
    Did you try with plugins whether that would help?

    Even without it did you check that when you build the project it has the source file compiled to the configured target dir?
    4 months ago
    Congrats to the winners and thanks Josh for hanging out here!
    4 months ago
    Hi Josh,

    I just saw in other thread the book does not cover modules, but what's your thoughts on the usage and patterns/practices for modular Java based applications. Any plans to update the topic in the book?
    4 months ago
    You may have to check with JBoss configs and/or JRE path what is wrong with your key store etc... A similar one here.
    4 months ago
    The more you write code you'll have more confidence. Also it might help if you could read/see how other experience developers solved certain problems.

    And if you write code then don't rely on IDEs much (at least at the beginning) as you may not know what is going on underneath. So try to use the command line as much as possible. Once you are confident you may use IDEs.
    4 months ago
    Welcome back Josh! Great to have you here.
    4 months ago
    T h e . C o d e R a n c h . J o u r n a l - March . 2 0 1 8 . E d i t i o n


    Howdy from all the CodeRanch staff, and welcome to the March 2018 edition of the CodeRanch Journal.


    I n t e r e s t i n g . C o d e R a n c h . F o r u m . P o s t s


  • A typical example on how a novice programmer gets support from fellow ranchers on his project
  • Discussion on Functional vs Procedural with Lambdas
  • A fellow rancher learns how to setup project structure for testing
  • Interesting discussion on Spring’s bean auto-wiring



  • B l o g . E n t r i e s . F r o m . S t a f f


  • Junilu blogs about “How Schools are Failing Novice Programmers”
  • Junilu’s blog on “Pragmatic Thinking & Learning”
  • Jeanne blogs her experience with Oracle Code NYC 2018
  • Again, Junilu’s take on “The Cyclical Nature of Interconnected Things”



  • B o o k . P r o m o t i o n s


    There's a book (or software) promotion just about every week at CodeRanch. Just ask a question in the appropriate forum and you're eligible to win a copy of the book (or license).

    Check the book promotions schedule at http://www.coderanch.com/t/660305/Wiki/Book-Promotions-Schedule.

    Some upcoming promotions are:

  • Effective Java (Third Edition) - Josh Bloch
  • Murach's HTML5 and CSS3 - Anne Boehm & Zak Ruvalcaba
  • Java by Comparison (e-book) - Simon Harrer, Jörg Lenhard, Linus Dietz
  • Securing DevOps - Julien Vehent

  • And a big Congratulations to our past Winners


    B o o k s . A n d . R e v i e w s


    We have several forums dedicated to talk about books. Here are some interesting reviews and recommendations from the CodeRanch staff in our Book Reviews forum

  • Murach's PHP and MySQL (3rd Edition) by Joel Murach & Ray Harris


  • Please check out the latest reviews (also available on our book review grid)


    T h e . M o o s e . o n . S o c i a l


    The CodeRanch announces latest news/developments frequently on our social media outlets. You can find us at:

  • Twitter
  • Google+
  • Facebook


  • Follow / Like us so you don't miss a thing.


    A b o u t . T h e . E d i t o r


    Vijitha Kumara has been a member of CodeRanch since 2008 and a Moderator since 2011.


    S u g g e s t i o n s / F e e d b a c k


    If you have any feedback on this month's journal then feel free to create a topic in our Ranch-Office


    J o u r n a l . A r c h i v e


    Our previously published journals are available online at Java-Ranch-Journal
    4 months ago
    T h e . C o d e R a n c h . J o u r n a l - March . 2 0 1 8 . E d i t i o n


    Howdy from all the CodeRanch staff, and welcome to the March 2018 edition of the CodeRanch Journal.


    I n t e r e s t i n g . C o d e R a n c h . F o r u m . P o s t s


  • A typical example on how a novice programmer gets support from fellow ranchers on his project
  • Discussion on Functional vs Procedural with Lambdas
  • A fellow rancher learns how to setup project structure for testing
  • Interesting discussion on Spring’s bean auto-wiring



  • B l o g . E n t r i e s . F r o m . S t a f f


  • Junilu blogs about “How Schools are Failing Novice Programmers”
  • Junilu’s blog on “Pragmatic Thinking & Learning”
  • Jeanne blogs her experience with Oracle Code NYC 2018
  • Again, Junilu’s take on “The Cyclical Nature of Interconnected Things”



  • B o o k . P r o m o t i o n s


    There's a book (or software) promotion just about every week at CodeRanch. Just ask a question in the appropriate forum and you're eligible to win a copy of the book (or license).

    Check the book promotions schedule at http://www.coderanch.com/t/660305/Wiki/Book-Promotions-Schedule.

    Some upcoming promotions are:

  • Effective Java (Third Edition) - Josh Bloch
  • Murach's HTML5 and CSS3 - Anne Boehm & Zak Ruvalcaba
  • Java by Comparison (e-book) - Simon Harrer, Jörg Lenhard, Linus Dietz
  • Securing DevOps - Julien Vehent

  • And a big Congratulations to our past Winners


    B o o k s . A n d . R e v i e w s


    We have several forums dedicated to talk about books. Here are some interesting reviews and recommendations from the CodeRanch staff in our Book Reviews forum

  • Murach's PHP and MySQL (3rd Edition) by Joel Murach & Ray Harris


  • Please check out the latest reviews (also available on our book review grid)


    T h e . M o o s e . o n . S o c i a l


    The CodeRanch announces latest news/developments frequently on our social media outlets. You can find us at:

  • Twitter
  • Google+
  • Facebook


  • Follow / Like us so you don't miss a thing.


    A b o u t . T h e . E d i t o r


    Vijitha Kumara has been a member of CodeRanch since 2008 and a Moderator since 2011.


    S u g g e s t i o n s / F e e d b a c k


    If you have any feedback on this month's journal then feel free to create a topic in our Ranch-Office


    J o u r n a l . A r c h i v e


    Our previously published journals are available online at Java-Ranch-Journal
    4 months ago
    You seem to have some conflicts in your directories, why you have jess.jar along with your class/source files as in above attachment, but you refer that from another location?

    You may try compiling with -d option and point that to the -cp when running so that your class/jar files are separated from source (though this is not a mandatory to run, but just to make sure...)
    5 months ago
    You could consider using some kind of a data structure (Queue?) inside the method getProductId method but outside the inner class, and add the data you get from the callback to it, then use some polling (or similar) to send the data from the method.

    This is just an example way of doing that, but need to be analysed and properly designed depending on your application flow/model.