Job Recruitment Website - Job seeking and recruitment - Introduction to Programmers: How to Teach Yourself to Program _ How to Teach Yourself to Programmers?

Introduction to Programmers: How to Teach Yourself to Program _ How to Teach Yourself to Programmers?

First of all: don't rush to choose a language. A common mistake that beginners make is indecision, and they can't judge which programming language is good, so they should learn it first.

We have many choices, but you can't say which language is the "best"

We should understand that, after all, it doesn't matter what language.

It is important to understand data structures, control logic and design patterns.

Any language-even a simple scripting language-will have all kinds of characteristics that all programming languages have, that is, all languages are interlinked.

I'm studying for a degree in computer science. I use Pascal, assembly and C language to program. In fact, I have never regarded it as a career in order to get a return.

I have been teaching myself to program, and I don't need it at work. I use my existing knowledge, consult various documents and books, and learn their usage.

So, don't rush to choose which programming language.

Find out what you want to develop, use a language that can accomplish this task, and that's it.

According to different development platforms, there are many different forms of software development for you to choose from: from website applications to desktop software to smart phone software to command-line scripting tools.

In this article, I will focus on some popular introductory tutorials and resources that can help you learn how to program and develop on various mainstream platforms.

I suppose you are a very shrewd reader, but for beginners, when I talk about program code, I still have to talk about it according to the entry level.

Because even if you read an introductory programming manual by yourself, if you find that you can understand it, you will naturally be very happy, which is conducive to your further study.

Desktop scripts want to start programming in Windows or Apple. The easiest way is to start with a scripting language or a macro language, such as AutoHotkey(Windows) or Automator (Apple).

Now, some hardware programmers are yelling at the screen, saying that AHK and AppleScript are not "real" programming languages.

Maybe they are right-technically, these languages can only do some upper-level programming.

But for beginners who just want to read and realize some programs that can run automatically on the computer, these languages will be a good starting point-you will be surprised at their rich functions.

For example, everyone's favorite Texter is a Windows application developed by Adam using AutoHotkey, which can run independently, so this scripting language is far from being limited to developing small-scale scripting software.

If you want to start with AutoHotkey, you can refer to Adam's instruction: How to turn over an action on a keyboard using Autohotkey (then, you can download the Texter source code to see the internal structure of this fully functional Windows application developed by AHK).

Web development HTML and CSS: The first thing you need to know when developing a website is HTML (a web page is made of it) and CSS (a style tag that makes the appearance look better).

HTML and CSS are not programming languages-they are just page structure and style information.

However, before you start developing web applications, you must learn how to write simple HTML and CSS by hand. A web page is the front-end display part of any web app.

This HTML guide is a good place to start.

JavaScript: When you can build static pages through HTML and CSS, things start to get interesting-because it's time to learn JavaScript.

JavaScript is a programming language in web browser, and its magic lies in that it can create some dynamic effects in the page.

JavaScript can do, script, and Ajax, so it is about all kinds of good things on the Internet.

Learn JavaScript from here.

Server-side scripting: Once you have learned the knowledge in a web page, you should start adding some dynamic server operations to it-to achieve this, you need to turn your attention to server-side scripting languages, such as PHP, Python, Perl or Ruby.

For example, if you want to make a contact form in the form of a web page and send an email according to the user's input, you need to use a server-side script to realize it.

A scripting language like PHP allows you to communicate with the database on the web server, so if you want to build a website where users can log in and register, such a language is just what you need.

Webmonkey is an excellent web development resource website, which contains a large number of guidance manuals for various web programming languages.

Read their PHP beginner's guide

When you feel almost the same, watch WebMonkey's sPHPandMySQLtutorial and learn how to use PHP to interact with the database.

The best on the Internet are official online documents and function references in PHP language.

Every knowledge point (such as strlenfunction) is listed at the back, which is very valuable to the document itself.

I like PHP very much, but there are many other server-side scripting languages to choose from.

Web framework: In the past few years, Web developers have had to write repetitive code for repetitive problems in the process of developing dynamic websites.

In order to avoid the problem of repetitive work every time we develop some new websites, some programmers will set up some frameworks for them to do repetitive work for us.

Take the very popular RubyonRails framework as an example. It provides us with a web-oriented framework by using Ruby programming language, which can be used by ordinary web applications.

