Publicidade

Regardless that it’s been round for 20 years, there’s by no means been a greater time to be taught C#, since it’s thought-about a really modernized programming language. Whether or not you’re trying to get into internet improvement, cellular app improvement, desktop purposes or recreation improvement, otherwise you simply need to begin studying programming, C# is a superb general-purpose language to grasp due to its versatility. I began my profession with a number of different languages, and despite the fact that C# wasn’t my first, it’s a robust language and ecosystem that gives flexibility and energy to any sort of mission.

Publicidade
Computer code lines on a display

(Getty Photos)

Initially, I began studying C# to open up extra programming alternatives. The corporate I at present work for handles lots of giant internet service tasks written in C#/.NET. Whereas I usually work on the entrance finish, I made a decision to start out studying C# to raised perceive the back-end providers our staff writes. Moreover, I’ve all the time been excited about online game improvement, and with a rising variety of trendy recreation engines being developed in C#, studying the language appeared like a worthwhile endeavor.

Publicidade

In studying C#, I’ve grown to have a deeper appreciation of statically-typed languages and the worth they create to giant and sophisticated purposes. Statically-typed languages like Java and C++ require you to declare the “sort” of a variable, resembling a string, integer or different, if you create it. Dynamically-typed languages do their finest to know the kind of a variable with out you declaring it. Since I come primarily from a JavaScript, PHP and Python background, all of that are dynamically typed, the construction of static typing provides me extra confidence within the software program I write.

Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage
Supplier
Price
Ability Stage

Since C# was not my first programming language, I already had a stable understanding of the basics to work with after I began studying it. In keeping with Jiří Činčura, a developer and writer of the weblog Tabs Over Areas, these ideas are crucial place to start out.

“I’d first deal with the fundamentals,” Činčura says. “I do know it’s typically boring, however I believe in three days you possibly can get the fundamentals down and have a stable understanding and start line.”

In case you’re like me and have already got that stable understanding of programming fundamentals, you possibly can bounce in to studying C# shortly. The principle syntax most likely will take you just a few days to know. For this, the official Microsoft .NET assets are a few of the finest, and are the place I began. My suggestion is to start by taking a manageable mission and tackling it head-on.

“I’d suggest to first…begin with a easy program,” Činčura says. “Don’t attempt to begin with an internet software…Begin with easy stuff like a console app and get your self aware of the language, the ecosystem, with the instruments.”

I selected a basic instance for studying object-oriented programming, a point-of-sale system for a fictional film rental chain referred to as MovieWorld. I started by setting targets and asking some fundamental inquiries to information the mission:

  • What ought to this software do? It ought to enable somebody to handle clients, their leases and what films are in inventory.
  • How ought to the applying perform? Orders contain one buyer and a number of films. Motion pictures might be new releases or commonplace – and so forth.
  • The place ought to I begin? Start with a easy command-line app to get began, and work towards your aim based mostly on the questions you reply.

“The way in which I discovered…choose a manageable job you possibly can chew off…a easy app…simply envision one thing you need to construct,” says Christian Findlay, an Australia-based C# knowledgeable who develops software program and content material. “Possibly write down the way it ought to work…after which undergo the method of creating it occur. In that course of, you’ll have plenty of questions. Reaching out to the neighborhood goes to be your finest approach to be taught and get suggestions about do issues.”

Early on, it could be tougher to Google your questions, so assets like Stack Overflow and the Be taught C# subreddit might be very useful. Whereas the web might be notoriously powerful on starting programmers, the C# neighborhood tends to be fairly welcoming.

A few of the largest challenges come not from studying the language and syntax, however when understanding finest practices and the C# ecosystem as an entire.

“Currently there may be lots of stuff taking place within the .NET ecosystem. It should be tough for the newcomers to control all the pieces,” Činčura says.

As you’re employed on a pet mission to hone your expertise and achieve a deeper understanding of C#, you could find solutions to your questions and get assist from books, tutorials and trendy hybrid tutorial/hands-on techniques. Findlay recommends Katacoda by O’Reilly, which he makes use of.

“You may log in to the browser, it offers you a command immediate and a file editor, and you’ll go in and sort the code and run the code instantly contained in the browser,” Findlay says. “These sorts of tutorials…offer you an introduction to the language…but additionally offer you an opportunity to strive it out, all in the identical place.”

Most of us who resolve to discover a brand new talent need to know the way lengthy it would take to be taught. As for C#, how shortly you’ll choose up the language depends upon components together with whether or not you’ve achieved any programming earlier than. Are you proficient in one other programming language? Are you aware use a pc?

“In case you have expertise programming…it could take you every week to be taught C#. One week, actually,” Činčura says. “It’s not a tough language. You don’t should know all of the bells and whistles. Mainly in every week you can begin writing code.”

In case you’re new to programming, you possibly can definitely begin with C#, however the language isn’t what’s necessary – understanding the basics is crucial, and it should not take you lengthy to grasp the important thing ideas. When beginning C#, it may even be discovered language agnostic, utilizing what’s generally known as “pseudocode” to know the logical patterns and fundamental concepts that apply to all programming languages.These core ideas might be discovered in as shortly as at some point. Making use of C# to them and really writing easy code might be achieved inside a few weeks, relying on how a lot time you dedicate to studying.

In case you have expertise with different programming languages, C# must be comparatively simple to select up syntactically. Nevertheless, studying the ecosystem and finest practices will take a while. That is the half that has been most tough for me – understanding the “C# means” of doing issues. I discovered to navigate the language by getting concerned within the C# neighborhood, studying articles and placing my very own code on the market to be critiqued.

“Put your code in a public place like GitHub or Stack Overflow and say, ‘I’ve achieved this. How would I enhance this?’…That’s one thing that may can help you continue learning and enhancing the remainder of your life,” Findlay says. “You’re taking a look at an extended journey, but it surely doesn’t essentially imply you can’t be creating one thing proper now.”

You may construct nearly something with C#. Whereas it’s mostly used for internet, desktop purposes and recreation improvement, frameworks like Xamarin are broadening the horizons for C# as a language for cellular improvement.

C# can also be a robust participant on the earth of cross-platform improvement – writing code that may run on all techniques. Frameworks like Uno make that potential.

“Increasingly more, these applied sciences have been operating throughout totally different type components like telephones, and now it’s transferring to the browser as effectively,” Findlay says. “The long run as I see…is absolutely about cross-platform app improvement.”

C# can also be proving to be a viable language for machine studying and synthetic intelligence, with frameworks resembling ML.NET.

If you wish to turn out to be a proficient C# programmer, you’ll have to take time to dabble, then extra time to excellent. It will not be essential to take programs or learn textbooks, however what’s most necessary is working at it recurrently and all the time eager to be taught extra, not simply doing the identical factor again and again.

“It took lots of evenings and weekends to principally play with one thing,” Činčura says. “I utterly perceive that there are folks…who don’t do programming within the night. That’s superb, however don’t faux that you just’re going to be an amazing developer. In case you prefer it…simply observe it.”

  • W3Schools: This is a useful useful resource for examples, tutorials, quizzes and workouts on C#.
  • TutorialsTeacher: This web site incorporates data on C# programming and lots of free tutorials.
  • Christian Findlay on Katacoda: Findlay’s assets listed here are wonderful for understanding C# fundamentals and getting began shortly.
  • freeCodeCamp.org on YouTube – freeCodeCamp.org gives almost limitless assets on programming, and the movies on C# are wonderful.

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *