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 Andrew Ray
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291667 | Initial revision | — | 29 days ago |
Question | — |
How is this code "dividing" by a string? I found a strange expression in some Python code: ``` python from library import HOMEDIRECTORY file = HOMEDIRECTORY / "file.json" ``` It seems to be dividing a string by another string in order to do something with files. However, I can't make this work in the REPL with my own strings: ... (more) |
— | 29 days ago |
Comment | Post #291492 |
Even if you replace `typeof someVar !== null` with `someVar !== null`, it still won't work. The condition `typeof someVar !== "undefined" || someVar !== null` is always true because `typeof someVar` is only `"undefined"` if `someVar` is `undefined`, in which case, it's not `null`; conversely, if `som... (more) |
— | about 2 months ago |
Edit | Post #291472 | Initial revision | — | about 2 months ago |
Question | — |
TypeScript won't recognize cross-module type extensions I'm trying to write a Node module that extends the functionality of another module (a peer dependency which I do not control) using a register function exposed by the other module. This adds additional methods to some types from the other library, and I have created a .d.ts file that contains those t... (more) |
— | about 2 months ago |