workani
workani
CC#
Created by workani on 11/10/2024 in #help
✅ How to enable json mode for gpt-4o?
I'm using OpenAI dotnet oficiall API and want to make sure that output of the model would be only in this format.
2 replies
CC#
Created by workani on 11/10/2024 in #help
✅ Creating random & unique page id
I want to generate id for a page that will be used to access it, something like example.com/2121424221. But generated id should have about 10-15 digits and be unique. How could I do that?
13 replies
CC#
Created by workani on 10/25/2024 in #help
Converting a string to a list of objects using only LINQ.
I want to convert my string with a shopping list in it to a list of ShoppingList objects (it contains a bool IsBought and a string Content) using only LINQ. How could I do that?
24 replies
CC#
Created by workani on 10/18/2024 in #help
What should I do next?
I’ve grasped some basics of C# and now I’m capable of creating simple console applications with API integrations. Should I continue learning basics? (If yes, what should I learn) or could I dive into ASP.NET? What would be better for my learning?
10 replies
CC#
Created by workani on 10/18/2024 in #help
✅ Do I always need to avoid coupling?
For example, I have a class Application where the main part of my project's logic is written, and I also have a GenerateVocabulary object which will itself use an Interface to actually generate content. Will it be good practice to simply create this object inside my Application class? And in general, is it acceptable in a professional context to create one object inside another if I'm 100% sure that I won't change it?
32 replies
CC#
Created by workani on 10/8/2024 in #help
✅ Creating multiple projects inside one solution in Rider on mac
No description
6 replies
CC#
Created by workani on 9/22/2024 in #help
Is an input library a good project for the portfolio?
I’m creating my own well-written library for getting different kinds of user input, and I’m curious if it’s a good project for my future portfolio.
5 replies
CC#
Created by workani on 9/9/2024 in #help
Populating a Dictionary from a CSV File with Words Separated by Semicolons
Hi, I want to create a small console app for learning new vocabulary, and I need to populate a dictionary (source language: target language) from a CSV file that contains vocabulary in this format: english;german\n. How could I populate a dictionary?
172 replies