Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Gershyâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
Nodejs wrap async function in synchronous function I am writing a spoof of the `fs` module; the actual storage mechanism is not the the filesystem but rather a database. Overall, however, the api will function exactly like `fs`. So far my code is comparable to the following: ``` let underlyingDb = require('module-for-accessing-db'); let moc... (more) |
— | over 3 years ago |
Question | — |
Function call; `this` gets bound to unexpected value I recently encountered a strange situation in javascript; if I have: ``` let obj = { a: function() { return (this === obj) ? this.b : 'bye'; }, b: 'hello' }; ``` I can call `obj.a` with `this` bound to `obj` by simply calling `obj.a()` (producing `"hello"`). The following al... (more) |
— | over 3 years ago |