对于我,一个全能的程序员应该熟悉每个层面的技术知识,若是不是所有掌握,也要对全部的软件技术有真正的兴趣。node
熟悉整个技术体系的程序员,可使得周围的人的生活更加容易。这就是为何我反对在工做场合的技术鸿沟。固然,大公司里的政治和沟通的问题每每会影响他们的发展。我想Facebook招聘策略的目的就在于,若是聪明的人身心俱到,一个好的产品能够在更短的时间内发布。程序员
技术知识体系的分层:
1. 服务器,网络和主机环境
- 这包括理解什么会宕机,为何会,没有任何资源是理所固然的。
- 合理使用文件系统,云存储,网络资源,理解数据冗余和可用性。
- 在硬件受限的状况下,如何扩展应用。
- 那么关于多线程和竞争呢?你猜怎么着,你在你的开发机器上看不到,可是在现实中却常常发生。
- 全能程序员能够与DevOps协同工做。系统应该提供有效的错误信息和日志能力。DevOps会在你以前看到这些信息,使它们有意义。
2. 数据建模
- 若是数据模型存在缺陷,那么业务逻辑和更高的层次将要用奇怪、丑陋的代码来弥补那些模型没有覆盖到的边界场景。
- 全能程序员知道如何构建合理规范化的关系模型,包括外键、索引、视图、查找表等。
- 全能程序员熟悉非关系数据存储的概念,理解其比关系型数据存储的优势。
3. 业务逻辑
- 明白应用程序提供的核心商业价值。
- 须要扎实的面向对象知识。
- 须要理解框架。
4. API层面/Action层面/MVC
- 理解外部如何与业务逻辑和数据模型进行交互。
- 框架在这里会用得不少。
- 全能的程序员有能力写出清晰,一致,简单易用的接口。一些API的复杂得使我感到厌烦。
5. 用户界面
- 全能程序员a)知道如何建立可读的布局,或者b)明白本身须要帮助艺术和图形设计师。不管哪种,实现好的视觉设计是关键。
- 掌握HTML5/CSS3。
- Javascript在未来会是很是重要的一门语言,不少使人兴奋的做品都是用Javascript完成的。(node, backbone, knockout……)
6. 用户体验
- 全能程序员明白,用户只是想让产品能够正常工做。
- 一个好的系统不会使得用户患上腕管综合征和眼痛病。一个全能程序员会将一个须要8次点击3个步骤的工序,修改成1次点击。
- 全能程序员会添加有用的错误信息。若是有什么出错了,要向用户道歉。有时程序员漫不经心写的错误信息会让用户以为很傻。
7. 理解用户和业务的需求
- 如今咱们模糊的进行的架构设计,但这会远离了真正的需求。
- 全能程序员会预先看看当用户在使用软件的时候,会发生什么。同时,他们也会关注业务部分。
其余问题:
- 可以编写质量单元测试。顺便说说,Javascript如今也能够进行单元测试了。
- 理解持续自动化集成,包括构建应用,测试,编写文档和部署扩展。
- 安全意识也很是重要,由于每个层面都会有其易受攻击的地方。
总结:
将代码牢牢的绑到一个特定的环境(库,操做系统,硬件等等),是很是糟糕的实践来的。全能程序员理解全部的知识体系,不意味着他们能够走捷径。然而,他们确实会这样作,若是只是创建一个原型的话。安全
技术型创业公司须要全能程序员的多才多艺。可是,一个成熟的公司,须要更多的是专一的技术。服务器
我不肯定在你使用多种语言,使用多个平台,甚至为多个行业工做以前,你是否能够自称为全能程序员。全能程序员要在“高级程序员”之上,由于他们与通晓多语言的程序员在同一线上,可是对各个模块的关系更有全局的意识。注意我刚刚的列表,只有3-5项包含了编写代码。网络
Is it reasonable to expect mere morals to have mastery over every facet of the development stack? Probably not, but Facebook can ask for it. I was told at OSCON by a Facebook employee that they only hire ‘Full Stack’ developers. Well, what does that mean?多线程
To me, a Full Stack Developer is someone with familiarity in each layer, if not mastery in many and a genuine interest in all software technology.架构
Good developers who are familiar with the entire stack know how to make life easier for those around them. This is why I’m so against silos in the work place. Sure, politics and communication challenges get in the way in large organizations. I think the point Facebook is going for with their hiring policy is, if smart people use their heads and their hearts, a better product gets built in less time.app
Layers of the Full Stack:
- Server, Network, and Hosting Environment.
- This involves understanding what can break and why, taking no resource for granted.
- Appropriate use of the file system, cloud storage, network resources, and an understanding of data redundancy and availability is necessary.
- How does the application scale given the hardware constraints?
- What about multi-threading and race conditions? Guess what, you won’t see those on your development machine, but they can and do happen in the real world.
- Full stack developers can work side by side with DevOps. The system should provide useful error messages and logging capabilities. DevOps will see the messages before you will, so make them count.
- Data Modeling
- If the data model is flawed, the business logic and higher layers start to need strange (ugly) code to compensate for corner cases the data model doesn’t cover.
- Full stack developers know how to create a reasonably normalized relational model, complete with foreign keys, indexes, views, lookup tables, etc.
- Full stack developers are familiar with the concept of non-relational data stores and understand where they shine over relational data stores.
- Business Logic
- The heart of the value the application provides.
- Solid object oriented skills are needed here.
- Frameworks might be needed here as well.
- API layer / Action Layer / MVC
- How the outside world operates against the business logic and data model.
- Frameworks at this level should be used heavily.
- Full stack developers have the ability to write clear, consistent, simple to use interfaces. The heights to which some APIs are convoluted repel me.
- User Interface
- Full stack developers: a) understand how to create a readable layout, or b) acknowledge they need help from artists and graphic designers. Either way, implementing a good visual design is key.
- Can include mastery of HTML5 / CSS.
- JavaScript is the up and coming language of the future and lots of exciting work is being done in the JavaScript world (node, backbone, knockout…)
- User Experience
- Full stack developers appreciate that users just want things to work.
- A good system doesn’t give its users carpal tunnel syndrome or sore eyes. A full stack developer can step back and look at a process that needs 8 clicks and 3 steps, and get it down to one click.
- Full stack developers write useful error messages. If something breaks, be apologetic about it. Sometimes programmers inadvertently write error messages that can make people feel stupid.
- Understanding what the customer and the business need.
- Now we are blurring into the line of architect, but that is too much of a hands off role.
- Full stack developers have a grasp of what is going on in field when the customer uses the software. They also have a grasp of the business.
Other Pieces of the Puzzle:框架
- Ability to write quality unit tests. By the way, even JavaScript can have unit tests these days.
- Understanding of repeatable automated processes for building the application, testing it, documenting it, and deploying it at scale.
- An awareness of security concerns is important, as each layer presents its own possible vulnerabilities.
Closing Thoughts:less
It is very bad practice to tightly couple code to a specific implementation (library, OS, hardware, etc). Just because a full stack developer understands the entire spectrum doesn’t mean they have license to take shortcuts. Well, actually they do if it is a build and throw away prototype.
Technology start-ups need full stack developers for their versatility! However, as an organization matures, it needs more and more focused skills.
I’m not sure you can call yourself a full stack developer until you have worked in multiple languages, platforms, and even industries in your professional career. Full stack goes beyond a ‘senior engineer’, as it is along the same lines as a polyglot programmer but with a higher view of all the connecting pieces. Note that on my list, only items 3-5 involve writing code.