Today I officially started my C# journey — not with advanced topics, but with the absolute basics. Before building complex applications, I wanted to understand how the language communicates, stores data, and handles input.
First up was console printing. I learned the difference between Console.Write() and Console.WriteLine(). One keeps the cursor on the same line, the other moves to the next. Simple, but important for formatting output.
Then I explored Console.ReadLine() to take user input. It was cool to see how quickly a program becomes interactive just by accepting a name and printing it back.
Next were comments — both single-line (//) and multi-line (/* */). Clean code matters, even from day one.
I also covered variables and constants. Variables store changeable data, while constants remain fixed. I practiced using data types like int, double, and decimal, learning that decimals are better for precise values like money.
The var keyword was interesting too. It lets the compiler figure out the type automatically, while still being strongly typed.
Finally, I worked with strings — escape sequences like \n, verbatim strings using @, and simple string concatenation using +.
Nothing complex yet — just building a solid foundation.
Special thanks to @vaso for the guidance and learning resources:
Top comments (0)