CS计算机代考程序代写 CS61B, 2021

CS61B, 2021
Lecture 33: Software Engineering III
¡ñ Candy Crush and Friends
¡ñ The Ledger of Harms
¡ñ Your Life
datastructur.es

Overview
Software has completely reshaped society in my lifetime.
Today, we¡¯ll discuss your role in the future we¡¯re creating.
1994
Today Show
datastructur.es

2007
datastructur.es

Candy Crush
The mobile game Candy Crush tracks the number of days you have played in a row.
¡ñ Every consecutive day gets you a reward.
¡ð Progress indicator.
¡ð Up to 2 hours worth of a special item for
that day that makes the game more fun.
If you miss a day, the counter resets.
Why does this feature exist in Candy Crush?
¡ñ Encourages you to engage every day.
datastructur.es

Snapchat
Similarly, for every day that you and a friend communicate on snapchat, your snap streak is extended by one day.
Why does this feature exist in Snapchat? ¡ñ To encourage engagement.
datastructur.es

Snapstreaks and Candy Crush Streak
What positive impacts do these features have on the world?
¡ñ For Snapchat – encourages connection between people.
¡ñ Easy dopamine fix.
¡ñ For learning apps like duolingo, it encourages you do do the productive
activity.
¡ñ It¡¯s a goal to shoot for, gamifies our existence, spreads the word about the
app so you can outdo your friends (foursquare and mayoring)
¡ñ It allows you to be engaged with a community.
What negative impacts do these features have on the world?
¡ñ Yet another thing that eats your attention.
¡ñ More addiction to our damn phones.
¡ñ Induces anxiety (which is one reason you keep coming back).
datastructur.es
¡ñ Reduces our connection to some boring old number.

Snapstreaks and Candy Crush Streak
What negative impacts do these features have on the world?
¡ñ
datastructur.es

Snapstreaks and Candy Crush Bonuses Are these features net positives for the world?
¡ñ One vote: Remove! Harm seems worse. ¡ñ
datastructur.es

More Generally
Are Candy Crush/and Snapchat net positives for the world?
datastructur.es

Khan Academy
I¡¯m assuming you¡¯re familiar with Khan Academy: https://www.khanacademy.org/. ¡ñ … but just in case you¡¯re not, let¡¯s check it out.
datastructur.es

Khan Academy
What positive impacts does Khan Academy have on the world?
¡ñ Sal¡¯s voice.
¡ñ Facilitates learning.
¡ñ Unbiased classroom — doesn¡¯t matter who you are or where you are, you
can access it.
¡ñ Free education.
¡ñ Easy way for teachers to give homework (efficiency of scale).
¡ñ Makes AP exams more fair.
¡ñ Standardizes curriculum.
What negative impacts does Khan Academy have on the world?
¡ñ
datastructur.es

Khan Academy
What negative impacts does Khan Academy have on the world?
¡ñ Requires people to have internet access to be free and fair (people without access fall behind).
¡ñ Discourages teachers from doing a good job (potentially).
¡ñ Many unsupported languages.
¡ñ Reduces learning to more and more interacting with a computer.
¡ð Makes it harder to learn other ways.
¡ð It¡¯s more screen time.
¡ñ If you have questions, it¡¯s hard to ask.
¡ñ Learning becomes shallow. Drill and kill questions.
¡ð Opposite of the Gitlet or BYOW experience. ¡ñ Takes jobs from teachers.
datastructur.es

Khan Academy
Is Khan Academy a net positive? ¡ñ Seems clearly positive.
datastructur.es

Workplace Preference
What are some reasons people might prefer working at King (developer of Candy Crush) over Khan Academy?
¡ñ Larger target audience (people playing games vs. people learning).
¡ð Candy Crush comes pre-installed in Windows. Khan Academy doesn¡¯t.
¡ð Candy Crush is a language-free game (for the most part).
¡ñ Money. Game developer likely pays more than education website.
¡ñ Maybe more fun to work on a game than a web-based learning platform.
¡ñ Different set of skills that you can grow (art, animation, etc).
datastructur.es

Revenues
King and Snapchat generate enormous amounts of revenue.
¡ñ Note: Even with all this revenue, Snapchat is still not profitable (net loss of 200 million in 3rd quarter of 2020).
Revenues
Profits
# Employees
Revenue / Employee
King (2019)
2 billion
Unreported*
~2,000
~$1,000,000
Snapchat (2019)
1.7 billion
-0.8 billon
~2,734
~$600,000
Khan Academy
0.037 billion (includes gifts)
N/A
205 (including 11 dogs, 7 cats)
N/A
* King is owned by Blizzard-Activision and yearly report doesn¡¯t give profit for King as a unit. Sources: Link, Link, Link, Link, Link
datastructur.es

The Ledger of Harms
datastructur.es

Concerns Expressed by Tech Leaders
¡ñ ¡°I think we have created tools that are ripping apart the social fabric of how society works.¡± – Chamath Palihapitiya (early executive at Facebook)
¡ñ ¡°God only knows what it[Facebook]¡¯s doing to our children¡¯s brains.¡± – Sean Parker (the Napster guy)
¡ñ ¡°The technologies we were most excited about 10 years ago are now implicated in just about every catastrophe of the day.¡± – Farhad Manjoo (technology journalist)
¡ñ ¡°These are our lives. These are our precious, finite, mortal little lives. The idea that we are spending them distracted, not accomplishing the thing that we¡¯re trying to do, is just painful. It¡¯s crazy.¡± – Justin Rosenstein, creator of the Like button and founder of Asana
¡ñ ¡°¡°Facebook appeals to your lizard brain ¡ª primarily fear and anger,¡± he said. ¡°And with smartphones, they¡¯ve got you for every waking moment.¡±¡± -Roger McNamee (early investor in many tech companies, interesting guy)
datastructur.es

My Thoughts
Technology companies do inflict significant negative externalities upon society.
¡ñ Most of them are still a net positive, e.g. I personally use and enjoy Facebook.
My personal sense is that these are largely unintended consequences by well intentioned people.
¡ñ Yes, there are some bad actors, but I don¡¯t think they are common.
¡ñ Workers and executives at these companies do care.
¡ð … but money does skew people¡¯s perspective in strange ways.
datastructur.es

The Center for Humane Technology and the Ledger of Harms
The Center for Humane Technology was founded by current and former tech workers to raise awareness and try to combat harmful side effects of internet tech platforms.
In 2018, they created a Ledger of Harms ¡°collect those negative impacts of social media and mobile tech that do not show up on the balance sheets of companies, but on the balance sheet of society.¡±
¡ñ It is ¡°aimed at guiding rank-and-file engineers who are concerned about what they are being asked to build.¡± [Link]
datastructur.es

Ledger of Harms
The Ledger:
¡ñ Making Sense of the World: Misinformation, conspiracies, fake news.
¡ñ Attention: Loss of ability to focus without distraction.
¡ñ Physical and Mental Health: Stress, loneliness, addiction, risky behavior.
¡ñ Relationships: Less empathy, more confusion and misinterpretation.
¡ñ Politics and Elections: Propaganda, distorted dialogue, disrupted
democratic processes.
¡ñ Systemic Oppression: Amplification of discrimination.
¡ñ Children: Developmental delays, suicide, physical/mental/social changes.,
¡ñ Do Unto Others: Tech employees limit tech usage in their own homes.
For each category, they provide research and citations for potential harms.
datastructur.es

Making Sense of the World
¡ñ ¡°64% of all extremist group joins are due to our recommendation tools…our recommendation systems grow the problem¡±, noted an internal Facebook presentation in 2016. Yet repeated attempts to counteract this have been repeatedly ignored, diluted, or deliberately shut down by senior Facebook officers, according to a 2020 Wall Street Journal investigation.¡±
¡ñ ¡°Fake news spreads six times faster than true news. According to researchers, this is because fake news grabs our attention more than authentic information: fake news items usually have a higher emotional content and contain unexpected information which inevitably means that they will be shared and reposted more often.¡±
¡ñ ¡°45% of tweets about coronavirus are from bots spreading fake information, according to research from Carnegie Mellon University.¡±
¡ñ ¡°2 minutes of exposure to a conspiracy theory video reduces people¡¯s pro-social attitudes (such as their willingness to help others), as well as reducing their belief in established scientific facts.¡±
datastructur.es

