The document discusses flaws in testable code and provides warning signs for each flaw. The main flaws covered are:
1. Constructor does real work - violating single responsibility principle and making testing difficult. Warning signs include new keyword or static calls in constructors.
2. Digging into collaborators - violating law of demeter by accessing deep object graphs. Warning signs are unnecessary chains of method calls.
3. Brittle global state and singletons - introducing "spooky action at a distance." Warning signs include singletons, static fields/methods, and registries.
4. Class does too much - known as a "kitchen sink" class. Warning signs are classes that are challenging to understand or
What consultants can learn from Optimus Primetwuniversity
Optimus Prime was the leader of the Autobots in the Transformers franchise who displayed qualities like courage, compassion, leading by example and transforming challenges, which consultants can learn from. The document discusses 7 lessons consultants can take from Optimus Prime such as courage, compassion, being a heroic leader, improving the world, leading by example, avoiding hypocrisy, and transforming their potential, just as Optimus transformed from an average Autobot into a great leader. It concludes by thanking the reader and asking if they have any questions.
While Australia has many dangerous animals like sharks, snakes, crocodiles and spiders, the document shows that the risk of death from these animals is actually quite low. Jellyfish cause about 0.6 deaths per year on average, while crocodiles and sharks each cause around 1 death per year. Even more likely causes of death are drowning, car accidents, or natural disasters. The deadliest animal is actually the horse, causing around 10 deaths per year on average in Australia.
Fighting Poverty in Urban America_Damontwuniversity
The document discusses strategies for fighting poverty in urban America, including improving education, job training programs, and the Harlem Children's Zone program. It notes that poverty is often a cycle caused by lack of income, inadequate education, and lack skills leading to unemployment. The Harlem Children' Zone program provides after-school programs, "Baby College" parenting classes, and other supports to help break this cycle for children in Harlem and promote their success in school and beyond. The results showed high rates of participants enrolling in and being accepted to college with millions in scholarship funds.
The document discusses a trip to Disneyworld Orlando, with mentions of awesome shows, flying elephants, magnificent fireworks, and Downtown Disney. It reflects on Disney providing great morals and fun, with quotes from Walt Disney and Mickey Mouse about celebrating life's adventures.
This document summarizes an organization that has been operating since 1880. The organization employs 5,000 people who deliver over 200,000 meals per day across Mumbai, with an average literacy rate of 8th grade among employees. They have a unique coding system to efficiently identify and route over 400,000 transactions daily across a 100 km area, with an annual turnover of 500 million rupees. Employees follow a routine of collecting meals from homes in the morning, transporting them across the city on foot or bicycle, and delivering them to destinations by lunchtime, returning in the afternoon with high accuracy and customer satisfaction despite having little technology or infrastructure. The organization has been recognized for its efficient time management with world records and publications.
Continuous integration involves maintaining a single code repository, automatically building any code changes, and running automated tests on each change to quickly detect issues and ensure all code integrations work as expected. It allows development teams to frequently merge code changes from all developers to avoid integration issues by building on every commit and keeping the build and test process fast. Continuous integration helps teams collaborate better by making the latest code changes and builds easily visible to everyone.
Albert Einstein was a famous physicist who developed the theories of special and general relativity, and made major contributions to the development of modern physics. Some of his most important works included explaining the photoelectric effect, proposing the formula E=mc^2, and showing that light has particle-like properties. He spent his early career working as a patent clerk in Switzerland before his scientific papers gained him recognition and he accepted teaching positions in Germany.
The document discusses flaws in testable code and provides warning signs for each flaw. The main flaws covered are:
1. Constructor does real work - violating single responsibility principle and making testing difficult. Warning signs include new keyword or static calls in constructors.
2. Digging into collaborators - violating law of demeter by accessing deep object graphs. Warning signs are unnecessary chains of method calls.
3. Brittle global state and singletons - introducing "spooky action at a distance." Warning signs include singletons, static fields/methods, and registries.
4. Class does too much - known as a "kitchen sink" class. Warning signs are classes that are challenging to understand or
What consultants can learn from Optimus Primetwuniversity
Optimus Prime was the leader of the Autobots in the Transformers franchise who displayed qualities like courage, compassion, leading by example and transforming challenges, which consultants can learn from. The document discusses 7 lessons consultants can take from Optimus Prime such as courage, compassion, being a heroic leader, improving the world, leading by example, avoiding hypocrisy, and transforming their potential, just as Optimus transformed from an average Autobot into a great leader. It concludes by thanking the reader and asking if they have any questions.
While Australia has many dangerous animals like sharks, snakes, crocodiles and spiders, the document shows that the risk of death from these animals is actually quite low. Jellyfish cause about 0.6 deaths per year on average, while crocodiles and sharks each cause around 1 death per year. Even more likely causes of death are drowning, car accidents, or natural disasters. The deadliest animal is actually the horse, causing around 10 deaths per year on average in Australia.
Fighting Poverty in Urban America_Damontwuniversity
The document discusses strategies for fighting poverty in urban America, including improving education, job training programs, and the Harlem Children's Zone program. It notes that poverty is often a cycle caused by lack of income, inadequate education, and lack skills leading to unemployment. The Harlem Children' Zone program provides after-school programs, "Baby College" parenting classes, and other supports to help break this cycle for children in Harlem and promote their success in school and beyond. The results showed high rates of participants enrolling in and being accepted to college with millions in scholarship funds.
The document discusses a trip to Disneyworld Orlando, with mentions of awesome shows, flying elephants, magnificent fireworks, and Downtown Disney. It reflects on Disney providing great morals and fun, with quotes from Walt Disney and Mickey Mouse about celebrating life's adventures.
This document summarizes an organization that has been operating since 1880. The organization employs 5,000 people who deliver over 200,000 meals per day across Mumbai, with an average literacy rate of 8th grade among employees. They have a unique coding system to efficiently identify and route over 400,000 transactions daily across a 100 km area, with an annual turnover of 500 million rupees. Employees follow a routine of collecting meals from homes in the morning, transporting them across the city on foot or bicycle, and delivering them to destinations by lunchtime, returning in the afternoon with high accuracy and customer satisfaction despite having little technology or infrastructure. The organization has been recognized for its efficient time management with world records and publications.
Continuous integration involves maintaining a single code repository, automatically building any code changes, and running automated tests on each change to quickly detect issues and ensure all code integrations work as expected. It allows development teams to frequently merge code changes from all developers to avoid integration issues by building on every commit and keeping the build and test process fast. Continuous integration helps teams collaborate better by making the latest code changes and builds easily visible to everyone.
Albert Einstein was a famous physicist who developed the theories of special and general relativity, and made major contributions to the development of modern physics. Some of his most important works included explaining the photoelectric effect, proposing the formula E=mc^2, and showing that light has particle-like properties. He spent his early career working as a patent clerk in Switzerland before his scientific papers gained him recognition and he accepted teaching positions in Germany.
This document discusses passing responsibility for consequences onto others to avoid worry, referencing space shuttle accidents where faulty O-rings led to disaster despite known issues. It suggests learning from mistakes by taking responsibility rather than avoiding problems.
If the sun disappeared suddenly, the planet that would fly out of its orbit first is Mercury, being the closest planet to the sun and therefore most affected by its gravitational pull. General Relativity explains that gravity is a result of objects with mass warping the very fabric of space and time itself. While space travel remains a dream, advancing technology to increase spacecraft speed or discovering phenomena like wormholes could someday make interstellar travel within reach.
This document discusses blogging and provides tips for starting a blog. It defines a blog as a collection of entries over multiple posts that can include words, images, videos, and other media. The document encourages bloggers to choose a topic they are passionate about, set goals for their blog, and engage with other bloggers and their audience. It emphasizes that blogging should be fun and provides advice to start small and focus on topics the blogger knows well to maintain their passion and dedication to blogging over time.
This document discusses how to embrace winter in Canada despite the cold temperatures often below -30 C. It notes the short daylight hours but also highlights outdoor winter activities like skiing, snowboarding, snowshoeing, dog sledding, and polar bear plunges. The document advises dressing for warmth over style and provides tips for dealing with winter weather like not washing your car and enjoying a snowball fight.
This document appears to be notes from Chris Reade on their first computer program, including references to simulating ecosystems and genetic algorithms. It also mentions social networks, vaccines, and different things that eat or can eat. The document ends with simple "hello world" and "hello losers" messages, suggesting it is about a beginning programming project.
The document discusses the law of attraction and how thoughts can impact one's life. It notes that people have around 60,000 thoughts per day and emphasizes focusing on affirmative thoughts rather than negative ones. A 3 step process is mentioned to visualize what you want through imagination, believing you can achieve anything, and understanding that thinking positively can help attract positive experiences and outcomes in one's life and dreams.
The document outlines 7 lessons learned from school kids. The lessons are: don't underestimate students, show energy in teaching, give students room for creative thinking, don't label students as "boys" or "girls", share responsibilities with students, show care for students, and encourage students.
This document provides a brief history of several computer programming languages:
- FORTRAN was created in 1954 and was widely used for scientific and technical computing.
- BASIC was created in 1964 and was designed for simplicity to encourage more people to learn programming.
- SQL was created in 1970 and allows for fast querying of database systems. It became popular for managing relational databases.
- Java was created in 1991 and became widely popular for building mobile and enterprise applications thanks to its platform independence and security features.
The document outlines the homebrewing process from preparation through bottling and drinking. It begins with preparing equipment, recipes, and sanitizing supplies. Next is the brew day which involves mashing, boiling, hop additions and chilling the wort. Fermentation follows as the yeast is added to the cooled wort. Finally, bottling occurs where the beer is packaged and cellared for 6 weeks before drinking. The process focuses on preparation, brew day activities, fermentation, and bottling before enjoying the final product.
The document discusses the soul theory, which proposes that the soul is the driver of the body, which is like a machine, and that consciousness and out of body experiences are symptoms of the soul, not the body. It provides examples of past life memories and children who recalled details of previous lives, suggesting these as evidence for the existence of the soul separate from the physical body.
Biometric technology uses physiological or behavioral characteristics to uniquely identify individuals. As populations grew and mobility increased, identity verification increasingly relied on documents and passwords rather than personal recognition. Biometrics provides a solution by using something unique to each person, like fingerprints, irises, or facial features. An ideal biometric must be universal, unique, permanent, collectable, and acceptable. Systems enroll users by storing biometric templates, then verify or identify individuals by comparing live samples to templates. Common biometrics include fingerprints, irises, retinas, hand geometry, signatures, and faces.
This document discusses various elements of Bollywood films including item numbers, dancing around trees, pelvic thrusts, facial expressions and body language in dancing, and songs set in Switzerland or involving rain. It raises the question of whether the elements discussed are enjoyed or disliked.
This document summarizes several Hindu festivals celebrated in India including Makara Sankranthi, Ugadi, Nagapanchami, Shivarathri, Dahi Handi, Rakhi, Holi, and Navratri. Navratri is described in more detail with various gods being worshipped over its nine days including Durga, Kumari, Parvati, Kali, Lakshmi, and Saraswati. Effigies of Ravana are burned in northern India during Dussehra. The nine forms of Durga are symbolized by worshipping nine young girls on Mahanavami.
Diwali is the Indian festival of lights celebrated in autumn to mark the victory of light over darkness and good over evil. It is derived from the Sanskrit words "Deepa" meaning light and "Avali" meaning a row, hence meaning a row of lights. Diwali celebrations include lighting diyas or candles, fireworks, exchanging sweets and gifts, and worshipping the Hindu goddess Lakshmi.
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive functioning. Exercise stimulates the production of endorphins in the brain which elevate mood and reduce stress levels.
This document provides tips on how to ride and includes several trivia facts. It focuses on sharing riding techniques and interesting information related to riding through multiple short trivia statements. The overall topic is learning about riding and picking up some random facts along the way.
This document discusses several esoteric programming languages, including INTERCAL, Brainfuck, Whitespace, Piet, and Ook!. It provides examples of code in each language, such as a "Hello World" program in INTERCAL that insults and flatters people, and an attempt to open and display a file in Ook! that results in an error. It concludes by noting that developers sometimes make unusual language choices in their free time.
The document discusses Chinese family values and culture from 1978 to 2008. It contrasts the importance placed on family, hospitality, and peaceful life with the negatives of bureaucracy and vandalism. The overall message encourages treating others well and not recommending or doing to others what you would not want done to yourself.
This document provides information about exploring the night sky, including:
- Lists of constellations visible in the northern and southern skies such as Orion, Aquila, and Crux.
- Tips on using tools like printed sky maps, GPS, and star map applications to help identify constellations and stars.
- Information on star magnitude and how the brighter a star appears the lower its magnitude number.
- Suggestions for stargazing including being patient, mapping the sky every few hours and in different directions, and optionally using accessories.
- Encouragement to enjoy exploring the night sky.
The document provides a brief overview of the history and development of Bollywood cinema in India. It mentions some of the earliest films from 1913, influential directors from the 1950s like Raj Kapoor and Guru Dutt. It also notes the contributions of musical stars like Lata Mangeshkar since 1942 and dancers like Madhuri Dixit. The document outlines some key influences on Bollywood like Indian folk music, culture and literature as well as Hollywood. It also touches on different genres that emerged like masala movies, parallel cinema and trends like multiplexes and box office figures.
The document provides an overview of hockey including basics like teams consisting of 6 players each and scoring goals by putting the puck in the net. It notes defense is also important and advises always keeping your head up to avoid injury. It discusses penalties, winning the Stanley Cup, and some all-time great players like Wayne Gretzky, Gordie Howe, and Al MacInnis.
The document discusses collaborative learning and how individuals can work together to combat issues like information overload. It notes that the digital universe grew significantly last year and will continue growing rapidly this year. Finally, it suggests ways people can collaborate through tools like Yammer, blogs, communities, and events to continue innovating together despite challenges.
This document discusses passing responsibility for consequences onto others to avoid worry, referencing space shuttle accidents where faulty O-rings led to disaster despite known issues. It suggests learning from mistakes by taking responsibility rather than avoiding problems.
If the sun disappeared suddenly, the planet that would fly out of its orbit first is Mercury, being the closest planet to the sun and therefore most affected by its gravitational pull. General Relativity explains that gravity is a result of objects with mass warping the very fabric of space and time itself. While space travel remains a dream, advancing technology to increase spacecraft speed or discovering phenomena like wormholes could someday make interstellar travel within reach.
This document discusses blogging and provides tips for starting a blog. It defines a blog as a collection of entries over multiple posts that can include words, images, videos, and other media. The document encourages bloggers to choose a topic they are passionate about, set goals for their blog, and engage with other bloggers and their audience. It emphasizes that blogging should be fun and provides advice to start small and focus on topics the blogger knows well to maintain their passion and dedication to blogging over time.
This document discusses how to embrace winter in Canada despite the cold temperatures often below -30 C. It notes the short daylight hours but also highlights outdoor winter activities like skiing, snowboarding, snowshoeing, dog sledding, and polar bear plunges. The document advises dressing for warmth over style and provides tips for dealing with winter weather like not washing your car and enjoying a snowball fight.
This document appears to be notes from Chris Reade on their first computer program, including references to simulating ecosystems and genetic algorithms. It also mentions social networks, vaccines, and different things that eat or can eat. The document ends with simple "hello world" and "hello losers" messages, suggesting it is about a beginning programming project.
The document discusses the law of attraction and how thoughts can impact one's life. It notes that people have around 60,000 thoughts per day and emphasizes focusing on affirmative thoughts rather than negative ones. A 3 step process is mentioned to visualize what you want through imagination, believing you can achieve anything, and understanding that thinking positively can help attract positive experiences and outcomes in one's life and dreams.
The document outlines 7 lessons learned from school kids. The lessons are: don't underestimate students, show energy in teaching, give students room for creative thinking, don't label students as "boys" or "girls", share responsibilities with students, show care for students, and encourage students.
This document provides a brief history of several computer programming languages:
- FORTRAN was created in 1954 and was widely used for scientific and technical computing.
- BASIC was created in 1964 and was designed for simplicity to encourage more people to learn programming.
- SQL was created in 1970 and allows for fast querying of database systems. It became popular for managing relational databases.
- Java was created in 1991 and became widely popular for building mobile and enterprise applications thanks to its platform independence and security features.
The document outlines the homebrewing process from preparation through bottling and drinking. It begins with preparing equipment, recipes, and sanitizing supplies. Next is the brew day which involves mashing, boiling, hop additions and chilling the wort. Fermentation follows as the yeast is added to the cooled wort. Finally, bottling occurs where the beer is packaged and cellared for 6 weeks before drinking. The process focuses on preparation, brew day activities, fermentation, and bottling before enjoying the final product.
The document discusses the soul theory, which proposes that the soul is the driver of the body, which is like a machine, and that consciousness and out of body experiences are symptoms of the soul, not the body. It provides examples of past life memories and children who recalled details of previous lives, suggesting these as evidence for the existence of the soul separate from the physical body.
Biometric technology uses physiological or behavioral characteristics to uniquely identify individuals. As populations grew and mobility increased, identity verification increasingly relied on documents and passwords rather than personal recognition. Biometrics provides a solution by using something unique to each person, like fingerprints, irises, or facial features. An ideal biometric must be universal, unique, permanent, collectable, and acceptable. Systems enroll users by storing biometric templates, then verify or identify individuals by comparing live samples to templates. Common biometrics include fingerprints, irises, retinas, hand geometry, signatures, and faces.
This document discusses various elements of Bollywood films including item numbers, dancing around trees, pelvic thrusts, facial expressions and body language in dancing, and songs set in Switzerland or involving rain. It raises the question of whether the elements discussed are enjoyed or disliked.
This document summarizes several Hindu festivals celebrated in India including Makara Sankranthi, Ugadi, Nagapanchami, Shivarathri, Dahi Handi, Rakhi, Holi, and Navratri. Navratri is described in more detail with various gods being worshipped over its nine days including Durga, Kumari, Parvati, Kali, Lakshmi, and Saraswati. Effigies of Ravana are burned in northern India during Dussehra. The nine forms of Durga are symbolized by worshipping nine young girls on Mahanavami.
Diwali is the Indian festival of lights celebrated in autumn to mark the victory of light over darkness and good over evil. It is derived from the Sanskrit words "Deepa" meaning light and "Avali" meaning a row, hence meaning a row of lights. Diwali celebrations include lighting diyas or candles, fireworks, exchanging sweets and gifts, and worshipping the Hindu goddess Lakshmi.
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive functioning. Exercise stimulates the production of endorphins in the brain which elevate mood and reduce stress levels.
This document provides tips on how to ride and includes several trivia facts. It focuses on sharing riding techniques and interesting information related to riding through multiple short trivia statements. The overall topic is learning about riding and picking up some random facts along the way.
This document discusses several esoteric programming languages, including INTERCAL, Brainfuck, Whitespace, Piet, and Ook!. It provides examples of code in each language, such as a "Hello World" program in INTERCAL that insults and flatters people, and an attempt to open and display a file in Ook! that results in an error. It concludes by noting that developers sometimes make unusual language choices in their free time.
The document discusses Chinese family values and culture from 1978 to 2008. It contrasts the importance placed on family, hospitality, and peaceful life with the negatives of bureaucracy and vandalism. The overall message encourages treating others well and not recommending or doing to others what you would not want done to yourself.
This document provides information about exploring the night sky, including:
- Lists of constellations visible in the northern and southern skies such as Orion, Aquila, and Crux.
- Tips on using tools like printed sky maps, GPS, and star map applications to help identify constellations and stars.
- Information on star magnitude and how the brighter a star appears the lower its magnitude number.
- Suggestions for stargazing including being patient, mapping the sky every few hours and in different directions, and optionally using accessories.
- Encouragement to enjoy exploring the night sky.
The document provides a brief overview of the history and development of Bollywood cinema in India. It mentions some of the earliest films from 1913, influential directors from the 1950s like Raj Kapoor and Guru Dutt. It also notes the contributions of musical stars like Lata Mangeshkar since 1942 and dancers like Madhuri Dixit. The document outlines some key influences on Bollywood like Indian folk music, culture and literature as well as Hollywood. It also touches on different genres that emerged like masala movies, parallel cinema and trends like multiplexes and box office figures.
The document provides an overview of hockey including basics like teams consisting of 6 players each and scoring goals by putting the puck in the net. It notes defense is also important and advises always keeping your head up to avoid injury. It discusses penalties, winning the Stanley Cup, and some all-time great players like Wayne Gretzky, Gordie Howe, and Al MacInnis.
The document discusses collaborative learning and how individuals can work together to combat issues like information overload. It notes that the digital universe grew significantly last year and will continue growing rapidly this year. Finally, it suggests ways people can collaborate through tools like Yammer, blogs, communities, and events to continue innovating together despite challenges.
The document provides tips for starting an entrepreneurial venture including finding a product or service to sell, benchmarking competitors, creating a brand, investing money, producing and marketing the product both online and offline, becoming an expert, selling to friends and family, handing out business cards, having an elevator pitch prepared, aiming for holidays, and continuing to grow the business to make more money.
This document repeatedly lists the specifications for a camera lens as "50mm F1.4". The lens is described solely by its focal length of 50mm and maximum aperture of F1.4, with this combination listed multiple times.
The document discusses the sport of aggressive inline skating. It notes that aggressive inline skating involves tricks like grinds, grabs, flips and slides performed on ramps and rails. It differs from other forms of inline skating through its emphasis on tricks using terrain features and protective gear, as well as requiring courage and risk of injury to perform difficult stunts.
The document discusses various theories about the origin and nature of humor. It explores ancient Greek perspectives that viewed humor as arising from ignorance or ugliness. Modern theories discussed include the superiority theory, where people laugh at others' misfortunes; the incongruity theory, involving unexpected resolutions; and the sexual selection theory, where humor developed traits like intelligence. The document also notes monkeys are capable of laughter and humor likely evolved with language. It outlines four main types of humor and suggests ways to make people laugh.
What have we learned from our mistakes?twuniversity
1) The document summarizes key statistics from World War 1 and 2, including total casualties which ranged from 37 million in WW1 to over 50 million in WW2.
2) It discusses the concepts of caste and religion in India and globally, noting how caste-based reservation in some Indian states exceeds 50% limits.
3) The document argues that conflicts over caste, religion, and region mainly benefit those seeking money and power, and calls on people to stop dividing along these lines and instead see our shared humanity.
The document discusses various concepts related to physics including time dilation, relativity, acceleration, black holes, and equivalence. It references topics like the family, travel, chocolates, and characters named Goner and Kai. The concepts and topics are presented in a nonlinear format and without much explanation or context, moving between ideas and illustrations.
This document tells the story of Mr. Bean's life from ages 5 to 30 and how his monetary needs changed over time. At each stage of his life when he needed money, he prayed to God, who provided currency notes and coins of increasing denominations, from paise to rupees to larger notes of 500, 1000, 5000, and 10000 rupees. By age 30, when Mr. Bean wanted to start a business, God did not come to his aid. The story suggests moving from complete dependence on God to believing in oneself and exploring options like credit cards or business loans for financial needs.
Tigers are being threatened by poaching and conflict with humans over food and territory. Their numbers in the wild are declining rapidly due to the illegal trade of tiger parts used in traditional medicine and decorative items. Conservation efforts aim to curb poaching by working with local communities and governments, while raising awareness of the tiger's crucial role in the ecosystem and need for protection to preserve the species for future generations.
This document discusses the history and evolution of Indian culture. It touches on reflections of a great house, random stories, the work of A.K. Ramanujan, and the history behind Indian culture. It expresses gratitude to Richard for contributions to understanding this topic.