This was a tricky one.
I really hope you just went ahead and
ran these lines,
to find out what they do.
the thing to realize,
is that this foo is going to be
the value of the variable foo.
This foo is just the string foo.
In here, again this foo is
the value of the variable foo.
So that's bar, and
this foo is just the string foo.
So it's "$foo + foo =${foo +"foo"}" So
bar + foo = barfoo, there we go.
Over here the list method allows
us to generate a new list,
by applying a closure to
each item in the list.
That would be Collect, awesome work.
That's all the Groovy we'll
discuss directly in this course,
though you'll get to write plenty more.
If you're ready for
a bit of a break from me and
Mark, we've got some suggestions for
where to go to learn more.
Learning new languages is one One of my
favorite things about working in Tech,
and Groovy is a particularly handy
language to have in your back pocket.
Check out the links in
the instructor notes to learn more.
Next up, we'll use our new Groovy
knowledge to start configuring
Gradle builds.
.كان هذا أحد الأمور الخادعة
آمل أن تكونوا قد تمكنتم من تجاوزها
،وقمتم بتشغيل هذه الخطوط
.للتعرف على ما تقوم به
ويجب علينا هنا إدراك حقيقة أن
هذا الـ foo سيكون القيمة
.الخاصة بمتغير foo
.هذا الـ foo مجرد سلسلة foo
ومرة ثانية، فإن هذا الـ foo هو
.قيمة متغير foo
ومن ثم، فهذا هو الشريط، كما أن
.هذا الـ foo هو مجرد سلسلة foo
أي أنه $foo + foo =$
.bar + foo = barfoo، وهذا هو الأساس لما هو قادم
وتسمح لنا طريقة القائمة هنا
،بتوليد قائمة جديدة
وذلك عن طريق تطبيق الإغلاق
.لكل بند في القائمة
.وسيكون هذا تجميعًا لعمل رائع
وهذا هو كل ما سنناقشه مباشرة في
،هذه الدورة حول Groovy
.على الرغم من أنكم ستبدؤون في كتابة الكثير
إذا كنتم مستعدين للحصول
راحة قصيرة مني ومن
Mark، فإن لدينا بعض الاقتراحات حول المكان
.الذي يمكنكم فيه تعلم المزيد
حيث إن تعلم لغات جديدة هو واحد من
،أفضل الأمور حول العمل في Tech
كما أن Groovy على وجه الخصوص لغة
.مساعدة ومفيدة لكم في المستقبل
،لمزيد من المعلومات
.راجعوا الروابط الموجودة في ملاحظات المدرب
سنستخدم في الدرس التالي ما تعلمناه مؤخرًا في Groovy
لكي نبدأ في تكوين
.بنيات Gradle
Essa foi difícil.
Espero que você tenha executado
essas linhas,
para saber o que elas fazem.
O que é preciso notar
é que esse foo será o valor
da variável foo.
Esse foo é somente a string foo.
Aqui, novamente esse foo
é o valor da variável foo.
Então, isso é bar
e esse foo é apenas a string foo.
Então é "$foo + foo =$
bar + foo = barfoo, aqui está.
E aqui... qual o método de lista
que nos permite gerar uma nova
lista aplicando um closure
a cada item na lista.
Seria Collect, ótimo trabalho.
Isso é tudo sobre Groovy que
abordaremos neste curso,
mas você vai ter de escrever muito mais.
Se estiver pronto para
dar um tempo de mim e do Mark,
temos sugestões de onde
procurar mais material para estudar.
Aprender novas linguagens é o que eu mais
gosto no trabalho com tecnologia,
e Groovy é uma linguagem muito prática
para e útil.
Verifique os links nas
notas do instrutor para saber mais.
Em seguida, usaremos esse novo
conhecimento do Groovy para começarmos
a configurar compilações Gradle.
这有些难以处理
我衷心希望你能继续并运行这些行
以弄清它们的作用
要认识到
该 foo 将成为变量 foo 的值
这个 foo 只是字符串 foo
在这里 这个 foo 也是变量 foo 的值
那么 这是 bar 这个 foo 只是字符串 foo
所以 就是 “$foo + foo =${foo +”foo”}” 而
bar + foo = barfoo 这就对了
在这里 list 方法允许我们通过
对列表内的每个项应用闭包来生成新列表
这将是“收集” 做得很好
这将是我们在本节课直接讨论的所有 Groovy
但你需要写很多东西
我和 Mark 稍做休息后
将就在何处了解更多信息提供一些建议
学习新语言是我从事技术工作时最喜欢的事情之一
Groovy 是可以放在你的后口袋的语言 特别方便
查看讲师注释中的链接以了解更多信息
接下来 我们将利用新的 Groovy 知识来开始配置
Gradle 构建