未登录,请登录后再发表信息
最新评论 (0)
播放视频

程序员到底是干什么的?

What do programmers actually do?

感谢YouTube对PBS数码工作室的支持
Thanks to YouTube for supporting PBS Digital Studios
推荐
“recommendations”
你说的是“全麦粉饼干”
You’re saying “graham crackers”.
你好 我是丹娜 你正在观看的是《物理女孩》
Hey, I’m Diana and you’re watching Physics Girl.
六年前
Six years ago,
我创立这个Youtube频道时
I started this YouTube channel with a video about
发了一个有关物理学位的视频
what to do with a physics degree
但尴尬的是当时我正准备离开
But the dirty truth is that I was leaving a job at the time
在哈佛大学的物理(研究)工作
working in physics at Harvard
研究低金属丰度星体
studying low metallicity stars
它们是宇宙中最古老的星体 不含很多重金属
which are the oldest stars in the universe and don’t have very many heavy metals
因为超新星还不能能制造重金属
because there were no supernovas yet to make heavy metals
但我却偏离这一方向 开始了我的工作
But I digress and I was starting a job
在美国通用电气公司 担任一名研发iPad应用程序软件工程师
at General Electric making iPad apps working as a software engineer
那我为什么离开物理圈呢
So why did I leave physics?
老实说 当我做研究项目时
To be honest when I was working the research job
我最喜欢的就是敲代码了
the thing that I had liked most about it was the coding part,
因为那是一个最具创造性地解决谜题的部分
because that was the most problem solving a creative puzzle part
比谜题我更喜欢的唯一的事情 就是棋类游戏
And the only thing I like more than a puzzle is a board game.
你不能把它带回家 Diana!
You can’t take that home, Diana!
那为什么一个运营
So why is a woman who runs a
physics girl频道的女人 却做着关于软件工程的视频
channel called physics girl making a video about software engineering
嗯 因为这里能记录我的工作
Well because that’s where the jobs are
我经常会想回到软件工程的工作
I often think about going back to software engineering
所以 最近 我采访了几位
so recently I went to interview some of the
在YouTube里的前几名工程领导 去了解
Top engineering leads at YouTube to figure out
我的软件事业可以成为什么样子
what my software career could have been like what it could
而现在是什么样子
still be like
你在地下室工作吗
Do you sit in a basement?
并不 你修电脑吗 嗯… 不 除了在家里
Nope do you fix computers um no except in my house?
为了做到最好你独自工作吗
Do you have to work alone to work best?
这些都是对软件工程师的误解
These are the misconceptions about software engineers,
我要把它们一个个清除掉
there’s some good them all out of the way
所以 什么是真正让这些人对写代码有如此热情呢
So what is it that really makes these people passionate about writing code?
当我是一个新人的时候
Freshman year I didn’t know what a
我不知道哪种编程语言是我的首选
computer programming language was took my first computer programming
语言课程和其他关于记忆的东西都是记得越多越好
Language course and everything else had been about memorization right you remember as much stuff,
并且需要你经常地回忆它
and you regurgitate it
但一开始就对我来说不是记忆的问题
But this for me wasn’t about memorization and for the first time.
我更像是 哇哦 像… 我正在解决难题 耶!
I was like wow like I’m solving puzzles Yeah,
这就是你在解决难题时脑海中的东西
that’s what it is You’re solving puzzles Imagine
想象一下你正在写一个《纽约时报》上最畅销的叫做
Imagine that you’re writing a New York Times bestselling book called
《火星救援》的书 并且你必须去判断
The Martian and you have to figure out how
你的离子驱动需要花多长时间
long it’s gon na take your ion drive
把你从地球带到火星再带回来
to take you from Earth to Mars
现在你可以在纸上写下
And back now you could write down your set
一系列基本条件 类似于
of constraints on a piece of paper like
地球上存在重力且重力很强
gravity Exists and Earth’s has this much of it
然后在这些限定范围里写下
And then take those constraints and write down
你的所有指示 比如说你的离子动力
all your instructions like leave with your ion
将以这个速度 以这个方向前进
drive at this velocity going in this direction
接着把方程在纸上解开
And then solve the equation on paper
不过这样好浪费时间 同样的
but it would take a really long time you can do the same thing
在计算机里写下基本条件以及
on a computer write your constraints and write your
你的指示
instructions
用一个计算程序通过计算机
and you have a computer program and the computer
就能更快速地解决问题
can solve it all a lot faster than you
然后就可以挑战越来越
can and you can just get as
复杂的指令去运用计算程序
Complicated as you want with computer programs
就像有了虚拟世界的神笔
like writing anything in virtual reality
我曾经去了一节虚拟现实的程序课
There was a virtual reality programming
那是第一次
class that was when for the very first time
我学了3D图像渲染 而且可以在空间里创造物体
I learned about 3d graphic rendering and could sort of create these objects
这项技术已经变得更加贴近大众了
in space this technology was becoming more consumer-friendly
当时我就意识到
That’s when I realized this
现在也许就是虚拟现实的商机
now’s probably the right time for VR
虚拟现实技术已经来了
Now’s a good time virtual reality is coming granted.
我曾经使用VR眼镜
I’ve only ever used VR
在一个室内跳伞风筒里
Goggles to fly
飞行并看到视频里别人的
in an indoor skydiving tunnel to see the video of somebody else
真实跳伞 还有一次在零重力飞机里
Skydiving and in a zero g plane to see
边微重力悬浮边看宇宙空间
space while I was floating in microgravity not to
我也不是吹我的VR经历啦
brag or anything about my PR experiences
重点是 这都是人写的程序
Point is somebody coated all of that
我能给你摄像吗
Can I film you?
对 那是真的
That’s true, yeah
我跟他一起
So the software that we use
用的这个软件就是可以叠加他的声音
with him is the thing that allows him to multiply his voice
就是他唱一个音节就可以演奏很多音节出来
He sings one note and then he can play lots of extra notes,
不过不是钢琴的音色
but instead of the notes coming out like piano
只是他的声音而已
It’s extra copies of his voice Yeah,
有很多
well it’s it’s a lot of
不同的事情我们都要考虑
different things that we had to get to work together
然后我就写了很多
and so a lot of what I wrote
我们称之为胶水代码的东西
For that was actually we call it glue code
就是把很多代码粘合在一起
Which glues a lot of things together so
然后就可以集成声音
that they all work you can make up
最多12个和声在里面
to 12 note harmonies all at once?
软件可以干任何事情 那么什么让你开始编程呢
Software is everything so how does one get
我妈也编程吧
into software engineering my mom had been taking programming?
她教我BASIC 我就做了这个程序
She also taught me basic. I made this program
可以画绿色的鳄鱼
That would draw this green alligator
因为我觉得它是绿的
because the a year was Green
有时爸妈不在家 保姆也会过来
My babysitter came over because my parents are going out,
然后她说 哇 你能做红色的鳄鱼吗
and she said oh, could you make the alligator red?
然后呢
Yeah?
然后我反应过来 她想要我干事情
And I was like oh she wants something from me,
哦 我也想要干点儿“别的”
but I want something from her
我想到九点都不睡觉
I want to stay up till nine
然后我就可以看《爱船》了
o’clock so I can watch The Love Boat
之前都在我睡了以后播
And that was past my bedtime rate,
然后我就说我要是弄红鳄鱼
so I said well if I make the alligator red
你会让我看爱船吗
Will you let me stay up to watch left? Oh,
然后她说可以
and she was like okay?
这简直是世界上最好的事情
This is like painter this Burgamy thing is the best thing
那么 基本上
since sliced bread so basically
有没有 有没有
Get it Basically basic get it
没吗?
No you start
你开始遇到了一个你想解决的问题 可以是任何问题
with a problem that you want to solve it could be anything
比如现在 想想你的问题
You know like right now think about what problem
我保证你会有一个问题是可以拿软件
you have I bet you can think of a
或者手机app解决的
program or an app that can solve
下一段面试
That problem okay next in the interviews
我想问问为什么编程让她们快乐
I wanted to ask the women what got them,
那么 你为什么爱上编程
so passionate about what they do what gets you excited?
那个 最重要的是
Yeah at the tip top
编程的相融能力之大
of the list is the power that
甚至可以深入生活
Immersion has in terms of life one
我尤其喜欢的是
of the things I’m passionate about
我在的这个领域是多元融合
Socially specifically being a woman being a black
那么作为一个女性 黑人
woman and this environment is around diversity inclusion
这个领域由同理心和同情心来主导
But what drives that is empathy and compassion?
对吧 所以我怎么能不去包容地看待编程
Right and so how can I be more inclusive
如果我不懂那种只有我不一样的感受
if I can’t really understand or empathize what
我怎么能让别人相信我的体验
it’s like to be the only
以及我的感受
One in a room so it’s like you
事实上说服别人不是给一颗药
know you can’t really give someone a pill
好像吃了药你就会相信我
all right like hey take this pill and now
愿意用我的办法
Empathize with my experience
你不可能真的那样做不过你可以戴上VR眼镜
like you can’t really do that but you can put on VR Goggles,
了解到
and know what it’s
成为持有最棒的游戏的人是怎么样的
like to be someone who owns the greatest game ever made.
我要再出一张“伐木者”
I’m going to play another woodcutter
在你写出来程序之后
plus you have something concrete by the time
你还能看到实实在在的成果
you’re finished making a program something that can
这个程序能应用于现实世界
be applicable to the real world so if
你看纯数学
You look at pure math
虽然我曾经很擅长 但是我从没对它有太大的感觉
Which I was very good at but I never really felt
因为这些数字到底干嘛的
for it because what do all these numbers mean
它到底有什么用 对吧
What do they mean right like I feel softer
不过软件就是数学
But with software you are taking math
用数字做一个具体的程序
And you are making it something concrete
比如说当我做这个视频的时候
for example when I edit these videos
我能往上面混加小图片
I can do some kind of blend of two different images,
而且你要是用过PS或者其他视频编辑软件
and if you’ve ever used Photoshop or video editors
你之前也做过
You’ve done this
那混加元素可以是很多形式
before there are a bunch of different blend options
而且这些混合其实在干嘛呢
And what those are literally doing is they are taking?
就是单个像素的添加再存储为数字
Individual pixels and storing them
比如说你用添加工具
as numbers and then for example if you’re using
其实就是数字的相加
The add blend you are adding the numbers you were
这就是数学 那么专业的从业人员
literally doing math so people who will have done this a lot
他们从业直接告诉他们新的名字
They just have an intuition for what the different names
比如说叠加 调亮 色彩柔化 边缘柔和
like add lighten color dodge linear dodge
覆盖 显示 差异 排除
overlay screen difference exclusion
不过实际上在做的
But what’s actually going on is you
还是用两张图片像素在做数学变化
are doing math to the pixels of the
然后用特定的公式来计算
two pictures and using some kind of?
最后得到运算后的像素做的新图片
formula to combine them and give you numbers
这就是数学应用在软件
for the pixels of your new picture math to
里面的典型例子啊
application there in the software
我希望这些能解释我
So I hope this gives some small insight
为什么如此热爱编程 也破除
into why I liked software engineering so much clears up some of the misconceptions
一下程序员到底什么样的偏见
About what it’s like to be a software engineer and lastly
我想让这些和我聊天Youtube的工程师
since I was talking to some engineers at YouTube
知道 她们其实
I wanted to let them know
做一个这样了不起的平台 能给猫咪视频
that they had made this incredible platform that gave a place for cat videos and
和搞笑的视频挑战作为一个平台
ridiculous vlog challenges
所以我也让她们来挑战一下
So I made them do a challenge
悄悄话挑战
with me the whisper challenge
就是一个人带耳机开音乐
The idea is you put
另一个悄悄地说一个术语
on headphones and is playing really loud music and then someone else whispers a term
然后就猜猜到底说了啥
And you have to try to guess what they’re
接下来我就展示一下工程师的水平吧
saying so want to show you how that went with the engineers
不过之前 我要谢谢Youtube
But first I’d like to thank YouTube careers
支持我的PBS 电子工作室
for supporting me in this video and supporting PBS Digital Studios
Youtube 是一个在媒体 音乐 科技方面
YouTube is working on projects across the landscape
跨行业的一个大平台 这里会给
of media music and technology and there are
对新媒体和新技术有热情的人提供许多的机会
Opportunities for people with a passion for media and
帮助他们做出与众不同的东西
technology to help make a difference
如果想找相关工作的话
to learn more about the career possibilities available at youtube
点击下面的链接
visit this link
还有“物理快乐”!
and Happy physics thing
“工程师?”不对
Engineering. no.
“弦理论吗? 不是 非常接近了
Substring Theory? No close them
熵(热力学函数)
entropy
太慢?不对
Too slow no
我喜欢这里?
I like it here ?
数据?是什么?
Statistics? What was it?
是“这里是根木棍”
It was here is a stick
建议
Recommendations
看起来你好像在说全麦饼干
It looks like you’re saying graham crackers
我说的是“建议”
I was saying recommendations
我完全不知道
I have no idea
建议
Recommendations
模特 驾驶 建筑
model driven architecture
国家的部分地区
Parts of the nation
快速排序 堆排序
quicksort and heapsort
我很高兴我在做说的部分
I am so glad I’m doing the talking here
问题和营救
question and rescue
快速排序和堆排序
Quicksort and heapsort

发表评论

译制信息
视频概述

哈佛物理系毕业的大美女居然去当码农?还有越来越多的女性也当了高级工程师,什么操作?

听录译者

收集自网络

翻译译者

米汤

审核员

审核员YX

视频来源

https://www.youtube.com/watch?v=g4a7_HH9Wbg

相关推荐