atul khot

Ranch Hand
+ Follow
since Jul 24, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by atul khot

Hi Daniela,
     Was wondering about the capstone... Is it a small size project the reader would attempt - To better internalize the material?

--- regards atul
6 years ago
Welcome Daniela Sfregola! I saw the book MEAP announcement - and read the free chapter (the one that describes sbt)...
Very nice coverage!  
   
6 years ago
Hi Dr. Yocco,
Greetings of the day! And many thanks for your time and the book...
Does the book cover minimalism as a pattern in design?


Is there a relation in minimalistic design and simplicity?

Chapter 1 talks about persuasion. I was thinking of how typing a search text in the chrome browser's address bar triggers google search...
This is so appealing - kind of becomes second nature when one wants to look up something...

--- regards atul
7 years ago
Hi Tom,
Does the book exclusively focus on Grails 3? Or it covers both Grails 2 and 3?

--- cheerio atul
8 years ago
Hi Tom,
We started with Grails 3 last year. Somehow it did not feel that stable/robust... We were at 3.0.3.
If I understand right, Grails 3 runs on top of spring boot.

Why not use spring boot instead? What are the advantages?

Thanks again for the book!

--- cheerio atul
8 years ago
Dear Authors,
Welcome and thanks for your time here!

Puzzles are a great and fun way to learn about the intricacies of a language. "C traps and pitfalls" by Andrew Koenig, "The C puzzle book" by Feuer and "Expert C programming" by Linden are superb. So is the "Java Puzzlers" book. I remember all these books showing just a handful of code snippet to drive a point home.
What is the average length of the puzzles? Does it cover any design "gotchas"?

--- regards atul
8 years ago
Hi Gavin,
Greetings of the day! And thanks for your time!
I have used ActiveMQ in the past and it worked great for the application at hand.

I have briefly looked at Erlang - and its "let it crash" philosophy (and the immutability and functional way of things).

ActiveMQ is written in Java and RabbitMQ in Erlang.

Does the "let it crash and will repair" philosophy give RabbitMQ any advantages over ActiveMQ?

--- cheers and warm regards,
Atul

Hi,
In Scala, _ is useful in many contexts.

Here are some examples:



What follows the map is a function. In the first form we are explicitly naming the function argument.
The second form is terse - but means the same thing. We are not naming the argument (we don't need to).

Now consider the following:



If we try to use the terse form, we get an error.



When you repeat the _, each occurrence refers to successive arguments. As we are passing in just one element
(which is a pair), there is just one argument, so _._2 is erroneous.

Following contrived snippet shows the successive arguments form:


_ is used in Scala in many contexts (pattern matching don't care) - and for creating partially applied functions:



Hope this helps...

--- regards atul


8 years ago
Hi,
I couldn't agree more. I strive a lot to write good code - and then it becomes part of the big system
- and most other code violates the rules...
There is no time/bandwidth to fix it... I think this is a very serious issue - unless most team members
are willing to read books, learn, practice - one craftsman's voice gets lost very easily...

--- regards atul
Hi Sandro,
Greetings of the day!
Welcome - Thanks for your time!

--- with warm regards,
Atul
Hi Jeff,
Testing multi-threaded code is really intriguing one ;-)
- I used to wonder a lot at this - and then kind of stumbled upon the wonderful concept of "Active Objects"
(https://pragprog.com/magazines/2013-05/java-active-objects)...
So do we really have to worry about testing multi-threaded code?

--- regards atul
9 years ago
Hi Jeff,
In "Agile Java" logging is covered - notably tests making sure the log statements are
as intended...
I loved what I saw - however, in practice, I found people tweaking/adding logging statements to
get better insight...
This was far too dynamic (in my humble opinion)...
I have always wondered if testing for logging really works (and do people keep up the tests?)

--- regards atul
9 years ago
Thanks Junilu!

--- regards atul
9 years ago
Hi Authors,
As the title explicitly mentions "Java 8" - how relevant it would be for earlier Java versions?
I think a lot of material would be applicable to Java 7 or Java 6...

--- regards atul
9 years ago
Hi Authors,
Does the book cover Hamcrest matchers extensively? I have found these very useful - lovely stuff...
These help me write better tests - more expressive - and succinct!
However, I have a nagging feeling - there is a lot more to it - would love to see
these treated at length ;-)

--- warm regards,
atul
9 years ago