. Net learning experience, three strict three real learning experience

Source: Internet
Author: User

. Net learning experience, three strict three real learning experience

I learned IT for some reason, learned C, C ++ in the classroom, learned C # by myself, and made some website projects, learning processes, and wrote several thick notebooks, I didn't write a blog post. A few days ago, someone asked me to learn. net. In fact, I don't know much about it. I also gave some personal opinions, mainly for the basics. I will record them here.

. Net Learning

1. Language: I use C #. The basic syntax is the same as C and C ++. It is easy to learn. Sometimes I have mathematical problems and can exercise my thinking. Don't worry if you don't understand it, object-Oriented Knowledge, class, function, and call function skills. [Learning resources: C # Video in Chuanzhi podcast. Net, VS2010 for personal use]

2. ADO. NET (Winform or WPF) is similar, that is, the form program. winform is more inclined to drag controls, while WPF is more inclined to hand-written code. The labels are similar to HTML and XML.

 

This is something that looks like this. It is rarely used now. In this process, you can learn to use a three-tier architecture and database operations. [I feel that I have learned this part and are familiar with the three-tier architecture and database connection]

 

3. Let's talk about the three-tier architecture, namely DAL (data access layer), BLL (business logic layer), UI (presentation layer), which plays an important role in decoupling, that is to say, removing coupling, so that any layer of change will not affect the other layer. The data access layer is used to interact with the database, that is, to add, query, modify, and delete data. The business logic layer is a bridge between the UI Layer and the DAL layer, that is, after verification, computing and other business rules determine whether to process data. The UI Layer displays data. It seems that it is too abstract. An example on the Internet is used:

There are three types of people in a hotel: Waiters (presentation layer), Chefs (business logic layer), purchasers (Data reporters)

Attendant:Only reception of guests;

COOK:Just cook the dishes ordered by the guests;

Purchasers:Just purchase food according to the requirements of the guests;

They take their respective roles, and waiters do not need to know how chefs cook food, nor how purchasers buy food. Chefs do not need to know which guests the waiters receive, nor how purchasers buy food. Similarly, purchasers do not need to know who the waiter receives or how the cook Cooks cook.

How do they connect?

For example, cookEggplant (), cookEgg (), and cooknogram ())

The customer directly deals with the waiter. The customer and the waiter (UI Layer) said: I want a fried eggplant, but the waiter is not responsible for fried eggplant. Then she submits the request, deliver the request to the cook (BLL layer). If the Cook needs eggplant, submit the request to the buyer (DAL layer). Then the buyer obtains the eggplant from the warehouse and sends it back to the cook, in response to the cookEggplant () method, the cook cooked eggplant and sent it back to the waiter. The waiter presented the eggplant to the customer. This completes a complete operation.

In this process, eggplant is passed as a parameter in three layers. If the customer clicks fried eggs, the eggs are used as a parameter (this is a variable parameter ). If you want to add more parameters to a method, you must add one parameter to the method, and design one method to three layers. In addition, in practice, you must design more than one method. Therefore, in order to solve this problem, we can define eggplant, eggs, and noodles as attributes to the customer's entity. Once the customer increases the need for scrambled eggs, they can simply take out the eggs for use, you don't have to consider adding parameters to the methods at each layer, let alone parameter matching.

When you use it, you will be able to see [detailed in the. NET video of Chuanzhi podcast]

 

4. database I use SQL SERVER2008, but the database is not that difficult. It is enough to simply add, delete, query, and modify the database. In the process of doing so, I encountered a complicated situation, you can check it online. [Database learning video, a set of good online... I have placed the online storage]

5, HTML, I learned in http://www.w3school.com.cn/

 

After reading HTML, HTML5 can be skipped first. Remember some common labels, and you don't need to remember them. You can also get familiar with them. You can focus on understanding the role of div, learn div well, and learn how to layout it.

6. CSS and CSS3 can also be left blank. In fact, HTML decides what is in the page. CSS determines what these things look like (color, location, size ...) Learning about padding (padding) and margin (margin) is quite understandable. For example, you can think of two divs as two objects... Just like a box containing a computer, it will put foam in it to prevent shock, and then there will be a gap (bubble distance) between the computer and the box. This distance is the padding, then the margin is the distance between you and me, that is, the distance between two irrelevant objects. No, I am not an object, amount, or something, that is, if you have many boxes with computers, the distance between the two boxes is the margin (you can only talk about this if you are not good at Chinese ), another one that uses float is float. Let's take a look. It's not hard. [We suggest you finish learning HTML in two days. CSS is also similar. Don't think that many of them won't. Use it directly, you can learn how to use those things]

7. After learning HTML and CSS, it is the foundation !!! Let's use it directly. How can we use it? Let's first see how others use it. Download a Firefox browser)

Open the browser, select additional components in the upper right corner, search for firebug in it, and then install it. Restart the browser after installation. What's the purpose? Press F12 on the keyboard.

 

The page code of Baidu is displayed. The HTML on the left and css on the right are displayed. Let's see how others write the code and write it on your own... You can read static code first. <script> javascript code can be ignored first.

8. The front is a static page, and then you can learn JavaScript and dom. You can control the page to be moved... It doesn't matter. Click basic and learn jQuery later.

9. jQuery is the encapsulation of javascript, and many things are simplified, so it is good to lay a foundation for JavaScript. Use jQuery. [8, 9 can also be learned at W3School]

You can read JavaScript and html dom, and then learn jQuery. (jQuery mobile can be used to write background management pages of mobile phone pages, which is concise)

10. AJAX is used to partially refresh data. I learned from other people's code, and then I went online to check if I didn't understand it. You can also learn it directly on this website, get and post

11. Json: for storing data, the data retrieved from the database is dataset and then converted to JSON. Amount... How can this problem be solved? js extracts data and transmits it to the general processing program for processing. After the general processing program completes processing the returned results, js can then control the data to display on the interface.

After learning about this, let's get started. However, it is more recommended that you study while learning. It takes me ten days, after learning html css js jquery ajax json, three pages are written during the process. login, registration, and user information are modified. It is a complete ten-day period. from morning till night, at least ten hours a day is directed at the computer. It can only be said to be an entry. In the future, we will gradually strengthen the knowledge we do not understand in the project. I personally recommend that you do not have to learn without any purpose. You should plan and when to finish learning what part of the content. If you just want to learn a certain knowledge point, you only know how to use these things and how to combine the knowledge you have learned.

In fact, the idea is very important. What do you want to do? What system do you want to do? It is very important to have an idea about any website and inspire you to learn relevant knowledge. The above knowledge includes the front-end and back-end. It is only the foundation, but it is enough. If you prefer design, you should prefer the front-end, design the page, learn PS, and then use HTML, CSS, JQuery...

Finally, the above is really not difficult... Try it yourself. Also, you have to pay attention to your health and run well. In this case, I did not know much about the first article. I'm a little serious, and I don't like it very much. Haha... Bye

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.