ganon bie

+ Follow
since Sep 05, 2014
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ganon bie

Sorry I clicked on the wrong button, the thumbs down! I can't change it to a tumbs up.

Is there a way I can configure log4j to allow to me do a logger.debug("....") where it would only output if it's being used in a particular patch?
I'm adding a new feature to existing code to a very large code base, and if I were to simply use logger.debug("..."), then it would be useless since there are many project that also outputs to logger.debug. I also understand that the debug could be turned on depending on packages, however, my modification spans different packages.

Is it possible to do something like logger.debug("patch1", "debugging message...")..... thus, somewhere in the configuration file, this line will only be active if I set something like debuglevel="patch1"
Otherwise, I would have to use system.out.println("patch1------------------------" + message); Then I would have to enable and disable a particular println manually, which is also tedious.

Bear, do you have an early MEAP release for the next edition of JavaScript Ninja by chance? Not sure if I should buy the Ninja or go for the MEAP Ninja if you have one.

"How does learning JQuery on the JQuery web site compare with your Ninja book?"
It doesn't. Ninja isn't about using jQuery. The latter parts are about the lessons learned about JavaScript while developing jQuery.

My mistake, I got your took books mixed up. The question should be "How does learning JQuery on the JQuery Web site compare with your jQuery in Action book? See below.

I hear from my coworker that the JQuery site has pretty clear tutorial.
It is a good reference, which is very different from a tutorial.

Bear, to confirm, your JQuery book IS a tutorial? Thanks.
Hi, Bear.

How does your JS Ninja compare with the Good Parts? Some on the review say that's too dry. You've referred me to the 2nd half of the Ninja book. One review said this about the 2nd part: "Much of the second half of the book is various nitty-gritty details about coding around all the cross-browser and language-version and interpreter-implementation issues one runs into. Specific examples of the various quirks and workarounds were sometimes so bizarre it was clear there'd be little chance of an individual ever solving them. My overall takeaway from the second half of the book was that in almost all cases one should code to some sort of covering library (like jQuery) that handles all the quirks in a transparent way, rather than to Javascript directly. (I also picked up the suggestion Javascript would be easier in some future where IE6/IE7/IE8/IE9 have only insignificant market share.)" I don't get it.. I thought we should use / learn JQuery instead of doing things manually.


The book that I have is Beginning Javascript 4th edition by Paul Wilton and Jeremy McPeak. 2010. The book is exceptionally clear on subjects in my opinion, and verbose. The topics are:
1- intro to javascript
2- data types and variables 17
3- decisons, loops, and functions. 51
4- common mistakes, debugging, and error handling. 87
5- javascript , an object based language 133
6- programming the browser 189
7 - html forms: interacting with the user. 219
8 - windows and frames 263
9 - string manipulation 301
10 - date and time and timers.347
11 - storing information: cookies (do people actually still use this?? i thought people are using sessions)367
12 - dynamic html with w3c document object model page 391
13 - using activex and plug-ins with javascript 469
14 - ajax page 491.
15 - javascript frameworks page 527
appendix a - answers to excerises. 591
appendix b - javascript core reference 665
appendix c - w3c dom reference page 697
appendix d - latin 1 character set. page 725
index page 733.

Currently, I'm looking at javascript code at my internship and trying to read through this book. currently on page 269.

What topics are required going from my book to your JQuery book or even your Ninja book? I read that your ninja book isn't exactly for beginners? From your reply, I would need to know about closures. Personally, I found the syntax of the js functions difficult to remember .. I'm coming from a java background. Am I way behind or ..? My original goal was to finish the book I have and then move onto the Good Parts and JQuery.

How does learning JQuery on the JQuery web site compare with your Ninja book? I hear from my coworker that the JQuery site has pretty clear tutorial.
I hope you didn't mind that I posted the above book and page numbers - I did so for you to have an idea of where I'm at.

Lastly, according to the reviews, it said that the book is mostly written by John? In looking at the reviews for John's 2006 JS book Pro JavaScript Techniques:

"I agree with only one other reviewer who commented on the typos, etc. The demo code does not work until you debug it. The first couple of chapters on Javascript code are very good. The chapters on Forms (8) and Lightbox(9) are so poor I stopped reading. I am a jQuery user and admire Resig's contribution, but this book should be skipped."

I then looked under John again and see that he has the 2nd edition Pro JavaScript Techniques, 2015. No reviews. It's 400 pages. I have no idea if that book is full of typos and again need to debug it. I'm curious between the difference of "2nd edition Pro JavaScript Techniques, 2015" vs. your ninja book that you also co-authored with John.

I looked here for John's 2nd edition of the book:

Professional JavaScript Techniques
Features, Functions, and Object
Creating Reusable Code
Managing JavaScript Code
The Document Object Model
JavaScript and Forms
Introduction to Ajax
Other JavaScript Libraries
The Future of JavaScript

VS. your Ninja book:
Well, it appears you cover far more topics? I'm not sure if John's 2nd edition book covers closure etc.

As for Javascript: THE GOOD PARTS, that's 2008! But it does have Closure. Is the Syntax out of date in that 2008 book? My major worry with any book is ambiguity, or worse, difficult if not impossible to read / understand because I tend to require things to be verbose and use of words clear and defined, otherwise, I would be re-reading it again and again, and just go into frustration mode.

I also do have a copy of "JavaScript and JQuery: Interactive Front-End Web Development" - bought it because I thought it had tons of reviews, but I found the explanation not verbose enough where I'm lost / have more questions due to ambiguity. That went back to the shelves, and the binding was horrible! I did find Beginning Javascript 4th edition to be very good because he literally explain through the code, but unfortunately, it's dated, 2010. Closures is on page 501, and maybe just one sentence or so if not a page?

Thanks for your time, and hope you don't mind be writing so much.

I'm looking at the reviews for the 2nd edition, and it said there are very few examples. Did you add a whole lot of example and explain them because that's the most popular report of the 2nd edition according to amazon reviews. I've read some javascript (half a book), not strong in it at all, but I'm wondering will I get lost in this book? I've read the other thread where you said it'll be okay if someone has some javascript experience.

I ment, can I learn web services while skipping both servlet and jsp? I don't intend to ever use facelets... so that's one reason I don't want to get the other lesser certificate. but then I could be wrong because I'm new and exposed to biased opinions. asking for input. i want a job.
I'm planning on learning bootstrap, jquery and javascript, and would like to skip servlet and jsp. Do you think it's possible that web services completely replace both servlet and jsp? I took a course on j2ee in college and the class only spent two lectures on jsp and servlets. Obviously, the semester class was worthless. I'll also want to pick up maven and git.

I just want to confirm if it is true that the OCE WSD 6 (web services) includes both jax-rs and jax-ws?

I've looked here

the exam appears to be 1Z0-897 and I think the exam covers both because Mikalai Zaikin's Free OCE WSD 6 Study Guide contains both rs and ws.

This is huge!
1) Is this code requesting a Json object? I'm guessing it is because accept is "application /json"

Invocation generateReport ="";)
.queryParam("start", "now - 5 minutes")
.queryParam("end", "now")

why is Report.class part of the parameter Is it because in #3 below specifies a responseType? So Report.class is the responseType.

while (true)
Report report = generateReport.invoke(Report.class);

Here's the interface

public interface Invocation
public Response invoke();
public <T> T invoke(Class<T> responseType);
public <T> T invoke(GenericType<T> responseType);

I'm not too sure about what I'm reading, but I'm guessing the above is the author's message.

5 years ago