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 |
---|---|---|---|---|
Edit | Post #277899 |
Post edited: |
— | over 4 years ago |
Edit | Post #277899 | Initial revision | — | over 4 years ago |
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 4 years ago |
Comment | Post #277860 |
`ResolveThisBinding` and `GetThisEnvironment` are very useful to know about! (more) |
— | over 4 years ago |
Comment | Post #277861 |
Wow, thanks for showing `(obj.b) = 'value';` - I had no idea that was valid javascript, and it's really the best example demonstrating that parentheses are not exactly what I've always expected them to be! (more) |
— | over 4 years ago |
Edit | Post #277856 | Initial revision | — | over 4 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 4 years ago |