2

Tried out the node.js code demo in this book.
🤦‍♂️
Terrible format, use tab for indentation, very very long function, redundant code (eg: new Buffer vulnerability)...
The major issue is none of the total.js nosql code works. Eg:
db.clear()
db.insert({...data})
Without any asynchronous call, how do you expect this to work?!
Just fixed the code and updated npm modules for demos in Chapter 3 btw... Took way longer than expected.

Comments
  • 0
    ... did you just complain about tab being used precisely for what it's supposed to be used?

    you must be a JavaScript developer - not using the right tools for the job, since... ever
  • 0
    @Midnigh-shcode tell me what language you think should fit this job?
  • 0
    @sunfishcc anything server-side that's not JavaScript?

    i mean... avoid PHP if you can, but if it's your only choice besides JS, then go and happily PHP away!
Add Comment