Aiti Tribe Story Collection (11): Programming from 0 to 1

Aiti Tribe Story Collection (11): Programming from 0 to 1

[51CTO.com original article] Aris became interested in programming during college. His head teacher at the time taught Java. Seeing the teacher write some things that they couldn't do with code, Aris began to think that programming was a very cool thing. From then on, he immersed himself in the world of computers. He would go to the library to borrow some books every week, and type in the code while checking the books. Gradually, small cases were successfully typed out, and he suddenly felt a sense of accomplishment. But blindly following the book to program will not always run successfully. Once, because of a small error in the book, Aris did not find it, which resulted in him being unable to execute the result. So he searched Baidu and Google and finally found a solution. After that, Aris felt that it was not enough to just type according to the book, and he also needed to be flexible and adaptable. The rest of his learning career was also accumulated day by day.

[[185079]]

Aris Java Development

Self-taught Java to write small games

In the three years after graduation, Aris did not engage in any related enterprise-level development work due to personal reasons. Instead, he worked as a Java project assistant in an IT training institution. He had not been exposed to Java for a long time, and there was little theoretical knowledge left in his mind. So when he first entered the training institution, he also worked and studied with the students who came to train, enhancing his bug-solving ability and communicating better with the students. Whether it was daily study or daily chores, he understood them one by one, so that it would be convenient to optimize the daily management of students later. During this period, Aris taught himself Struts2, Spring and Hibernate, three commonly used frameworks. Later, due to the reform of the course, he studied the MyBatis data layer management framework. When Aris was learning Swing, in order to be more proficient in the application of Swing, he tried to write a game called "Aircraft Wars". Here are some codes:

Implementing App and Web Projects with HTML5

The reason why Aris chose to switch to development was because he felt that his technical level had reached a bottleneck and needed to grow further. He had to get in touch with real enterprise development, so he resolutely quit his job at a training institution and joined a software company to do Java development. When you first enter a development position, you naturally have to go through a transition period, and you grow mainly through communication and self-study. Aris first mastered the business code written by the old driver and understood the project process. There are about 5,000 lines of effective code, and he understood them step by step. Two weeks later, Aris took over the first task, overthrowing the original Android App and changing it to the popular HTML5 language as an upgraded version. Aris communicated with colleagues who had taken over before to understand the relevant business needs. During this period, he would use the front-end framework MUI. At that time, in addition to visiting the MUI official website, he also searched for cases on various technology-related forums and websites such as Git, 51CTO, and Zui Code. Since the JS confirm method will display the currently visited URL in the title bar when it is called, I looked up the official MUI documentation and saw that MUI has its own repackaged confirm. Calling mui.comfirm() will not display the currently visited URL in the title bar. This small problem is solved. For the App project, Aris felt that the difficulty was how to implement the callback event triggered when the App returns after taking a photo. He discussed this issue with other members at the time and finally decided on a common solution.

  1. Call var cmr = plus.camera.getCamera() to get the camera of the current device first; cmr.captureImage(function(path){},function(error){}) and then call its captureImage method

***After spending a lot of time writing and modifying, the function was finally realized. ***After completing the first project, he switched to web front-end development. This time, the task was to change the front-end technology of a previous website of the company from ExtJS to HTML5. Because ExtJS is too business-oriented, after all, it is now the Internet age, and the project should be followed up at any time. In addition, the pages need to be uniformly applicable to Layui. Aris continued to learn and explore the new framework. There are sufficient cases and standard documents on the Layui official website. The old website before the revision used ExtJS to implement page rendering, so you also need to understand ExtJS. In the front-end page development, the requested address and received parameters should be promptly followed up with the background Action for adjustment. Before submitting the project to the tester, remember to comment out or delete the pop-up boxes in the project that are not related to the business. These pop-up messages are only used during the development process to track the call results of the method or the error messages that appear during the period. They do not need to be shown to the tester, so as to avoid the tester thinking that it is a bug, so removing the pop-up boxes will save a lot of time and cost.

Aris summarizes 3 programming experiences and shares them with beginners:

1. When writing code, please note that there are many ways to traverse a Map. Usually, you need to traverse the Key and Value in the Map. The most efficient way recommended is:

  1. public static void main(String[] args) {
  2. HashMap<String, String> hm = new HashMap<String, String>();
  3. hm.put("111", "222");
  4. Set<Map.Entry<String, String>> entrySet = hm.entrySet();
  5. Iterator<Map.Entry<String, String>> iter = entrySet.iterator();
  6. while (iter.hasNext()) {
  7. Map.Entry<String, String> entry = iter.next();
  8. System.out.println(entry.getKey() + "\t" + entry.getValue());
  9. }
  10. }

If you just want to traverse the key values ​​of this Map, it would be more appropriate to use "Set<String> keySet = hm.keySet();".

2. If you are not familiar with JS, you can read the latest version of JavaScript Authoritative Guide. After all, JS has been optimized all the time. You can learn the optimized knowledge from the latest version. If you are interested, you can also read the old version, so that you can get in touch with some underlying source code of JS and what the design ideas are. JQuery is commonly used now. If you want to learn it, you can read the book "Sharp JQuery", whether it is a paper book or an e-book. It involves various selectors and plug-ins of JQuery. Some convenient methods can be used directly to speed up the development progress.

3. If you are not familiar with the business, discuss it with your colleagues more often to understand clearly what kind of business the function is intended to achieve. Don't work hard alone.

Demonstrating value at work

Aris's leader is a great man who is good at both front-end and back-end. During his work, he received a lot of guidance and education from his leader. Slowly, the content he was responsible for was gradually realized, which made Aris more confident to cope with future work. From App development to front-end framework, Aris has been trained. He thinks that to reflect his value in a company, it depends on what kind of work you can complete. Any new task is a challenge. Only believe in better, not the best. As the saying goes, no one is perfect! The road is long and arduous. I hope every developer will take the first step bravely and write his own program.

If you are also willing to share your story, please join the 51CTO developer QQ exchange group 370892523 and contact the group owner. We look forward to your wonderful story!

[51CTO original article, please indicate the original author and source as 51CTO.com when reprinting on partner sites]

【Editor's recommendation】

  1. Aiti Tribe Stories (1): How a rookie transformed into a senior programmer
  2. Aite Tribe Stories (2): The Road to Transformation Caused by Chance
  3. Aiti Tribe Stories (3): Self-taught in IT industry
  4. Aiti Tribe Stories (4): Programmers' Insights on Job-hopping
  5. Aiti Tribe Story Collection (5): Expanding into new IT fields and changing the world with code
  6. Aite Tribe Stories (6): A female siege lion's promotion
  7. Aiti Tribe Stories (7): Meet 51CTO and Aim High
  8. Aite Tribe Stories (8): Following the Dream and Starting a Business
  9. Aiti Tribe Stories (9): A Female Programmer's Development Dream
  10. Aiti Tribe Stories (10): Voices from Technical Promotion Managers

<<:  Native vs. cross-platform: PhoneGap, Titanium, and Xamarin: pros and cons of the three major application development solutions

>>:  “Zero Inventory” is achieved, JD.com builds a complete smart supply chain

Recommend

Is it a person or a person? Who "tampered" with your memory?

Recently, a great debate on memory has been spark...

QQ vs. Alipay in the red envelope war. Why is it QQ that is taking the fight?

As early as a month ago, Xiaomanshou asserted tha...

Analysis of "background invalid animation" behavior in Android

When an Android App is put into the background, a...

How to make a good online event promotion plan?

In marketing psychology, herd mentality, greed fo...

Keep brand marketing promotion model!

In recent years, I have found that vertical Inter...

【ASO】It’s not easy to use the small comma in Apple title keywords well!

As we all know, the App Store allows developers t...

iOS 13 Beta 4: 5 new changes worth noting

Apple has released the fourth iOS 13 developer be...

Technology is neutral, the outcome is disastrous

The founder of a new unicorn, a short video shari...

Why can many animals walk as soon as they are born, but humans can't?

Audit expert: Mao Xinmei Chief Physician of Pedia...