Attention
¡ñ ¡°The presence of a smartphone, even when off, can reduce cognitive capacity by taxing the attentional resources that reside at the core of both working memory capacity and fluid intelligence.¡±
¡ñ ¡°72% of teens and 48% of parents feel the need to immediately respond to texts, social-networking messages, and other notifications.¡±
¡ñ ¡°1 hour per day is the amount of time most Americans spend dealing with distractions and then getting focused and back on track each day, which comes to a grand total of 5 full weeks in a year.¡±
¡ñ ¡°Almost 90% of 290 undergraduates reported feeling “phantom vibrations,” which were experienced an average of once every two weeks.¡±
datastructur.es

Mental Health
¡ñ ¡°30% of 18-44 year olds feel anxious if they haven¡¯t checked Facebook in the last 2 hours.¡±
¡ñ ¡°1 month away from Facebook leads to a significant improvement in emotional well-being. In an experimental study of over 1,600 American adults (who normally used Facebook for up to an hour each day), deactivating Facebook accounts led to a significant increase in emotional well-being (including a reduction in loneliness and an increase in happiness), as well as a significant reduction in political polarization.¡±
¡ñ ¡°In just 3 years, there has been a quadrupling in the number of plastic surgeons with patients undergoing cosmetic surgery for the sake of looking good on social media (from 13% in 2016 to 55% in 2019).¡°
datastructur.es

Relationships
¡ñ ¡°Even the mere presence of smartphone can disrupt the connection between two people, having negative effects on closeness, connection, and conversation quality.¡±
¡ñ ¡°People overestimate their ability to correctly interpret sarcasm, humor, or sincerity over text communication, and this means people tend to believe they can communicate over e-mail more effectively than they actually can.¡±
¡ñ ¡°50% of Americans report that their partner is often or sometimes distracted by their devices when they are trying to talk to them.
¡ñ ¡°89% of cellphone users admit to using their phones during their last social gathering.¡±
datastructur.es

Politics and Democracy
¡ñ ¡°More fake political headlines were shared on Facebook than real ones during the last 3 months of the 2016 US elections.¡±
¡ñ ¡°Exposure to a fake political news story can rewire your memories: in a study, where over 3,000 voters were shown fake stories, many voters later not only ¡°remembered¡± the fake stories as if they were real events but also “remembered” additional, rich details of how and when the events took place.¡±
¡ñ ¡°Fake news stories posted before the 2016 US elections were still in the top 10 news stories circulating across Twitter almost 2 years later, indicating the staying power of such stories and their long-term impact on ongoing political dialogue.¡±
datastructur.es

Systemic Oppression
¡ñ ¡°Russia’s IRA spread false information designed to create outrage about Black Lives Matter and deepen social division in the US. Research indicates that one of the IRA’s major strategies was to use social media platforms to target conservative groups who supported the police or veterans and specifically feed them misinformation about BLM.¡±
¡ñ ¡°With over 800 million users, TikTok promotes itself as a place for self-expression and unrestricted creativity, yet its internal documents reveal a policy of downgrading content from users who do not fit normative ideals of gender, race, class, sexuality, or able-bodiedness, with moderators urged to censor users with “abnormal body shape”, “too many wrinkles”, or whose environment shows signs of poverty such as “cracks in the wall” or “old decorations”.¡±
datastructur.es

Children
¡ñ ¡°58 minutes per day is the average amount of time 2-4 years old spend on mobile devices.¡°
¡ñ ¡°In a longitudinal study tracking over 200 children from the age of 2 years to 5 years old, children with higher levels of screen time showed greater delays in development across a range of important measures, including language, problem-solving, and social interaction. Analyses indicated that the level of screen time was significantly linked to the specific level of developmental delay 12 -14 months later. ¡°
datastructur.es

