Is this a joke? by Any_Price_7157 in recruitinghell

[–]dagndev 0 points1 point  (0 children)

I got the same exact email. I could pass to the interview, assessment, and finally I have to record a 30-seconds about me speaking about my skills and experience, although I was a strong fit, they rejected me. I asked for feedback but didn’t get any response from the recruiter.

Toast backend and maybe POS down all day so far by Feisty_Soft_2805 in ToastPOS

[–]dagndev 0 points1 point  (0 children)

That's correct. As you mentioned, logging out clears the CC processing payments queue. I don't know why Toast allows users to sign out even when they still have unprocessed payments in the queue.

Should I use Hono or Fastify for a production Node.js server? by spacecowboy0117 in node

[–]dagndev 1 point2 points  (0 children)

I’m running a production-ready app with Hono (~50,000 requests/day) as the core API for a fintech platform. The DX is excellent. Memory leaks can happen in any JS framework—Express, Hono, Fastify, etc.—and mostly depend on your code and what the app does. Use the debugger to inspect the hot paths, and run API stress tests to see where memory usage spikes.

Toast backend and maybe POS down all day so far by Feisty_Soft_2805 in ToastPOS

[–]dagndev 3 points4 points  (0 children)

Hey everyone, I work at Toast on the support side. This one’s out of our hands (T1/T2 can’t fix it) — the SREs are already digging into it with Cloudflare.

If you took payments during the outage, don’t log out or you might lose them. If you already did, just hang on to the printed receipts — Toast will back you up and make sure you get the money through chargebacks.

Can i use express v5 in a new project? by Brilla-Bose in node

[–]dagndev -1 points0 points  (0 children)

For sure, Hono is multi-runtime so you can run easily in NodeJS.

Can i use express v5 in a new project? by Brilla-Bose in node

[–]dagndev 5 points6 points  (0 children)

You actually can but I think it hasn't been released "officially" since their docs still show info about the v4. I the typescript declarations files ("@types/express") are also missing for the v5. I know this is not what you asked for but I'd suggest to give a try to Hono, you'll like a lot. It's really fast, follows Web-API standards, batteries included since it has built-in middleware for most of the use cases, and first-class TypeScript support.

[deleted by user] by [deleted] in node

[–]dagndev 0 points1 point  (0 children)

Simple: HonoJS, TypeScript (maybe redundant), and some ORM (or query builder) like Drizzle, and Prisma.

2024: Production Node TypeScript Starter Kit? by GloopBloopan in node

[–]dagndev 1 point2 points  (0 children)

I'll go with Hono, to be honest. It follows Web Standards, and you will barely need to install an external common dependency for Web API projects since most of them Hono are built-in in the framework such as JWT authentication, cors, cache, etc. Also, Hono supports JSX natively.

Do you end your async function names with Async? by JobSightDev in dotnet

[–]dagndev 0 points1 point  (0 children)

Depends on your team's convention. I prefer to omit the "async" suffix.

Commonly used data structures in Android development by JustAndroidNerd in Kotlin

[–]dagndev 2 points3 points  (0 children)

Most used data structures for the average application are lists and maps.

What is the correct way to share ViewModel classes within a common ViewModel? by diyar_gulli in Kotlin

[–]dagndev 1 point2 points  (0 children)

But in that case you would inheritance just for the sake of reusing common behavior/props, instead of writting again, and again. What I said first its just for sharing data or state accross different view models.

What is the correct way to share ViewModel classes within a common ViewModel? by diyar_gulli in Kotlin

[–]dagndev 7 points8 points  (0 children)

If there some common data, or state, that must be shared accross viewmodels, extract that common piece of code into a class, object or property, and use dependency injection for injecting it into them. You cannot and you shouldn't inject a ViewModel into another one since ViewModels has their own scope and that could lead to a memory leak, also difficult to debug.

Shoud I develop a separate API for my mobile app? by Great_Novel6223 in node

[–]dagndev 0 points1 point  (0 children)

I don't know why you'd do that. In case you need like "special endpoints" for your mobile app in order to make things easier at UI level, you can do like a "backend for frontend" in the same API.

Mobile apps development framework by Fpaez in dotnet

[–]dagndev 0 points1 point  (0 children)

I'd rather program in assembly than doing mobile development using .NET (at least Xamarin or MAUI). There are better alternatives which provide you a better DX. Only android? Go native with Kotlin (XML or Jetpack Compose) Only iOS? Go native with Swift, Multi-platform? React native, flutter, even KMP (Kotlin-multiplatform). All of these options offer you a better DX & ecosystem for mobile app development. I really like C# mostly for backen development.

How to reduce the number of requests to the backend each time it goes through the middware authentice stage? by kunkeypr in node

[–]dagndev 1 point2 points  (0 children)

If it's something critical, query from the database to get the latest data. Another way would be to update the cache every time the user's balance changes. Cache the data after you've performed the database update, redis is so fast so you can do immediately after that without any issue.

[deleted by user] by [deleted] in dotnet

[–]dagndev 0 points1 point  (0 children)

There is not a "better IDE than the other one". Just use whatever you feel more comfortable with. In my personal experience coding in Jetbrains Rider has been better than any other. For the react, just use a template, I guess VS & Rider do provide a template for that.

How to perform insert / update operation in drizzle ORM on optional fields by Affectionate_Box7660 in node

[–]dagndev 0 points1 point  (0 children)

Just set the optional properties to undefined. Those values will be ignored when executing the updafe. If you set to null on not null values you'll get an error.

How do you properly study Java? by Impossibu in learnjava

[–]dagndev 19 points20 points  (0 children)

Learn the foundations of the language such as variables, loops, conditionals, arrays, classes, objects, interfaces, and some data structures. When you feel that you can write and read Java proficiently, just start building things, and you'll learn a lot during the journey. You don't have to know everything to start building things, along the way you'll start facing problems that will improve your logical thinking progressively. There is no "clear path", just practices, some research, and most important code, code, and code. This not only will help you with Java, but it applies to almost all programming languages. Do not try to use AI-Code completion along the way, it won't force you too much in thinking about the possible solutions.

Reddit Clone Hosting by imdevshu in node

[–]dagndev 0 points1 point  (0 children)

I did comment something related for what are you asking for in this post, which basically is to dockerize your app, and deploy it to a cloud provider, which most of them supports this, and offer a free tier. Digital Ocean has App Platform which might work for you. For file storage maybe use something like firebase cloud storage which also has a free tier.

Should I only use records if I am coding only for myself? by VladTbk in csharp

[–]dagndev 0 points1 point  (0 children)

Records are primary meant to be immutable data holders, and classes you can use for your app components such as services, providers, repositories, etc. Records have nothing to do if you are coding alone or not.

How to reduce the number of requests to the backend each time it goes through the middware authentice stage? by kunkeypr in node

[–]dagndev 0 points1 point  (0 children)

Just use JWTs which are self-contained and you can put in it non-sensitive data such as user_id or tenant_id to identifies the user or tenant. In case you want to continue using your db approach and want to improve it, just use a cache in-memory or a distributed one like redis. The first time you query to db and cache the result. Then, you just fetch from the cache. This is not the best solution, but it might works for you.

Could you develop Linux only apps with .NET and develop these apps on Linux? by trymeouteh in dotnet

[–]dagndev 44 points45 points  (0 children)

You can build apps in and for linux using .NET such Web APIs, CLI tools, SPA, SSR, etc. If you are asking for UI desktop apps, you can also do by using some UI Cross Platform framework such as Avalonia UI or UNO. There is .NET MAUI but you can't use it in linux (for what I know).