20,182,308 2019-2020-1 "data structures and object-oriented programming," the first week of learning summary

Learning content summary

  1. Java is a basic program code format, and what a simple Java applet.
  2. Special characters such as Java identifiers, reserved words, and so on.
  3. As a high-level language features of Java, and the Java language editing required hardware environment.
  4. Java is an object-oriented high-level programming language.

Textbook learning and problem-solving process

  • For the convenience of editing, Java file naming pay attention to what point it?

The answer Source: Textbook P4 ~ P5, the section on identifiers and reserved words.

Personal understanding: Because Java code is case sensitive, so as to facilitate code editing, best choice for simple, valid code file name.

Code debugging and problem solving in the process

1, how to switch from Linux Bash page to the Java programming page?

Answer: Java programming tools on the Linux platform we are using Vim, we had early on put something up. According to Bash's habits, as long as we enter directly in the command vim, or directly enter vi can enter the environment knock java code the go.

2. Why can not I use java code compiler?

Answer: This is not a Vim comes, we need to JDB (JDK includes the Internet, said JDB more whole, however, can be found online at JDK only physical machine tops), or javac, and my Ubuntu version seems to be among the javac right, so after using sudo apt-get install javac, prompted to select a version updated based on it. At the same time stepping, to ensure the normal operation of the program you may need to be compiled.

3, knocking the code, how do save, and exit back to the bash page?

Answer: https: //www.cnblogs.com/sophie_wang/p/7905219.html. Press Esc to return to the command mode after typing in: wq can save and exit, and can be compiled after saving. (Note: use command vim filename .java file you can create a new Java code format, equivalent to new in win10 environment, double-click.)

4, can not connect with the virtual machine code repository cloud environment up, no way to knock good code sent to cloud up code.

Answer: References: https: //blog.csdn.net/weixin_33859844/article/details/92399897

Use ssh address tutorial method and does not meet our habits, we can change with the address of http format. At the same time we need to make sure the code is already installed can be connected to cloud the page "warehouse" file in the virtual machine, and must create a job file in this folder in subsequent work operations, and edit it. (In the first report continue to do experimental details)

5, in the production of Vim editor head you can not edit the file. (Error Code: E212 error: can not open file for writing)

Answer: The question is: enough authority, so the file read-only to me. Solution: sudo vim files change permissions.

Code hosting

Last week exam wrong question summary

1. Fill in the blanks wrong question: Linux Bash, you can use the help, man and the Find command (info) command help information.

Reflection: While cheat very powerful, but the cheat mod is essentially the nature of the script rather than bash comes, and is known as a lazy script, you must quit dependence cheat scripts in a later stage. Therefore, we should consider the issue when some command from the bash itself.

Wrong question 19. Fill in the blank: Linux Bash in, (touch test) command to create a blank file test.

Reflection: There is nothing wrong with this problem I have forgotten. But I started to really function and touch the mkdir function mistake. In fact mkdir is used to create an empty folder, but touch is used to create a blank document.

Pair peer review and

Reviews

Blog worth learning:

1, less wrote many textbooks in empty words and cliches, based on the practice of knocking code, find the Linux environment to adapt to operational problems encountered.

2, various issues were found this week in line with personal understanding to say, in order to facilitate and paste the address in question reply.

problem:

The teacher is not in full accordance with the requirements of blog templates to edit and manipulate.

Based on score, I give this blog scoring: 10 points

Scores are as follows:

1, the proper use Markdown syntax (1 point)

2, textbook learning and problem-solving process (1 point)

3, code debugging and resolving problems in the process (5 points)

4, other points (plus 3 points)

Feelings, experience does not leave large empty (1)

There are hands-on writing new code (1)

Learning the wrong questions in depth (1)

Comments had students blog and code

(Twinning students not finished blog and no photos, the first two vacant)

Pair learning content:

1, the basic operation of Linux and some basic concepts. Where is the difference between Linux and Windows systems in, what for document processing features is? In the Command input on the page icon in the action what is?

2. Experimental content - upload job files through cloud code. We need to clone a Linux virtual machines among one yard cloud repository folder before you can git add. A series of operations. And when the cloud cloned code repository address to be preferentially used Http address, ssh address although higher safety factor but subsequent operational problems, we are just learning to use code instead of knocking the commercial, and therefore do not have too much attention to the safety factor.

3, knocking the code, the code must pay attention to the case, particularly with regard to class, when the parameter file name like. Java program while using the Linux command interface open the code (such as Kaga.java), you can enter directly without having to re-enter the Kaga .java. (If such a fight, in some versions of Ubuntu which also shows the main class could not be loaded error, etc.)

other

Sentiment

1, said Sir king was so right! We must first of its profits. In fact, we put more time in one week to adapt to the environment rather than in Linux code used to knock. If we want to knock a good code, you have to get used Linux system environment, editing documents, etc. operations, but have become accustomed to after the operation icon Windows family of operating systems, for high autonomy, greater reliance on command operation code the linux still does not adapt in a short time. When, after knocking Java code, we still need to slowly explore linux programming environment.

2, capable of efficient use of network resources (such as CSDN, blog Park) is really very important, in fact, the problem I encountered during the operation, 200% of all the others have already met and well placed to exploit the. But still we need to figure out when to solve the problem of what is the problem, leading to Linux, JAVA reasons row in error codes tend to have a good variety. For example, the association code to cloud the issue warehouse Linux virtual machine I encountered it - the problem is not in the address selected, or what files git push the issue, but I started did not created in your home directory that folder!

Learning progress bar

  The number of lines of code (new, cumulative) Blog amount (add, cumulative) Learning time (add, cumulative) Important growth
aims 10000 30 400h  
the first week 101,101 2,2 23,23

Getting to know some of the Linux operating system,

I learned the basic JDB debugging operations

Reference material

1, "How to put items on the cloud cloned into the local code, and how to submit to the local cloud remote code repository"

2, "use JDB to debug Java programs."

3, "vim exit command (save, discard)."

Guess you like

Origin www.cnblogs.com/77599aa/p/11498928.html