Programmers must know the programming Maxim Category: Programmer/webmaster 2012-02-29 09:52 588 people read reviews (2) Favorites report Programming Blog1. Keep It simple and straightforward (Keep It Stupid)2. Do not self-replicate (Don ' t Repeat yourself)3. The competent person solves the problem. The wise man bypassed the question (a clever person solves a problem. A wise person avoids it) –einstein4. Silence will be understood as endorsement (
Quotation marks are used as extracts of accent text. Because we need to provide some important flags to use the user's attention to the most important part of the article, although they never read it. In addition, quotes are always used in thank-you notes and sometimes in blog comments, and they may be styled with graphics, CSS, and a bit of JavaScript. Sometimes, creative dynamic solutions can also be applied well.
This post includes creative examples and best practices on
the parent class, persist in using @override.★ Subclasses inherit all accessible members of their parent class.★ Design, the code upward concentration.★ As a reuse mechanism, delegation takes precedence over inheritance. --"Design pattern"★ polymorphic = polymorphic variable + dynamic binding (System mechanism).★ Users only need to understand the interface--parnas principle .★software entities (classes, modules,functions,,etc.) should is open for extension,but closed for modification. A softwa
have festive, not born jealous;A man has a plague, not a joyous heart. It is not true good to see people with good desires;It is the great evil that is known to the wicked. See the color of the heart, reported in the daughter and wife. the stabbed and the evil of the children. the door is obedient, although shinny yōng supper sūn, there is also Yu Huan;National class early finish, namely SAC Náng Ligularia Tuó, complacent to music. The book is in the sage, the non-apostle Curtis;If you are a so
and cons of the changes in order to make things simpler and easier to work with. Of course, brevity is an ideal goal, but there will always be code that can be improved by refactoring. In the programming world, code changes frequently and easily for code. But sometimes you have to make sure that the code is valuable to the customer. So, you face a simple dilemma: you can't stone. The more time you have to refactor the old code, the less time you will have to write the new code. There is also a
ExercisesSimulation questionsAlthough it is a big simulation problem, but it is a test of the active degree of thinking.You know how to do it when you first start doing it. But there are a lot of things in your mind. Categorical enumeration always confuses itselfThe question taught me to think carefully about the way we classifyThis question. Judging by the odd number of enumerated negative numbersis odd: Then the absolute value of the smallest number, if it is positive, +x, is negative,-X;is ev
Manage Maxim collections
Publisher: Lin tianqiang published on: 09:10:48. 547
As a leader, a person must have the confidence to be clear and accurate, and be sure that everyone in the Organization can understand the goals of his career.In all circumstances, there is a quantitative responsibility. If either party assumes too many responsibilities, the other party will correspondingly assume equal r
the 10 major programming maxims that every programmer should know (Kevin Pang):Programming Maxim 1: Smoke (there is no smoke without fire)Programming Maxim 2: Prevention, treatment supplement (an ounce of prevention is worth a pound of cure:)Programming Maxim 3: Don't put all your eggs in one basket (Don ' t put all your eggs in a basket)Programming
One-wire Demo on the stm32f4 Discovery BoardSome of the devs at work were struggling to get their software talking to a Dallas 1-wire device. I remember doing 1-wire comms back on the 1990s, but I hadn ' t do any 1-wire lately and all of my old code is for Proces Sors I no longer had running. But I had a weekend free, so I figured I ' d pulling some old 1-wire devices out of the junk bin and write a bit o ' code ...The 1-wire protocolThe Dallas (now Maxim
diagram (using Maxim 3232)Layout diagram of the original circuit (using Maxim 3232)
Circuit Diagram after modification (using Maxim 232cpe or hin232cp)Layout diagram of the modified circuit (using Maxim 232cpe or hin232cp)Mobile phone pin chart1-vin charger input voltage 8.4 v 0.8a2-chrg CTRL charger control PWM
are now going to do the I2C/SMBus adapter probings. Some chips mayBe double detected; we choose the one with the highest confidenceValue in that case.If you found that the adapter hung after probing a certain address,You can specify that address to remain unprobed.Next adapter: SMBus Via Pro adapter at 0400Do you want to scan it? (YES/no/selectively): yesClient found at address 0x4cHandled by driver 'lm90' (already loaded), chip type 'lm90'Client found at address 0x4eProbing for 'national semic
lot of MSP430 in our lab. I still feel very good when I apply for Ti samples.
3. microchip, the speed is very slow, sometimes you have to go to the agent to get it. You can apply. There are not many sample types.
4. Maxim, needless to say, is recognized as the easiest way to apply for, that is, delivery speed is slow, Normal packages, Beijing delivery.
5. intersil: the speed is average and there are not many restrictions. It has no special requ
cannot apply after use.
Note: There are a lot of MSP430 in our lab. I still feel very good when I apply for Ti samples.
3. microchip, the speed is very slow, sometimes you have to go to the agent to get it. You can apply. There are not many sample types.
4. Maxim, needless to say, is recognized as the easiest way to apply for, that is, delivery speed is slow, Normal packages, Beijing delivery.
5. intersil: the speed is average and there are n
When the madplay player is transplanted, libmad performs fixed-point operations. Smooth playback.
If madplay is used, libmad, libid3tag, and zlib are required.
Step to compile madplay0. Set EnvironmentExport Path =/opt/gcc-3.3.6-glibc-2.3.6/bin: $ path1. Configure libmadTar xvf libmad-0.15.1b.tar.gzCD libmad-0.15.1b./Configure -- prefix =/opt/gcc-3.3.6-glibc-2.3.6/mipsel-Linux/-- Host = mipsel-Linux2. Compile libmad and add libmad to crosstoolsMake make install3. Configure libid3tagTar xvf libi
Nginx0.8.22 -- Linux Enterprise Application-Linux server application information. For more information, see. Changes with nginx 0.8.22 03 Nov 2009
*) Feature: the "proxy_bind", "fastcgi_bind", and "memcached_bind"
Directives.
*) Feature: the "access" and the "deny" directives support limit 6.
*) Feature: the "set_real_ip_from" directive supports IPv6 addresses in
Request headers.
*) Feature: the "unix:" parameter of the "set_real_ip_from" directive.
*) Bugfix: nginx did not delete unix doma
Example:http://blog.csdn.net/kvw3000This article collects and collates, thanks each section code provider!
Finishing: Go home and Chant (Wang Jitai)
1. Announcements and Counters2. Weather forecast3. The firefly following the mouse4. Status bar text5. Follow the mouse text6. Automatically displays a different maxim at the top subtitle position each time it is opened7. Flash exquisite clock (add)
The appropriate functionality can be achieved by addi
own business logic without paying attention to the details of implementation", this article can make people understand the meaning of this sentence.
Historically looking at network programming, is the first Unix, and then have TCP/IP and BSD socket, of course, to the network programming to the inside of Unix, once upon a time, until now, do not know how to do Network programming UNIX will be ridiculed, of course, Linux in a sense has replaced Unix. The philosophy of UNIX includes the truth of m
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.