Skip to main content

All Questions

Tagged with
1 vote
2 answers
403 views

Thread-safe int wrapper in c#

My system is a .NET Core 7 console app, which starts some background threads. I need to pass some int values (counters, etc.) between the main and background ...
lonix's user avatar
  • 143
0 votes
2 answers
483 views

Drawing a rectangular playing field

I created a method to print a playing field in the console, but I think there are much better ways to do this than mine. ...
user avatar
3 votes
1 answer
1k views

Console Slot Machine written in C#

This is my console simulation of the Slot Machine in C#. Please take a look at this code and point out possible ways of improvement. ...
K1BeR's user avatar
  • 39
3 votes
2 answers
237 views

Calculator Program improvements

I'm pretty new to programming and made a few programs so far. I recently made a Calculator program and I hope you guys could tell me what I could do to improve. ...
the 's user avatar
  • 49
7 votes
3 answers
629 views

A program that uses three methods to reverse and print an array

I have this code that uses three methods to do certain tasks. One creates an array, another reverses it and the other one prints it out(it was required to use three methods). A person recommended me ...
anon's user avatar
  • 73
10 votes
2 answers
2k views

List the movies I haven't seen

I am new to programming and have been taking the time to learn C# by reading, doing some classes online for Unity, and using Youtube. I think you learn more from doing your own projects so I decided ...
NiteRyder's user avatar
  • 103
1 vote
2 answers
170 views

Parcel size classifier [closed]

I submitted a technical assignment for a job interview process and I am stressing out wondering if my submission was any good. I would like to learn and be a better developer, so please give me ...
Javed's user avatar
  • 29
1 vote
0 answers
72 views

What pattern can I use to write CRUD functionality? [closed]

I am writing a console application. CRUD functionality.I would like to try to apply the pattern. Is it possible to apply a "state" pattern? In the AddCustomer () ...
Gen Ts's user avatar
  • 111
0 votes
3 answers
95 views

App that sets configuration data

I've been writing my code like this for a really long time now, I am wondering if there is a more efficient way to do this. This is especially after a senior developer said my code was very amateurish....
Marcus Aurelio's user avatar
4 votes
3 answers
1k views

Console word wrapping

I wrote a text adventure game a while back and today I looked at it to see how I did the word wrapping (to use in a new project); I'm curious if I went about it the right way. I realize I could use an ...
Tyler C's user avatar
  • 325
2 votes
0 answers
274 views

Console shutdown mechanism [closed]

I'm trying to create an effiecent way to shut down my console application. To do this I have a while loop in my program's main method waiting for a request to shutdown. ...
ropuxil's user avatar
  • 69
3 votes
1 answer
84 views

Subscription handler

I have so many classes like this in my solution but I've chosen this one just to show you guys what I mean by it. In my solution I have lots of classes that just follow the same 2 classes exactly the ...
Harry Button's user avatar
4 votes
1 answer
271 views

Component-based system for animals

I'm making a small Zoo application, in this question I will cover only the basics - the animals. I've picked the component-based design over inheritance because the creatures can be quite complex ...
Denis's user avatar
  • 8,508
2 votes
2 answers
563 views

Console single player blackjack versus a dealer again

This is the second pass on this. pass one A single player versus a dealer. It does not perform bets - it only track wins and losses and has no splitting. Other than that I tried to get it all in. I ...
paparazzo's user avatar
  • 6,016
3 votes
2 answers
5k views

Simple dice console game in C#

I wrote a little console game that is supposed to take some dice and some players and determine the winner of the game. I wrote it for the sole purpose of figuring out why i'm doing the things i'm ...
Marsh's user avatar
  • 69

15 30 50 per page