什么对非Perl开发人员有效的Perl培训? [英] What constitutes effective Perl training for non-Perl developers?

查看:85
本文介绍了什么对非Perl开发人员有效的Perl培训?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与Perl合作已经足够长的时间了,以至于它的许多特质已经成为我的第二本性。当新的程序员加入我们的团队时,他们通常很少或根本没有Perl的经验,而这通常是我的任务(在必要的程度上)。我想知道培训Perl新手但有其他语言经验的程序员时应侧重于什么(这个问题本意是与语言无关的,但是我与之合作的大多数开发人员都来自Java)。

I've been working with Perl long enough that many of its idiosyncracies have become second nature to me. When new programmers join our group, they frequently have little to no experience with Perl, and it's usually my task to train them (to the extent necessary). I'd like to know what to focus on when training a programmer who is new to Perl but has experience with other languages (this question is meant to be language-agnostic, but most developers I've worked with have come from Java).

我发生了一些事情:


  • 正确使用信号标记

  • 引用/取消引用

  • 使用列表功能,例如地图
    grep sort

  • The proper use of sigils
  • Referencing/Dereferencing
  • Use of list functions like map, grep, sort

您是否发现有什么特别的帮助您专注于帮助程序员过渡到Perl?

Is there anything in particular that you've found it useful to focus on when helping a programmer to transition to Perl? Do you stress the similarities or the differences, or both in equal measure?

推荐答案

请检查我书的目录。 学习Perl 中级Perl 旨在教程序员Perl语言。我们涵盖了大多数人一直使用的80%的Perl,并通过对Perl进行多年教学而得到了发展。每本书均设计为教程,每章末尾都有练习。我还写了学习Perl学生工作手册提供其他练习。 编程Perl 也是很好的参考。

Check out the tables of contents for my books. Both Learning Perl and Intermediate Perl are designed to teach programmers the Perl language. We cover the 80% of Perl that most people use all of the time and developed that from years and years of teaching people Perl. Each book is designed as a tutorial, and there are exercises at the end of each chapter. I've also written the Learning Perl Student Workbook to provide additional exercises. Programming Perl is a good reference, too.

实际上,获取 Perl所需了解的规则很少,而且大多数人仅通过查看代码就无法正确理解这些规则。教来自另一种语言的新Perlers的一些知识:

There are actually very few rules that you need to know to "get" Perl, and most people don't get these rules right just by looking at code. Some things to teach new Perlers who are coming from another language:


  • 严格和警告
  • 标量与列表上下文
  • 动态与词法作用域
  • 符号不是变量类型
  • 列表创建和操作(映射,grep,排序)
  • 如何有效地使用CPAN
  • 关闭和子例程作为数据
  • Perl中的递归很烂
  • strict and warnings
  • Scalar versus list context
  • dynamic versus lexical scope
  • The sigil is not the variable type
  • List creation and manipulation (map, grep, sort)
  • How to use CPAN effectively
  • Closures and subroutines as data
  • Recursion in Perl sucks

祝您好运:)

这篇关于什么对非Perl开发人员有效的Perl培训?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