please can someone check the code in this book (chapter1) (maybe the author?, unfortunately the discussionsection is deactivated (like all other comment- and discussionsections)) !!
i think, i have done all i can as a beginner to correct this “flaw”.
(checked tentimes of typos, checked the mongolab things, tried to update,upgrade, tried the originalcode
on the githubsite(yes, of course with my corrected credentials;), read and tried all things here in forum,…)
its all but frustrating.
IMHO, sitepoint should take responsibilities for such situations, also because its not a free book, i payed
it could be no great affair, to reinstall discussion and comments, so inconsistencies of deprecated code or
whatever could be easily corrected.
"$ node app
Express server listening on port 3000 in development mode
Error: Unhandled “error” event. (not authorized for query on nockmarket.system.indexes)
at NativeConnection.emit (events.js:186:19)
at Cursor.close (C:\Users\Gerhard\OneDrive\Documents\NODE\book_jumpstartnode\NODEJS1-master\chapter01\authentication\node_modules\mongodb\lib\mongodb\cursor.js:687:5)
at CallbackStore.commandHandler (C:\Users\Gerhard\OneDrive\Documents\NODE\book_jumpstartnode\NODEJS1-master\chapter01\authentication\node_modules\mongodb\lib\mongodb\cursor.js:441:21)"
Sorry to have to tell you this, but that book is six years old and that is an age in software development. If you really want, I could attempt to help you to get the first example running, but it would be much better to find an up-to-date book/course/tutorial to work with.
Here is one I wrote recently, that might be of use:
thanks for your reply,
for sure its better to use another book.
nevertheless i think its not nice, expressed mildly, to trick a beginner with an outdated
book on a learningplatform.
I invested time and effort, only to learn there is no solution.
At least there can be offered help.
(maybe with a working comment/discussionsection;)
I have a habit of noticing dates. For example, seeing “Published Date November 2012” I would know that the material has a good chance of having problems that I would need to solve and that the material might be better for “historical” knowledge than current best practice. I might still have interest in the material, but I would need to be willing to accept any shortcomings I might encounter with it.
That said, if the material has since been superseded with something more recent (eg. this is edition 3, the current edition is 4) having that information displayed more prominently would help those that don’t have my habit of noticing dates or might not be aware of how fast technology changes.
Hi nepo, I’m sorry that you’re having issues. Unfortunately, this book is really quite old now. At some point in the future, we may update it and publish a second edition.
With regard to your point about the discussion section, yes I agree. We’re currently looking at redisgning the book’s pages on SP Premium, including a more coprehensive commenting/discussion section. I don’t have a timeframe for that at the moment unfortunately.