ekhidna
ekhidna
CC#
Created by ekhidna on 7/2/2024 in #help
Confusing code with keyword ref
Maybe I did not explain very well. Making the 2nd method private is only an observation. The entire question is changing it to Async, and if ref Audit is really needed as it's always null
11 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
"What do you mean with program C# with azure? I know azure has a version control is that what you meant? " I think you're a bit confused here. For version control you use Git. You can use older version control systems like SVN or even Microsoft's I think it's TFS, not sure. But Git is the standard in the Industry. Azure is Microsoft's cloud. You can use Azure DevOps to work in an Agile framework like Scrum. Create pipelines etc. Azure also has a ton of services in there. It's basically program C# for cloud. Where your services and infrastructure are all in the cloud. But I would leave that for later
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
I think the main question here is: Why do you want to program in C#? Is it merely a hobby or do you want to become an IT Professional (or already are) Depending on the answer the approach can be different
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
"Unit Test isn't fun" ok I can even agree with you at some point. But is essential to make them if you want to work in IT
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
At work most of companies use C# for backend development for Web based applications. Being Web Apps with MVC , or Web APIs. So imo knowing how to program C# in Web environment is essenctial for a job
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
Yes it is worth for sure. I don't know what you use C# for. If it's merely a hobby. But if it is for work programming C# for web is fundamental
84 replies
CC#
Created by caique on 10/3/2023 in #help
❔ CRUD in Postgresql
Take a look here https://sqlines.com/postgresql/npgsql_cs_result_sets I don't know exactly but before I used Entity Framework for INSERT I'd use cmd.ExecuteNonQuery(); Like you have. But to SELECT it was another command cmd.CommandText = $"SELECT nome_cliente from tb_clientes;"; cmd.Parameters.AddWithValue("nome_cliente", nome); You have only this but I don't see where you are storing the values retreived from SELECT Maybe I am not reading well your code. Mas use a Entity Framework é melhor. E tem muito tutorial 🙂
12 replies
CC#
Created by caique on 10/3/2023 in #help
❔ CRUD in Postgresql
Why don't you use EntityFramework. I think it's compatible with PostgreSql
12 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
It's hard to know your level of knowledge as I don't know your expertise or how many years of work you have. But there's a lot more to learn in C# besides it's oop characteristics: classes, objects, encapsulation, inheritance, abstraction, and polymorphism. You can learn software design patterns. The link I sent before talks about them and there are free resources on internet to learn about it https://www.netsolutions.com/insights/software-design-pattern/ You can also have 1 month free trial in Azure and program C# with Azure Program C# with different architectures. eg Microservices, containerize Microservices and use an orchestrator like Kubernetes. Event Driven, CQRS, Message/Publisher with RabbitMQ, or Azure Service Bus, Unit Tests, Delegates, Asynchronous Programming Async/Await, Threads, Dependency Injection, good software practices like SOLID and many more .... Sorry if you already know most of this. I'm just assuming.
84 replies
CC#
Created by martito on 10/3/2023 in #help
✅ Carriages with 10 car models with years. If a car is produced in or after 2020 to be printed out.
Basicaly @Pobiega already said everything
43 replies
CC#
Created by martito on 10/3/2023 in #help
✅ Carriages with 10 car models with years. If a car is produced in or after 2020 to be printed out.
Create a class of Cars as already been said, with 2 properties the Brand and the Year. Instantiate a List of Cars and based on the Year of each car as condition print it.
43 replies
CC#
Created by martito on 10/3/2023 in #help
✅ Carriages with 10 car models with years. If a car is produced in or after 2020 to be printed out.
oh sorry than
43 replies
CC#
Created by martito on 10/3/2023 in #help
✅ Carriages with 10 car models with years. If a car is produced in or after 2020 to be printed out.
Can you use List<T> or must be an array?
43 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
I actually didn't see the code, but I imagine in the View when the user changes the first name, there is an event in ViewModel and Model that will be updated or do some action. I am not sure though. I never worked with MVVM, only with MVC, so my experience with it is scarce. Sorry
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
MVC as said earlier is designed for WebApps. MVVM is mainly for GUI, windows forms You also have the Model and the View. The ViewModel acts kind of a glue between them, specially with the bindings
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
Search in google for github projects with examples of MVVM
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
I found this repository in GitHub https://github.com/KhalilKhalaf/MvvmTemplate Maybe it will help you
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
You've got here a nice explanation of the MVC, MVVM and MVP Architecture Patterns. In the Bottom of the page. In the beginning is about software patterns https://www.netsolutions.com/insights/software-design-pattern/
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
I can delete my messages, if it's not a web app or API and is polluting the answers just say it @zezima11
84 replies
CC#
Created by fateos on 10/3/2023 in #help
❔ Understanding the model-view-controller
True. Also for windows Forms I am not sure if MVC is the right pattern. Maybe MVVM would make more sense imo.
84 replies