I get asked this question alot from many people who want to learn to program. What programming language should I start learning first? And what is the best approach? And normally I shoot out an answer that I think makes sense in the moment and then I don't give it a second thought. My usual answer is "check out C#, it's great blah blah blah" and I leave it at that. I totally ignore the fact that the other person has no clue what I'm saying and has no clue on how to get started. I actually did that recently to a co-worker who was interested in learning to code and they nodded and agreed and 1 month later they told me they had not yet started. It wasn't because they were lazy or because they were just making conversation when they told me that they wanted to learn to program. It was because my advice was the worst. It's like asking a martial artist to teach you a few things and he just stands there and says "kung fu..whoa".
"Which language should I learn?"
"They're all pretty neat I guess -_- "
Why is it so good?
And here it is with Visual Studio 2013:
That's not to say that Visual Studio is full of fluff and useless tools, because that's not the case at all. If you're working on a full .NET web site you'll probably make use of most of the things that you see in the screen above. But, if you're brand new to the whole scene and probably don't have a deadline next week, then notepad just seems much more appealing, particularly because everyone knows what notepad is.
It's syntax follows the same conventions as c++, c# and php and it offers many of the same features. Which makes transitioning to a higher level language that much easier. Loops and conditional statements are one to one with other languages, you have Objects and Arrays which are also treated like their higher level counterparts.
Not that there's anything wrong with languages like C# and VB.NET. I first learned to program in C++ then moved on to Java and finally got to try C#. That process took years however and now I realize that a good portion of that was learning the development environment. For example when I was learning C++ in college, I probably went through a dozen C++ compilers on Windows, and then ended the course by moving over to C++ programming in Unix. Those things don't become too important when programming in the real world. Every company you will work for will have their own programming environments and you just have to get used to it each time.
for(var x = 0;x < 5;x++)
if (x != 3)
document.getElementById("div1").innerHTML += "
window.onload = func1;
You can copy and paste that into a text file, save it as a .html file and your done. If I were showing how to accomplish this in Visual Studio, we'd still be in the pre-compilation phase and page life cycle and anybody new to programming would of had ZzZ's floating above their head.
Walter G. is a software engineer, startup co-founder, former CTO of several tech companies and currently teaches programming for a coding bootcamp. He has been blogging for the past 5 years and is an avid BMX rider, bio-hacker
and performance enthusiast.
Stay up to date with my weekly coding tips!