ความคิดเห็นล่าสุด

aloeverahe
Inhumane? Or Inhuman?

Adeline
Play with a frog? But... what if I can't find him?

Joker-Davian Williams
Com,mas everyw,h,ere commas, everywhere, commas don't, belong everywhere,

Jarod Kintz
Imma do both just in case.

a casual observer
Exactly! The edit function is there for a reason, so that we can improve other …

เพิ่มเติม

keynasty's คำคม

ทั้งหมด คำคม

Apple - "Hey Siri, What's Zero Divided By Zero?"
Imagine that you have zero cookies and you split them evenly among zero friends. How many cookies does each person get? See? It doesn't make sense. And Cookie Monster is sad that there are no cookies, and you are sad that you have no friends.

Monty Python Comedy Group - Monty Python and the Holy Grail (1975) -- Minstrel [Singing]
He was not in the least bit scared to be mashed into a pulp Or to have his eyes gouged out and his elbows broken To have his knee caps split and his body burned away And his limbs all hacked and mangled, brave Sir Robin His head smashed in and his heart cut out And his liver removed and his bowels unplugged And his nostrils raped and his bottom burnt off And his pe...

Monty Python Comedy Group - Monty Python and the Holy Grail (1975) -- King Artur
The Lady of the Lake, her arm clad in the purest shimmering samite held aloft Excalibur from the bosom of the water, signifying by divine providence that I, Arthur, was to carry Excalibur. That, is why I am your king.

Pirates of the Caribbean: The Curse of the Black Pearl (2003) - Jack Sparrow Quotes
Sticks and stones, love. I saved your life, you save mine. We're square. Gentlemen, milady; you will always remember this as the day that you almost caught Captain Jack Sparrow!

Pirates of the Caribbean: The Curse of the Black Pearl (2003) - Jack Sparrow Quotes
The only rules that really matter are these: what a man can do and what a man can't do. For instance, you can accept that your father was a pirate and a good man or you can't. But pirate is in your blood, boy, so you'll have to square with that some day. And me, for example, I can let you drown, but I can't bring this ship into Tortuga all by me onesies, savvy? So, can you sail under the command of a pirate, or can you not?

Anonymous - My Grass is Pretty Green
The grass is definitely greener on the other side. But, my grass is pretty green, too. I like how there's a patch missing, exposing the soil and allowing sprinkler water to pool. Oh, and over yonder, that 2' tall weed I've been saving to snag a zombie by the foot (I like Plants Vs. Zombies, a lot). The moral of the story: Count your blessings, appreciate what you've got, and make the most of life!

Ernest Vincent Wright - Gadsby –– 50,000 Word Novel Without the Letter "E" –– 1939
Branton Hills was a small town in a rich agricultural district; and having many a possibility for growth. But, through a sort of smug satisfaction with conditions of long ago, had no thought of improving such important adjuncts as roads; putting up public buildings, nor laying out parks; in fact a dormant, slowly dying community. So satisfactory was its status that it had no form of transportation to surrounding towns but by railroad, or "old Dobbin."

Allen Downey - Think Python –– 18.7 Inheritance
The language feature most often associated with object-oriented programming is inheritance. Inheritance is the ability to define a new class that is a modified version of an existing class. It is called "inheritance" because the new class inherits the methods of the existing class. Extending this metaphor, the existing class is called the parent and the new class is called the child.

Allen Downey - Think Python –– 18.6 Add, remove, shuffle and sort
A method that uses another function, without doing much real work, is sometimes called a veneer. The metaphor comes from woodworking, where it is common to glue a thin layer of good quality wood to the surface of a cheaper piece of wood.

Allen Downey - Think Python –– 18.1 Card objects
There are fifty-two cards in a deck, each of which belongs to one of four suits and one of thirteen ranks. The suits are Spades, Hearts, Diamonds, and Clubs (in descending order in bridge). The ranks are Ace, 2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King. Depending on the game you're playing, an Ace may be higher than King or lower than 2.

Allen Downey - Think Python –– 17.11 Interface and Implementation
After you deploy a new class, you might discover a better implementation. If other parts of the program are using your class, it might be time-consuming and error-prone to change the interface. But if you designed the interface carefully, you can change the implementation without changing the interface, which means that other parts of the program don't have to change.

Allen Downey - Think Python –– 17.11 Interface and implementation
A design principle that helps that goal is to keep interfaces separate from implementations. For objects, that means that the methods a class provides should not depend on how the attributes are represented.

Allen Downey - Think Python –– 17.11 Interface and implementation
One of the goals of object-oriented design is to make software more maintainable, which means that you can keep the program working when other parts of the system change, and modify the program to meet new requirements.

Allen Downey - Think Python –– 16.6. Glossary
planned development: A development plan that involves high-level insight into the problem and more planning than incremental development or prototype development.

Allen Downey - Think Python –– 17.10 Debugging
It is legal to add attributes to objects at any point in the execution of a program, but if you are a stickler for type theory, it is a dubious practice to have objects of the same type with different attribute sets. It is usually a good idea to initialize all of an object's attributes in the init method.

Allen Downey - Think Python –– 17.12 Glossary
object-oriented language: A language that provides features, such as user-defined classes and method syntax, that facilitates object-oriented programming.

Allen Downey - Think Python –– 17.5 The init method
The init method (short for "initialization") is a special method that gets invoked when an object is instantiated. It's full name is __init__ (two underscore characters, followed by init, and then two more underscores). It is common for the parameters of __init__ to have the same names as the attributes. The parameters are optional.

Allen Downey - Think Python –– 15.1 User-defined types
A user-defined type is also called a class. A class definition looks like this: class Point(object): """Representing a point in 2-D space.""" This header indicates that the new class is a Point, which is a kind of object, which is a built-in type. The body is a docstring that explains what the class is for. You can define variables and functions inside a class definition.