Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quotes #75

Closed
alsfurlan opened this issue Apr 8, 2016 · 4 comments
Closed

Double quotes #75

alsfurlan opened this issue Apr 8, 2016 · 4 comments

Comments

@alsfurlan
Copy link

Hi!
First of all, congradulations! Your book is very educacional. I am using to teatching at my class of web technologies. It is the best I found.

I noticed you wrote double quotes in JavaScript, but the convention is the single quotes.

@samseen
Copy link

samseen commented Apr 8, 2016

Yeah @alsfurlan he made a comment about it in the book. At the Preface, page xv.

For the most part, I’ve followed idiomatic JavaScript, but there are a few places I’ve
strayed. For example, I preferred double quotes instead of single quotes for strings,
primarily because I’ve been working under the assumption that students may be coming
from a Java/C++ background. I choose to use quotes around property names in object
literals so that JSON doesn’t look too different from JavaScript objects. I also use $ as
the first character in variables that are pointing to jQuery objects. I find that it maintains
clarity and makes the code a little more readable for novices.

Good luck with the book, I've also found it to be very interesting and educational.

@alsfurlan
Copy link
Author

Yeah @samseen! I read this, but have forget. Thanks!

@semmypurewal
Copy link
Owner

Thanks for answering this one, @samseen!

@alsfurlan, thank you very much for the feedback, and thanks for using my book in your class. Feel free to ping me here or via e-mail if you have any other questions!

@alsfurlan
Copy link
Author

alsfurlan commented Apr 16, 2016

@semmypurewal Your book already have a translation for portuguese?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants