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 ɯıpɐʌ
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #292653 |
Post edited: |
— | 3 months ago |
Edit | Post #292653 | Initial revision | — | 3 months ago |
Answer | — |
A: Json deserialization of enum, forbid int This is something that could go really wrong. I remember using this, and it was fine initially, until the `enum` in question evolved, and the ordinals changed, so the values didn't correspond anymore to what the initial assumption was. Anyway, long story short, if you would like to prevent this sy... (more) |
— | 3 months ago |
Edit | Post #292647 |
Post edited: Udate the question to include examples of SQL scripts |
— | 3 months ago |
Comment | Post #292647 |
Indeed. I'll update the question to make this clear — I forgot to mention it and it's an important point. (more) |
— | 3 months ago |
Edit | Post #292647 | Initial revision | — | 3 months ago |
Question | — |
SQL scripts referenced in persistence configuration must have each statement on its own line I'm currently working on a Java application using `Jakarta Persistence` with `EclipseLink` and `PostgreSQL`. While setting up the application to test the database layer, the persistence configuration is done in such way to automatically create and initialize the database: ```xml ... (more) |
— | 3 months ago |
Edit | Post #292547 | Initial revision | — | 3 months ago |
Answer | — |
A: Map<?, Optional<T>> to Map<?, T> Using `Optional` as a value in a `Map` will lead you to unnecessary complexity and confusion — as you can see. The primary intention of `Optional` is to serve as a return type, indicating that a value may or may not be present. To achieve what you are looking for, you need to unwrap the values:... (more) |
— | 3 months ago |
Edit | Post #292479 | Initial revision | — | 3 months ago |
Question | — |
Why is package.json needed for running a SvelteKit application? I'm trying to containerize a SvelteKit application that uses the `@sveltejs/adapter-node`. The `Build and Deploy` section from the documentation recommends to build the application, and then run the application with: - the output sub-directory (`build`) - the `nodemodules` sub-directory - `pa... (more) |
— | 3 months ago |
Edit | Post #292319 | Initial revision | — | 4 months ago |
Question | — |
Spring Boot application not excluding Jdbi bean when running tests using WebFluxTest I have a simple Spring Boot 3.x reactive application that exposes a RESTful API. The application uses Jdbi in the persistence layer, and the configuration for Jdbi is straightforward: ```java @EnableTransactionManagement @Configuration(proxyBeanMethods = false) @EnableJdbiRepositories(basePacka... (more) |
— | 4 months ago |
Comment | Post #291880 |
I've tried that as well but I get a different error message. The original import (with the `.js` in the end) works fine in a Parcel project that I have.
I'm guessing this issue may be because of Vite or Svelte/SvelteKit. (more) |
— | 6 months ago |
Edit | Post #291880 | Initial revision | — | 6 months ago |
Question | — |
Cannot use import statement outside a module when integrating Carbon Design System (Web Components) in Svelte I'm working on a Svelte web application. The issue I'm having is when I'm trying to integrate the Carbon Web Components module. I installed the module using `npm install --save @carbon/web-components` — and generated the SvelteKit application using the default method (`npm create svelte@latest my-app... (more) |
— | 6 months ago |
Edit | Post #291501 | Initial revision | — | 7 months ago |
Answer | — |
A: Check if a file exists in Node.js You can check if a file exists using the `fs` module. Besides the methods already mentioned, you can use `fs.stat(path[, options], callback)` [^1]. It's also asynchronous, and the callback returns two arguments `(err, stats)`. ```javascript import { stat } from "node:fs"; stat("/path/to/fil... (more) |
— | 7 months ago |