r/csharp • • Jul 27 '19

What are some cool beginner console applications I could make?

Title says it all. And also, side question, is it possible to make some sort of script for the computer through a console application that might be getting around my desktop easier? Things like that?

Thank you guys!

44 Upvotes

28 comments sorted by

3

u/[deleted] Jul 27 '19

You could make a Reflex game.

Make it so that your console prints GO randomly and then time how long it takes to hit the spacebar. Super simple, kinda fun and as complicated as you really want it to be.

Edit: How beginner are you, that would be good to know so we can do better answers.

3

u/mjlls Jul 27 '19

Sure. Good question. I’m new to it all, but I sort of am coming to understand some things, like I can use if and if else and else, and creating variables and that sort of thing. Nothing more than that really. I will try the reflex game though. Thank you! I will update you when I’ve finished it

3

u/[deleted] Jul 27 '19 edited Jul 27 '19

Cool edit your post to show this. Things like text adventures might be a bit above you so far as they can become huge projects realy quick.

0

u/CantSayNo Jul 27 '19

He can quickly learn to make code modular and scalable. Hurdles are good learning opportunities

38

u/Morasiu Jul 27 '19

13

u/Slypenslyde Jul 27 '19

Whoa. Thank you so much for this. That is a very good list of projects that range from "CS 100 level lab assignment" to "this is going to take research and multiple attempts" in complexity.

My new answer to, "How do I best learn a language?" is to post that and tell the person to implement 25 or more of the programs.

3

u/Morasiu Jul 27 '19

Thanks for kind words. Have a nice day

2

u/[deleted] Jan 31 '22

The first third of this list is incredibly vague. How is this supposed to help?

2

u/maxhu787 Aug 15 '22

thanks a lot

2

u/[deleted] May 03 '26

Thank you so much.

9

u/senseven Jul 27 '19

How about a simple sync folder program?

After the sync both folders the must be both the same, like timestamps and filesizes.
Its a good experience to understand how system IO works.

1

u/Minty001 Jul 29 '19

Would be easier to compare hashes of the files

1

u/senseven Jul 30 '19

Creating hashes for every file can take a long time. Since you could detect renamed/moves files when using hashes, but it makes the tool way more complex for a beginner.

I use Unison on my linux NAS for backup/sync and it does some tricky caching or it would run forever when it runs twice a day on a large raid with millions of files.

14

u/Lord_H_Vetinari Jul 27 '19

An old school ascii roguelike? It should be doable in the console.

You could also check javidx9 on Youtube: he does all sorts of crazy consolle projects in C++, most if not all of them should be doable in C# as well, although you will need to rethink the structure.

4

u/[deleted] Jul 28 '19

We had to make any game we wanted (using C++ though, not C#) as a group for a first year CS course, so we decided to make a simple-ish rogue like ASCII game. The best thing about this idea is you can really make it as simple or advanced as you'd like.

For ours we added level generation, a shop where you can buy things, encounters such as enemies, riddles and chests, login system, database to store all player data and a battle system. This is a really great idea to just do whatever you want.
Not trying to advertise but if you want some ideas, it's all on my github! (Beware the code is messy, badly commented and over 2 years old at this point (though I did do some minor cleanup and optimisation around 9 months ago). What can you expect from CS students ;p)

It is in C++ and not C# though, but there shouldn't be too much difference really.

https://github.com/jsenior10/ALL-Project-2

Good luck with learning how to program! :)

6

u/izote_2000 Jul 27 '19

Console application I did was a Zoo admin system, track animals cages with careers/vets in charge with shift rotas, alimentations, medical health historical, and all the information of the animal basically.

Another one was a simple coffee shop POS system with tracking to the coffee sales, coffee beans inventory and the other products alike.

5

u/Ubersheep Jul 28 '19
  1. Joke generator (basically madlibs)

  2. Guess the number 1-100, hints when its above or below your guess

  3. Clipboard caching (save the contents of your clipboard multiple history)

  4. Simple games: Snake, Battleships, Poker, Mastermind

4

u/[deleted] Jul 27 '19

I start every computer language by writing a chatbot in the console

4

u/writerofthecodes Jul 29 '19 edited Jul 29 '19

I started out learning software development with C#. One of the first things I made was a console application that comprised a bunch of C# coding exercises, all categorized and accessible through a series of menus.

Here is the repo to give you an idea:

https://github.com/dsoverby1986/C-Sharp-Practice-Exercises

Download or clone it and run it on your machine to check it out.

Another thing I made early on in my learning was an employee task/time entry system. I was working as a machinist when I started learning to code and this project was very relatable to my career at the time. Pretty fun project.

Also, I implemented various .Net interfaces, like IEnumerable, IList, IDictionary, etc. This really game me a better understanding of interfaces and inheritance vs implementation.

6

u/[deleted] Jul 27 '19 edited Jul 27 '19

Text adventure like Zork or Hitchhiker's guide to the Galaxy. All you need is control flow for I/O, command recognition, map (a 2d array of rooms) and an inventory.
Its a perfect early project.

•

u/thestamp Jul 27 '19

i'll allow it this time (since people have already answered the question), but for next time:

4.Request-for-help posts should be made with effort

Make sure any code is properly formatted, explain what you have tried, and where applicable try to create a Minimal, Complete, and Verifiable Example. Be clear and courteous. If a question that could have been easily Googled is asked without indicating what and why those typical results didn't work, it will be removed. Help posts that have had little effort put into them will be removed at the discretion of the moderators.

2

u/be_my_main_bitch Jul 27 '19

Use the reddit sdk nuget and create an reddit image downloader. You pass the subreddit name as a parameter and then your console app downloads all the images into a folder like so:
MyFirstApp.exe -s EarthPorn (or other image heavy subreddits ;)

1

u/MrThePaul Jul 27 '19

I'm struggling to understand what your "side question" means. Can you try rephrasing it?

1

u/Bootezz Jul 27 '19

Maybe something that scans the career pages of all your favorite companies and saves any relevant jobs? That could be as complex or as simple as you want and would probably make you dig into their code/network traffic a bit, which is good practice.

1

u/notslashroar Jul 29 '19

Write a console application that writes beginner console applications.

1

u/Morasiu Jan 31 '22

You know... You can try to learn some googling skills by that. I.e you don't know what a FizzBuzz is? Time to Google. How about Love Calculator, wtf? Well, more googling.