Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to improve the program coding [closed]

Tags:

c#

I am a C# developer. Still learning. I had not learn all the features of C# 2.0 and now the new version of c# is being released. how do we cope up with this.what is the best option to cope up with the latest programming skills.

like image 367
jbcedge Avatar asked Aug 06 '26 20:08

jbcedge


2 Answers

As Steve M said: Read. But don't stop there. You also have to write.

First: Write Code. Try out the stuff you read about. Look at open source software and how things are done by others. Try those new techniques out.

Second: Write text. Write a blog post or whatever on how to do something. You had a problem and you solved it, now write down what the problem was, what ideas for solutions you had and what solution you picked for which reasons. Get people to comment, get peer review of your own thinking that way.

like image 166
tante Avatar answered Aug 09 '26 12:08

tante


  1. Read good quality code. Locate other projects (open source or proprietary projects within your organizations) and look for how other engineers have approached particular issues. Look for idioms, design patterns, styles that you find particularly good and adopt them in your coding practices.

  2. Concentrate on the basics. Sure knowing how to perform a particular operation best in C# is good, but knowing how and when to abstract, avoiding duplication, following style rules, and giving your identifiers appropriate names are more important skills. These are also more valuable because you can apply them to any language.

  3. Improve your code. When you find in code something complicated or suboptimal try to think of a better way to write it. For instance, if you write a lot of boilerplate code, examine how you can use abstraction mechanisms, like subroutines, methods, or classes, to avoid the code duplication. If an expression is particularly long, think whether putting some of it into a separate function can increase its readability.

  4. Use tools. There are tools, like FindBugs, that can locate suboptimal or downright wrong code constructs. Make it a habit to have your code pass cleanly through these tools, and also from your compiler's highest warning setting.

  5. Have your code reviewed. Find a mentor and have him or her review your code. Be ready to accept criticism and learn from this experience. Later repay this favor to the community by acting as a mentor.

like image 20
Diomidis Spinellis Avatar answered Aug 09 '26 12:08

Diomidis Spinellis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!