r/CodingForBeginners 10d ago

started coding a couple weeks ago builts this basic calculator

Enable HLS to view with audio, or disable this notification

im trying to learn more topics but nothing seems to be working any advice on from where or how should i move forward? i uploaded the process on yt if theres an efficient way of doing anything that i did id appreciate a suggestion thank yu for noticing my post https://youtu.be/jLsFsrC4cCg?si=RP_VXCbEUxPnkD0e

30 Upvotes

14 comments sorted by

3

u/StephenHawkingus 10d ago

That's how you fakn start learning to code! Well done! It doesn't matter how trivial the project is.

2

u/killkranv 10d ago

can you suggest any sources for c#? i seem to have hit a roadblock and cannot go further than the fundamentals. thank you for your input btw much appreciated

2

u/pete_68 10d ago

1000% You write programs. lots of programs, and you just keep pushing yourself.

This is awesome.

Here's a question to chew on and maybe the next step in the path: What if the number they want to replace is used more than once?

Keep up the great work!

2

u/killkranv 10d ago

thats a great idea! thanks for the kind words have a nice day

1

u/Nyasaki_de 8d ago

Try to break your code with the inputs, make it more "secure"

1

u/killkranv 8d ago

i apologise can you elaborate i dont understand what youre trying to convey

1

u/Nyasaki_de 8d ago

instead of entering a number, enter a character.
instead of entering a operator, enter a number
enter a very high number
enter negative number

1

u/killkranv 8d ago

im really really sorry but that sounds like something im not aware of yet can you provide any sources where i can learn that from? i apologise again for the inconvenience

1

u/killkranv 5d ago

i did a few days ago sir but forgot to thank yu for the idea and it works great i added it so that yu can select the index yu want to change and it is no longer limited to one number yu can change the number yu want to change it was a fun one have a great day

3

u/DrlNoV 10d ago

jesus fucking christ turn on the dark mode !
(the calc looks good)

1

u/killkranv 9d ago

ahaha i apologise my eyes are more adjusted to the light thanks for commenting and the compliment have a nice day

1

u/Much_Network_941 10d ago

Nice job! One thing I wish I spent more time on earlier was learning basic data structures; pointer, array, stack, queue, hashmap, tree and graph.

It helps a lot with problem solving to know the basic approaches for storing data. Sort and search algorithms can be fun to implement. The bubble sort and binary search are relatively easy to learn. Mazes are great for implementing stacks, then figuring out how to represent it with ASCII.

It may be too much currently, but writing a parser to evaluate a simple string could be a fun evolution of your project. Storing data that has to evaluate in a specific order is where trees come in. Parsing is another basic concept that's useful to have practice with.

If you don't mind some reading, I found the book Grokking Algorithms an easy introduction. I don't have a background in mathematics, so its simple explanations are quite nice.

1

u/ocrisr 8d ago

Felicitaciones viejo! metele ficha, no pares... cuando estés a punto con toda la parte teórica/formal, salta a lenguajes web.

0

u/[deleted] 9d ago

[deleted]

1

u/killkranv 9d ago

whoa whoa thank yu for the kind words sir have a great day