In fact, Adam developed Rails first formal (and surprising! ) network application, MixTape

I

This is how he built a website without any experience.

Other web development frameworks include CakePHP (for PHP programmers), Django (for Python programming) and jQuery (for JavaScript).

WebAPIs:API (application programming interface) refers to the program mode exchanged between different softwares.

For example, if you want to put a dynamic map on your website, you can use GoogleMap without developing your own map.

GoogleMapsAPI allows you to easily introduce maps into your program through JavaScript.

Almost all the modern network services you know and love provide APIs, through which you can get their data and gadgets. You can use these interactive things in your applications, such as Twitter, Facebook, Google Docs, Google Maps, and the list goes far beyond that.

Integrating other web applications into your web application through API is the frontier of rich web development.

Every excellent mainstream web service API comes with complete documentation and some quick start instructions (for example, this is Twitter's)

crazy

Command line scripting If you want to develop a program that can read words or files and input and output some useful things, then the command line scripting language will be a good choice.

However, it is not as attractive as web applications and desktop applications, but as a rapidly developing scripting language, you can't ignore them.

Many web scripts running on linux platform can also run in command line mode, such as Perl, Python and PHP, so if you learn to use them, you can use them in two environments.

My learning path has never been too far from Perl. I taught myself Python with this excellent online free book DiveintoPython.

If becoming a Unix master is also your learning goal, then you must be proficient in bash, a scripting language.

Bash is a command-line scripting language in Unix and Linux environments, which can do anything for you: from automatically backing up database scripts to fully functional user interaction programs.

I didn't have any experience in using bash scripts at first, but in the end I developed a full-featured personal agent task manager with bash: Todo.

txtCLI

Plug-ins Today's web applications and browsers can enrich their functions through some extension software.

Because some existing softwares, such as Firefox and WordPress, are paid more and more attention by developers, and the development of plug-ins is becoming more and more popular. People are saying, "But only by mastering HTML, JavaScript and CSS can you develop a lot of things you want in any browser.

Scripts, Stylishuserstyles are written in the same language as ordinary pages, and these things are worth studying.

More advanced browser extensions, such as Firefox extensions, can help you a lot.

For example, to develop an extension of Firefox, you need to be proficient in JavaScript and XML (a markup language similar to HTML but with a stricter format).

As early as 2007, I wrote the howtobuildaFirefoxextension, which was the result of my clumsy research on some learning materials on the Internet.

Many free and popular web applications provide extended frameworks, such as WordPress and MediaWiki.

These applications are written in PHP, so you can only do these things if you are familiar with PHP.

This is how to write WordPress plug-ins.

Developers who want to master the cutting-edge technology of GoogleWave can start by writing widgets and gadgets in HTML, JavaScript, Java and Python.

The first Wavebot I wrote started with this quick start guide in the afternoon.

The best result of developing Web applications and learning programming on the desktop is that what you have learned in one environment can be applied to another.

The advantage of learning to develop web applications first is that we have some ways to make web applications run directly on the desktop.

For example, AdobeAIR is a cross-platform real-time running platform that allows your program to run on the desktop of any operating system with AIR installed.

AIR applications are all written in HTML, Flash, or Flex, so it can make your web applications run in a desktop environment.

AIR is an excellent choice for developing and deploying desktop applications, just as we mentioned that 10 makes it worth installing AIR applications.

Mobile application development The development of mobile applications that can be run on iPhone or Android smartphones is in a blowout trend, so you can also dream about how to make a fortune from your genius programs in iTunes App Store.

However, as a newcomer to coding, the learning curve of directly entering mobile development may be steep, because it requires you to be familiar with advanced programming languages, such as Java and ObjectiveC C C.

However, of course, you have to see what the programming of iPhone and Android is like.

Reading this simple iPhone application development example can give you a preliminary understanding of the development process of iPhone programs.

Android programs are all written in Java. The following is a simple video tutorial to teach you how to develop the first "HelloAndroid" program (note: you may need an agent to watch this video).

Patience, hard work, trying, failure. Good programmers have a quality of never giving up until they reach their goals. They will be pleasantly surprised at some achievements after long-term deliberation and failure.

Learning programming will be very rewarding, but the learning process may be frustrating and lonely.

If possible, you'd better find a partner to do it with you.

To master programming, like other things, you need to persist, try again and again and gain more experience.