Your Life
datastructur.es

The Power of Software
Unlike other engineering disciplines, software is effectively unconstrained by the laws of physics.
¡ñ Programming is an act of almost pure creativity!
The greatest limitation we face in building systems is being able to understand what we¡¯re building!
datastructur.es

The Limiting Reagent
You are a rare commodity.
Sources: Link, Link
The skills you are building will be in high demand from companies, non-profits, government agencies, educational institutions, and more.
¡ñ The choice of how to spend your career is yours.
datastructur.es

Some 61B Data (Sp 2019 vs Sp 2021)
Sp21
Sp19
datastructur.es

Steering the Course
Quite a lot of you will likely end up working at some sort of technology company at some point in your life.
There¡¯s nothing (IMO) wrong with working at profit driven tech companies.
¡ñ Please do realize that even as a rank and file employee, you have the power to effect change, particularly if you are paid in stock (because then you are a partial owner).
Let¡¯s see some examples.
datastructur.es

Example 1: Google and the Censored Chinese Search Engine
From 2006 to 2010, Google operated a censored version of Google in China.
¡ñ Withdrew in 2010 in response to cyber attacks by the Chinese government on users of Google¡¯s services: ¡°These attacks and the surveillance they have uncovered–combined with the attempts over the past year to further limit free speech on the web–have led us to conclude that we should review the feasibility of our business operations in China. We have decided we are no longer willing to continue censoring our results on Google.cn.¡±
In Oct 2018, leaked documents published in The Intercept revealed a secret project by Google to re-enter the Chinese market.
¡ñ This new search engine would be censored, and also allow government officials to hypothetically track Chinese residents making undesired queries.
datastructur.es

Example 1: Google and the Censored Chinese Search Engine
Some employee responses:
¡ñ After the leaks, access within the company to documents related to the project were curtailed: ¡°Everyone¡¯s access to documents got turned off, and is being turned on [on a] document-by-document basis,¡± said one source. ¡°There¡¯s been total radio silence from leadership, which is making a lot of people upset and scared. … Our internal meme site and Google Plus are full of talk, and people are a.n.g.r.y.¡± [Link]
¡ñ Over 1400 employees signed a letter demanding more transparency, and at least five employees resigned in protest [Link].
datastructur.es

Example 1: Google and the Censored Chinese Search Engine
Jack Poulson (a senior scientist who resigned): (Link)
¡ñ ¡°There are serious worldwide repercussions to this… what are Google¡¯s ethical red lines? We already wrote some down, but now we seem to be crossing those.¡±
¡ñ Poulson said that he ¡°very much agree[s] with the case Sergey made in 2010. That¡¯s the company I joined, the one that was making that statement.¡± If the anti-censorship stance is shifting, he said, then he could no longer ¡°be complicit as a shareholder and citizen of the company.¡±
Ultimately, in response to employee outcry, the project was cancelled [Link].
datastructur.es

Example 2: Amazon and Climate Change [Link]
18 months + a few weeks ago, 6,772+ employees at Amazon publicly signed a
letter demanding better responses to climate change by Amazon.
¡ñ Specifically, they want the company to adopt a shareholder resolution (link) to study how the company will adapt to and reduce its contribution to climate change.
¡ñ ¡°Amazon is not a mere victim of climate change¡ªits operations contribute significantly to the problem… Coal still powers Amazon data centers. Diesel, gasoline, and jet fuel still power package delivery.¡±
¡ñ ¡°Amazon has the resources and scale to spark the world¡¯s imagination and redefine what is possible and necessary to address the climate crisis.¡±
¡°Like other shareholders, they can file a resolution urging a particular corporate change that investors vote on at a company¡¯s annual meeting.¡±
datastructur.es

Time
You get some number of decades on the planet.
Each week is 168 hours.
Anecdotally, most of you will have much more free time after college than you do now.
¡ñ ~40 hours of work.
¡ñ ~56 hours of sleep.
¡ñ ~72 hours for everything else.
Spend your time wisely, in both your career and personal life.
datastructur.es