Tuesday, September 14, 2010

C # and object-oriented programming language [1]


C # is purely object-oriented programming language, it really embodies the "everything is an object" spirit. In C #, even the most basic data types such as int, double, bool type, belonged to System.Object type. In addition, the use of C # programming, and separated from the object does not exist outside of what kind of process. Therefore, learning C #, it must have the object-oriented thinking, do not understand the so-called "object-oriented thinking", it is impossible to grasp the essence of C #, C # and for the understanding of language features can only be limited to the surface of the.

Many books explain object-oriented ideas and articles like the object-oriented and process-oriented comparison, but for beginners to learn programming is not necessary. A blank sheet of paper, in fact, the words written on paper than the more favorable future.

So what is "object oriented"? The essence of course, "everything is an object" significance. Software development and design centers around the development goals of the. Such as the development of a e-commerce site, then e-commerce-related operation and we are concerned, products, orders, users, directories, shopping cart, etc., are all objects. If you want to develop a forum, then the forum necessary elements, such as the forum categories, topics, posts, comments, users, all in the object. Small office, we asked to write an algorithm to calculate factorial, then the initial value, operation results and the algorithm is an object.

What if the object has the characteristics? Generally speaking, an object should have properties and behavior. To the real world, for example, "person" as a special animal, but also we call "object." This object has many properties, such as name, height, weight, ethnicity, nationality, date of birth and so on. The act does, it can be walking, eating, running, and even play games, play football. If you learn from the semantic point of view, the property is more biased in favor of the scope of the term, while the behavior is close to the verb. However, there are special circumstances an object, or just have the property, or only with behavior. Such as ID card, may only have a name, date of birth, place of origin, ID number and other properties, not behavior. Such as "fly", which itself is a movement, but can also be considered an act.

However, this division is not absolute, according to the actual situation, the same object with the properties and behavior may be different. For example, the same "people", if it is to develop a household registration system, we do not have to consider walking, eating, running etc., but if it is a football game, then the object "person", we need all kinds of soccer moves As the behavior of the object. Another example "ID" object, may also be to easy to use, it will add "IsValidate" such an act.

Also note that the fact itself is often an object attribute, such as name, can be string type, it is Sytem.Object object type, we can separate the name of a class object:
public class Name
(
public string FirstName;
public string MiddleName;
public string LastName;
)

In C #, there are a variety of object types, in addition to the basic type itself, but also support custom types, including class, struct, enum, interface, delegate, event. Using the previous example, many objects Person "who" can be defined as the class type, nationality can be defined as the enum type. ID cards do not act, can also be defined as a struct type. Action "fly" can be defined as interface type. As for the delegate and event, is a special object type, such as the Forum management system we can define a series of events, such as BeforePost, AfterPost so. On these elements, I will explain in detail the contents of the back.

To grasp the object-oriented thinking, we must have the capacity of the object recognition system. We want to develop the system, which need to define a separate object, and this object should have properties and behaviors which are more headaches for beginners. To correctly identify the object, you need to first analyze the system functionality to be achieved. For example, we sought to develop a e-commerce system, functional requirements are as follows:
1, support the product search function;
2, the user need to purchase goods, need to be a registered user and log;
3, if the current inventory without the goods, the user can book;
4, users can add to shopping cart of goods;
5, prior to the purchase of goods required to submit orders;
6, the user submits the order, the system should send a message to the user subscription information;
7, the user can add a comment on the product.

There is a simple way to help us identify the object, is to find these features describe the key terms, such as commodities, the user, shopping cart, order, comments. These words are basically to cover the main target of the e-commerce system. As for the object's properties, you can visit the system requirements on the object and the information they need. Such as commodity, necessarily require brand name, price, related images, their class, inventory and so on. As for the behavior, we can look for from the functional description in terms of these objects associated with the verb. For example, a query of goods, goods on behalf of a Search behavior. User registration and login, on behalf of the user behavior with these two: Register, SignIn. Of course, acts of nature also implies SignOut.






Recommended links:



Rising 2008, accused of dangerous: not Considered extreme?



Teaching And Training Tools Guide



EXPERT Games And Entertainment



B2C transactions in China this year is expected to reach 11.1 Billion U.S. dollars



CISCO "NOW Van" trip to China depart



.dvd file



Kingston New-miniSD impression



avi to mp4 converter Free



psp 6000



An amazing order THINKING



3gpp Converter



Update The Fastest Player - Music Video Box Fish



Three steps teach you to set up a SEPARATE page header and footer



Wednesday, July 28, 2010

The love of money lust is the basis of good leadership [2]



For the leadership of the desire and the subordinate

Most people have this sense of good: the leadership of their love to be able to appreciate others, to satisfy everyone's preferences, so everyone can get what she wants, this is a good leader.

