[iOS Learning] 0 Basic Learning iOS development How to allocate time

Source: Internet
Author: User

How the student's time should be allocated during the training period

The main working hours assigned to students during their studies

    • 9:00~ 9:30, listen to the students in the learning phase of sharing, as the saying goes , "Three people, will have my teacher";

    • 9:30~ 18:00, listen to the teacher's class, and to prepare a handwritten notebook , good memory than bad pen, of course, I personally think that the record in the computer, not reliable, but also in the review of the cost of the eye, I started to school until now has been in the notebook to write the habit of painting;

    • 19:00~ 20:00, with one hours of time, recall the knowledge of the class today, the importance of the notebook is embodied, it can help us to the heart without distractions review and summary;

    • 20:00~ 22:00, used to complete today's homework and preview the contents of the next day, and the work encountered problems and preview the problems encountered in the record, the next day in class can take out a notebook to ask the teacher;

If you still have time to go to cram school content, can be in every week in Saturday, Sunday, by solving the missing knowledge points in the notebook to cram.


What is the programmer's main job?
    • Read the Code

      • Read the code in the company that is already in the process of iteration (understanding the development ideas in the company's predecessor development process);

      • Read the excellent code framework on GitHub (compare the number of forks and stars) (Learn how other good programmers think when writing code functions);

      • The purpose of reading the code is that we have to do the project code implementation process and details to be confident;

In the process of reading the code, you need to be aware of the process:
1. First copy the original code to the current path, and save it as the file name plus date;

Example: lodoudizhu2015-03-22

2. Then locate the AppDelegate.m file and read the relevant function code from the program's start-up process;

-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions {/... Program START Process}

3. Try to annotate a line in the program we think the importance of the statement, and run the program to see the results;

-  (BOOL) Application: (uiapplication *) Application didfinishlaunchingwithoptions: (NSDictionary  *) launchoptions {    self.window = [[uiwindow alloc]  Initwithframe:[[uiscreen mainscreen] bounds]];    // override point  for customization after application launch.     self.window.backgroundcolor = [uicolor whitecolor];         //For example, the following line of code is very important, because it determines whether our program can display the interface     //[self.window makeKeyAndVisible];         lo_rootviewcontroller *root = [[lo_ rootviewcontroller alloc] init];    uinavigationcontroller *nav =  [[UINavigationController alloc] initWithRootViewController:root];     Self.window.rootviewcontroller = nav;   &nBsp;return yes;} 

4. When the running result is not the same as we expected, you can view the internal implementation code by entering the function, and repeat the third step;
5. Until we can implement the module functions that we are responsible for.

    • Writing code

      • Write the main logic code in the function ( mainly to realize the function mainly);

      • Test cases that require test logic to be correct in programming functions ( mainly to test bugs );

      • Write interface code that is provided to colleagues or others ( primarily for ease of use of code );

1. The main logic code has just finished writing, in fact, it will be very ugly, there are a lot of if,for and so on, for example, as follows:

-  (void) Ongetgeocoderesult: (bmkgeocodesearch *) Searcher result: (bmkgeocoderesult *) result  errorcode: (Bmksearcherrorcode) error{    //    if  ([ Result.address isequaltostring:self.startaddresstf.text])  {         //   Description The currently encoded object is the start node         self.startnode =  [[BMKPlanNode alloc] init];        //   Assigning values to the coordinates of a node         _startNode.pt = result.location;                 //   Initiates the geocoding of the target node         //  1. Creating a forward Geocoding options object          bmkgeocodesearchoption *geooption = [[bmkgeocodesearchoption  alloc] init];        geooption.city = self.endcitytf.text;         geoOption.address = self.endAddressTF.text;                 //   Performing forward encoding          [self.getCodeSearch geoCode:geoOption];                 //                 self.endNode = nil;                              }else{        self.endNode = [[BMKPlanNode  alloc] init];        _endnode.pt = result.location;     }        if  (_startnode != nil && _ Endnode != nil)  {        //   get started with route planning          //  1. Creating a driving route plan          bmkdrivingrouteplanoption *drivingroutoption = [[bmkdrivingrouteplanoption alloc]  init];        //  2. Specifying the start node and target node          drivingRoutOption.from = _startNode;         drivingroutoption.to = _endnode;        //   3. Get route Search service object Search route         [self.routeSearch  drivingsearch:drivingroutoption];                     }} 

2. The use case test code in the writing process, is actually the most time-consuming part, because a lot of examples to demonstrate the bug:

Use the This for Initializationvoid Start () {//Open database Losqlitetools.opendb ("Yihuiyun"); sqlobject[] List = Losqlitetools.selectentity (typeof (Student)); foreach (Sqlobject item in list) {Debug.Log (item. ToString ());}}

3. When you start writing interface code to coworkers, it's easy to be aware of the extensibility issues:

#region Public Function///<summary>///Asynchronous Load resource//</summary>public IEnumerator Loadassetasync (String assetbundlename {//Start loading package yield return Startcoroutine (Loadassetbundle (Assetbundlename));} <summary>///Asynchronous Load scenario///</summary>public IEnumerator Loadlevelasync (string assetbundlename) {// Load Resource Pack yield return Startcoroutine (Loadassetbundle (Assetbundlename));} #endregion


[iOS Learning] 0 Basic Learning iOS development How to allocate time

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.