Development requirements for pure-fudge Programmers (1): When writing code, consider cross-platform.

Source: Internet
Author: User
Tags new set

Suddenly think of need to make a good summary of the study after graduation, work experience. I have some critical spirit, do not like the thick legs, 捧臭脚, and then booing, I would like to go through the detour to say, hope that later people can grow quickly, do not repeat my mistakes. I am most disgusted with the cheat, but also with others in Europe and America play the rest to trick us.

First topic today: cross-platform

Once upon a time, cross-platform requirements to be used as a discipline, but also as a test, the standard to carry out, especially in C + +, those fanatical programmer whether to play the Fool or be fooled, are boasting C + + code across the platform, portability good, reuse law and so on.
However, the history of the development of the majority of people (but, to be sure, some are fooled fools) of the surprise, the real cross-platform to do the best is actually the most despised C. At this time, we silly programmers finally understand: the original cross-platform well and our code fart relationship is not, mainly with the compiler, we finally understand why Linux became the most cattle cross-platform software, root in gcc do cattle ah.
So when you write a program later, don't fantasize about what my software should be able to run on both UNIX and Windows, and that code is not for people to see. The cost of maintenance is enough to develop a new set of, you want to UNIX and Windows OK with Java good. Take a look at the current version of the software that needs to be installed, basically the unix/linux, Windows, Mac OS, who developed a browser with one installation package across three platforms.
Stop arguing that my software should support little endian and big endian, and that code is nothing more than a bend to the mind of the person looking. Even if you need to change it later, how much more difficult. Moreover, the demand this thing is a woman's face, a moment of popular round, a moment popular sharp, who can say?
do not in the bottom of the software is not cross-platform, the requirements of the top software platform, a word: castles in the roof.
really want to write cross-platform software must be clear: why to cross the platform, this problem basically no one can answer accurately, the back can not be used, hehe.
which platforms you need to cross. Unix,windows, Mac OS? It's not clear what platform you need to be aware of in the software.
What is the difference between different platforms? is hardware. Kernel. or the operating system, browser or something, the difference does not know the luxury of talking about Cross-platform is not loaded with big tail wolf.
So my advice is: settle down our software on a platform to do, do fine, do cow B, popular do Wang, then the need for cross-platform, can be realized also change, can not write a set, anyway, the core is the same, the workload is a matter of time. Just as Firefox,apache originated from the Linux platform, Windows is not quite as hot as it is now.

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.