But why do it well, the key is this love, this "desire" on whether and subordinates, and the people of the same.

We look at an example:

Europe has such a leader, self-discipline is very strict: vegetarian, does not smoke, never drink liquor, and occasionally drink a little beer; from the affair did not happen; is an honors war heroes. And contemporary than the leaders of other countries (at the time of Roosevelt, Churchill are to wine, lusty, heavy smoker known), is almost perfect.

Such people do leaders, leadership, results how what?

He put their own self-discipline, discipline, abstinence all the virtues flourish, pushing and, and human. So the implementation of a fascist dictatorship, and finally launched a world war. Who does this? As we all know, Hitler.

This is an extreme example, but this example is by no means accidental, worth thinking aftertaste.

Examples abound all times, in ancient China, eunuchs are always chaotic state; in modern times, such as Clinton, his term of office is the best stage of the U.S. economy. (Another example of Chairman Mao, Comrade Xiaoping, smokers are great, not also of the very okay. So that will be out of our national leaders smokers inside, I'm not surprised, and I believe will be a good leader.)

In fact, we now see many there is no way the ancient emperor so-called perverse, we said, the party seems likely to all beings. If not from the heart, how can doing so vigorously?

Money, lust, smoking, drinking, cardinal vices are all human. Point is not impossible, but it can not be over, the key here is a degree of certainty, to the extreme, will go wrong. How balance? After all, Confucius said that moderation - no excessiveness. The opportunity to speak.

So, if someone told you: I have no interest to women! You must not believe. Not only do you not believe, but also against the point of him!

Some also said that leaders should be just no desire, no desire is just good! No desire for that? No desire is merciless ah, appropriate ruthless, tough talk you can do it efficiently and do well. But there is no human nature, you may do so very boring, you could also say that you made impersonal, France. So, no desire and Desire certain, but also of how to achieve balance, moderation issues.

Leading to sympathetic

We can understand a simple way to forgive, and that is compassion.

People already sympathetic, if we can carry forward the compassion, everyone, including AOL, you can be called a shu.

This "sympathy" I need to make a note. Sympathy here refers not only compassion, but that had a similar experience, you have the same feelings with others to reflect. Others happy, you happy; others were moved to tears, and you follow sad; This is compassion.

For example, I told a joke, everyone laughed, and this is my sympathy. This is because I think he is funny, I will tell you; you feel funny, like me, you will laugh. You laugh, that is, to my sympathy, I hope that we can sympathize with me.

Shu from compassion, it is not my invention. Let us find a few examples from the Mencius that.

First, according to our definition, "love of money lust" is not with the people's "sympathy"?

Second, Mencius asked King of Qi "independence Lele, Lele with people, what music?" He really was asking music, and asked to listen to music habits? No, he is the King of Qi in the study had no sympathy ah!

King of Qi replied "not if it is man" - a concert and everyone would be more pleased with the public. Good! Sympathetic!

Mencius also said that an example that other people's kids get it out, but you will save? Your first reaction is, of course, to save. Why, Mencius said, that is shared by people of "compassion," ah, this is the most fundamental compassion. You love your child, see the children of others off the well, and involuntary tension, to save, that is compassion, compassion.

This understanding of forgiveness, understanding sympathy, we is not difficult to understand Mencius so-called "little children" means, and not difficult to understand the Confucian so-called "self-cultivation order in the world" Why is such a sequence of.

Good leadership, the most fundamental thing is to have compassion, his own personal interests, appreciate others, carried forward for the benefit of the public. This is a good leader.

"Compassion" and the modern Western leadership theory (Leadership)

If we contact with Western leadership (leadership) course, will often hear the emotional intelligence (EQ), empathy, punishment and incentives, carrot + stick, empathy .... This number of words, in fact, are afraid to say that compassion.

Emotional intelligence (EQ), is to know how others think, and his likes and dislikes as you do not know how others think of it?

Empathy, how can you change it up to his position? You still have to guess by their own preferences to the preferences of others.

Penalties and incentives, carrot + stick, you do not know each other's likes and dislikes, how do you know what is the carrot for him, what is the big stick it? You say "work hard, year-end bonus to you," maybe he really is too much pressure, rapid collapse, and to relax it.

Empathy, our old saying, "People's minds with this new management," no matter how vastly different people's habit, there is always some common things like, like money-color, is one of the most important two.

So, no matter how ever-changing Western leadership theory, and Mencius stressed the essentially the same, is a sorry word, the compassion flourish. Leadership in specific things about the idea of subordinates, influence subordinates, to be sure the preferences of subordinates; in large, the leaders should know what their subordinates want to pursue, to guide and meet the needs of subordinates; such ability and insight a good job. To do this, based on the excuse that Mencius said, what we call compassion.







Recommended links:



139 port of offense and defense



EDUCATION



New Dictionaries Education



Current Choice: RMVB Movie Subtitles Dafa



Premier Online GAMING



Tomcat for a similar visit to password IIS



Ps3 video formats



If tomorrow is the last night of IPv4



Mp4 To Mpeg Converter Free Download



CCTV denied billion purchase broadcast rights for English Premier League: or 25 million U.S. dollars



Shop Investment Tools



Modeling With UML To Note Problems



On the JSP page Jump and forward the request



flv to MP3 converter



Flv to mp3 converter free download



Five-stroke input method is not just POLE



Thursday, March 18, 2010

MidiMeow


Midimeow is an easy-to-use tool to convert:
Midi to Mp3 at 15 different bitrates
Midi to Wav
Midi to Ogg vorbis at more than 10 different bitrates
It allows to change the rate of the output (3 rates available)
The number of channels (mono or stereo)
Mini-mixer to change mixer settings from the program, or call the volume control from the sound card from the program.
Ability to save mixer's settings.
Presets for midi conversion.
If you want you can restore your current settings when the program exits.
Progress bar.
You can convert midi files in 3 clicks.

A sound card with midi output and winmm.dll are needed
English and french.

Probably the best at this price !

Thursday, November 19, 2009

iPod to PC Transfer


Transfer song from ipod to computer.iPod to PC Transfer is an ultimate application for transferring songs from an iPod to a Windows based PC. iPod to PC Transfer is a sound of blessing for frustrated Apple's iTune users who can't copy music files from iPod to pc desktop or laptop since iTune blocks iPod-to-computer song transfer. Now the things are different! With iPod to PC Transfer, iPod users can transfer iPod Songs to PC easily. iPod to PC Transfer utilizes iPod's internal database to display your iPod's contents instantly. iPod to PC Transfer is fully compatible with all existing iPods including iPod(1st, 2nd, 3rd, 4th, and 5th generation iPods), iPod Photo, iPod mini, iPod shuffle, iPod nano and iPod video.

Friday, October 30, 2009

M4P APE to VQF

M4P APE to VQF is exactly what you are looking for. M4P APE to VQF digitally copies audio CD tracks to MP3, WMA, WAV and OGG files with excellent quality and fast speed. Just one click to finish converting, everyone can use it even a child.
It is a digital audio editor,converter, CD ripper for recording and audio editing and converting. Its easy to understand, clear and intuitive user interface makes it very easy to use.It is designed for the everyday user with amazing audio effects, audio filters and tools for converting audio files into different formats, ripping Audio CD tracks to audio directly, including MP3, CD, CDA, CD-R, DVD-Audio, AAC, AC3, ID3, M3U, M4A, M4P, MP3 ID3 Tag, OGG, RA, WAV, WMA, MP2, APE, VQF, MPC, AMR, Midi, WAVE, and RM and many others. querying Audio CD CDDB information from internet. Finished and wrong files are cleaned automatically.

Thursday, October 8, 2009

Shines BlackBerry Plus

Shines BlackBerry Plus supports full audio CD playback within the program's interface; Shines BlackBerry Plus also contains a very high quality multi-format converter at no additional charge! In just one step you can convert MP3, WMA, AAC, OGG, APE, VQF and WAV files from one format to another - Directly!
It is a multi-channel Music Converter and CD Ripper, which makes it convenient to convert the music in CD, RM, RMVB, RMJ, RAM, RA, MP3, WMA, WMV, ASF, ASX, OGG, FLAC and WAV formats into other audio file formats.

Friday, October 2, 2009

Silver MP3 Editor

Silver MP3 Editor - You need to convert your audio files to Mp3, Wma and Wave format, but you have tired to start audio conversion utility every time? Try to use our Newlive All Audio To Mp3 Converter. It supports the following format: Wave, Wma and Mp3. Convert Wav to Mp3 music format. Convert Wma to Mp3 music format. Convert Mp3 to Wave music format. Convert Mp3 to Wma music format. Silver MP3 Editor 's easy and fast. Very User-friendly interface. Auto scheme parameter.
It also supports four channels mode including Stereo, Join Stereo, Mono and Dual Channel. It rips audio CD tracks and saves them into audio formats such as mp3, wav, wma (Windows Media Audio), VQF (Yamaha SoundVQ), orOGG Vorbis, converts MP3, WAV, WMA, OGG Vorbis from one to another on-the-fly, resamples MP3 to MP3, WAV to WAV, WMA to WMA, OGG to OGG for changing bitrates, frequency, and other options. MP3 Encoder supports CBR (Constant Bit Rate) and VBR (Variable Bit Rate). It's fast, easy to use while powerful.