Somehow learned it, in the classroom to learn c,c++, self-taught C #, also do a number of Web projects, learning process, wrote a few notebooks thick, but did not write blog habits, a few days ago, some students asked to learn. NET recommendations. In fact, I do not know much, but also gave some personal insights, mainly basic, recorded here.
. NET Learning
1, language, I use C #, the basic grammar and C and C + + are the same, easy to learn, and sometimes math problems, can exercise thinking, do not understand and do not hurry, object-oriented to learn, class, function, call function to be skilled. "Learning Resources: Smart Podcasts. NET in C # video, personal software VS2010 "
2, ADO (WinForm or WPF), almost, that is, the form program, WinForm feel inclined to drag the control, WPF is biased towards the handwriting code, the label of the same thing, a bit like html,xml
Is the thing that looks like this, now use very little, learn this process can learn to use three layer architecture, database operation "Sensory learning this part, familiar with three layer architecture, database connection use"
3, say the three-tier architecture, namely the DAL (Data Access layer), the BLL (business Logic Layer), the UI (presentation layer), the three-tier architecture is the important role of decoupling, that is, to remove the coupling, so that any layer changes will not affect the other layer. Data access layer is used to interact with the database, that is, to realize the data deletion and modification. The business logic layer is the bridge between the UI layer and the DAL layer, which is the validation, calculation, and other business rules that decide whether to process the data. The UI layer is the presentation of the data. It seems to be too abstract to borrow an example from the Internet:
A hotel with three kinds of people: waiter (presentation layer), Chef (business Logic Layer), buyer (data visitor)
Waiter: just receive the guest;
Chef: Just do the dishes that the guests ordered;
Buyer: just buy the ingredients according to the order of the guests;
They each take their place, the waiter does not need to know how cooks Cook, do not know how the buyer buys the ingredients; The chef does not need to know which guest the waiter received, do not know how the buyer buys the ingredients; Similarly, the buyer does not need to know the waiter who received the guests, do not know how cooks cook dishes.
How are the three of them connected?
For example: Cook will do: fried eggplant, scrambled eggs, fried noodles-at this time to build three methods (Cookeggplant (), Cookegg (), Cooknoodle ())
The customer and the waiter, the customer and the waiter (UI layer) said: I want a fried eggplant, and the waiter is not responsible for fried eggplant, she put the request to submit to the chef (the BLL layer), the chef needs eggplant, the request submitted to the buyer (DAL layer), The buyer from the warehouse to get eggplant back to the chef, cook Response to Cookeggplant () method, do a good job of fried eggplant, and returned to the waiter, the waiter to the eggplant presented to the customer. This completes a complete operation.
In this process, the eggplant is passed as a parameter in the three layer, if the customer points scrambled eggs, then the egg as a parameter (this is the variable parameter). If, the user increases the demand, we also have to add the parameter in the method, one method adds one, one method designs to three layers, moreover actually does not have to design to one method the change. Therefore, in order to solve this problem, we can be the eggplant, eggs, noodles as a property definition to the customer entity, once the customer increased the demand for scrambled eggs, directly put the attributes of the eggs can be used, do not have to consider the method of each layer to add parameters, not to mention the parameter matching problem.
When you're using it, you'll be able to experience "in a podcast." NET Video in detail "
4, the database, I use the SQL SERVER2008, the database is not so difficult, learn to simple additions and deletions to be enough, in the process of encountering more complex situation, and then surf the Internet to check the good, with the use of the cooked. "Database learning video, a set of very good online ... I put a net on the plate.
5, HTML, I learned the time is in the http://www.w3school.com.cn/
First read HTML,HTML5 can not see first, remember some common tags, also do not deliberately remember, is also used on the familiar, focus on understanding the role of Div, learn div, learn how to layout.
6, CSS,CSS3 can also first do not learn, in fact, the HTML determines what is in the page, CSS determines what these things look like (color, location, size ...) The key to learn padding (inner margin), margin (margin), in fact, how to say, also quite good understanding, such as two Div, you can understand as two objects, the amount ... It's like a box with a computer, in order to shock, will put bubbles in the inside, and then the computer and the box between the spacing (foam distance), this distance is the inner margin, and then the margin, that is I with your distance, is two not related to the distance between the objects, no, I am not an object, the sum, also not, what ghost, is if you have a lot of computer boxes, the distance between the two boxes is the margin, (the language did not learn, can only say this), there is also a lot of use is float, float, see for themselves, it is not difficult to "suggest HTML two days to learn, CSS is similar, do not feel a lot will not, directly use it, You know how to use it while you're learning.
7, after learning Html,css Foundation, is the basis!!! Then go directly to use it, how to use, first to see how others use it. Download a Firefox browser (personal more accustomed to use this)
Open the browser, select Add-ons in the top right corner, search for firebug inside, then install. Restart the browser after loading. What's the use, press the keyboard F12 look, is this
Baidu's page code is displayed, the left is the HTML, the right is the CSS, see how others write, their own writing to see ... You can first look at the static,<script> is the JavaScript code, can be ignored.
8, the front is a static page, and then learn JavaScript, and Dom What, you can control the page to move up, a little annoying ... Don't worry, Dot basics, learn jquery behind
9, JQuery, is the package of JavaScript, a lot of things are simplified, so javascript play a basic good. Use jquery. "8, 9 can also learn in W3school"
Look javascript,html Dom can understand, and then learn jquery, (jquery Mobile can not learn, can be used to write the background of mobile Phone page Management page, concise)
10, AJAX, the role is to refresh the data locally, I am looking at other people's code, and then the process encountered do not understand the Internet to check, you can also directly in this website to learn, understand good get,post
11, JSON, the data is stored in the database, the data is a dataset, and then converted to Json. The amount ... How to say, JS take out the data, to the general processing procedures inside processing, the general processing program finished processing the return results, and then JS can control the data display to the interface.
To understand this, then start to do it, but the more recommended is to do while learning, I myself is spent 10 days, learned HTML CSS JS jquery ajax JSON and then the process of writing three pages, login, register, modify user information. is 10 days complete time, from morning till night, every day at least to the computer 10 hours, actually can only say is the introduction, understood. Later in the project to slowly strengthen the knowledge of not understand. Personal advice can not have no purpose to study, to have a plan, when to learn what part of the content, while doing learning it, a simple learning of a knowledge point is not enough, only in the time you know how to use these things, how to combine the various knowledge you learn.
In fact, the idea is very important, what do you want to do, what kind of system do you want to be? What website, have the idea is very important, also can inspire you to learn the related knowledge. The above knowledge is included in the foreground and backstage, but also is the basis, but also enough. If you prefer the design, the front desk, design page, learn PS, and then use good html,css,jquery ...
Finally, the above stuff is really not difficult ... Don't believe you try it yourself. Also, have to pay attention to the body, run running Bai, very good. In this case, wrote the first article, there are not very good places, in fact, I will not much. Write a bit serious, I do not like, haha ... Bye
. NET Learning Experience