Table of Contents
展望

2015技术总结

Jun 20, 2016 pm 12:39 PM

这一年也接近尾声了,也专注写了不少代码,中间有很多尝试,也有很多觉得有意义的地方值得记录一下,顺便半年没写 Blog 了,也刷下存在感(虽然本来就没有)

寒假在家的时候没事研究了一阵 Laravel 的代码,顺手修了一个 Bug, 感觉对 Laravel 的设计思想有了一些更深入的理解,但是后来的项目中也没有用过这个框架了,原本还想再开发几个 Laravel 的小插件,也不了了之了,算是一个不小的遗憾:)

回到学校的时候研究了一下 Excel 的文件结构,只了解了一下旧版本的 Excel 2003 的文件,看了很多 Microsoft 的文档,尤其是和 Compound File 有关的,对 Excel 有了更多的理解,也按照文档和理解写了一个 PHP 的 Excel 的扩展,用来快速读取一个 Excel 2003 文件,目的是为了提供一个比 PHPExcel 更加快速的读取方案,实践效果还是不错的,比 PHPExcel 快千倍(因为是纯 c 写的嘛),地址在这里 php-fast-excel,但是也是由于最后项目里没有更多的需求了,所以也没有再更新 Todo List 上面的事情了。但是在其它多个项目中有用到另一个 Excel 的扩展 php_fast_xlsxwriter,这个是用来导出为一个 Excel 07 版本的文档,利用了 xlsxwriter 的 c 库,封装成了一个 PHP 的扩展,实践证明,比 PHPExcel 运行的速度快很多,基本上瞬间就出来结果了。

由于有了两次写 PHP 扩展的经历,然后就在春天去了次 PHPCon,去听了 PHP 在实际业务中的一些应用,也从鸟哥那里了解了 PHP 7 的新特性,以及一些关键点的实现,讲实在的,去听了下还是受益匪浅的。

后来的大部分时间都是在做业务方面的东西,从理解业务到实现这个业务,在这个过程中,有尝试着去使用设计模式。发现有的时候良好的设计会给未来维护带来很大的方便,如果设计的够通用的话,有的新业务也可以用旧业务的框架进行实现,实现了事半功倍的效果。但是,有时候这也会是个双刃剑,因为业务总不可能按照一开始的设计走,所以可能有多余的设计,这一点是要注意并且避免的。所幸的是,这一年的设计基本上满足了大多数需求,也给自己省了不少工作量。但是,由于自身的不成熟,导致了这些东西只能够为自己所使用,争取在明年以及未来的设计中,能够更易用,而且能够有让其他人很容易上手的框架设计方案。

其实四月份的时候就立了另一个 iOS 的项目,因为也是第一次完整的做一个 GUI 的项目(以前做的一个纯粹是 Win32 API + BMP 图的实现),所以拖到了现在,才把功能做完,还有一些细节方面的美化,可能要到过年完后才能看到这个 App。这中间在十一我回家的时候经历了一次重构,由原先的随便拼 ViewController 的方案,改成了一个逻辑比较清晰的,后来加功能的时候也方便了很多,然后就是十二月的时候做了一下图文混排的实现,利用了 YYText 的库,发现国人做的一些开源项目已经很不错了。在做 iOS 项目的时候暴露出自己很多方面的不足,尤其是多线程,以及 UI 渲染实践的匮乏,只懂得理论,而这一次刚好是一个很好的机会,从异步多线程到 UI 渲染,都有了一次极大的理解和提升。

除了在技术方面的工作之外,在经历过几次“见世面”和“坑人及被坑”后,发现有好多地方还有很大的学习空间,不仅仅要在技术能力上下功夫,更应该在为人处世上有所注意和提升。

展望

技术方面,尽可能往更深层次走,PHP 经常被黑是因为它实在是太过于简单了,争取明年对 PHP 7 的内核有一个深入的理解;框架设计方面,尽可能做到易于他人理解,易于多人使用,更多的减少重复工作量,尽可能将系统做成可配置管理的,而不是写死在代码中的;加深对 UI 以及多线程编程的理解,争取能够再重构一下 iOS 的代码,用一些比较好的思想( Promise 什么的),来使得已经臃肿的代码更简洁、更易读;算法方面,以前都是有心情做一做,明年还是争取有个目标出来,翻了下算法导论发现八成已经学过了,争取多做做题,保持一种能做出题的状态来。并且多总结一些经验更新博客吧= =这都半年没写了,以前的也都写的是皮毛,总之文字和表述能力还需要加强。

非技术方面,争取有个女朋友:)

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1253
24
Explain secure password hashing in PHP (e.g., password_hash, password_verify). Why not use MD5 or SHA1? Explain secure password hashing in PHP (e.g., password_hash, password_verify). Why not use MD5 or SHA1? Apr 17, 2025 am 12:06 AM

In PHP, password_hash and password_verify functions should be used to implement secure password hashing, and MD5 or SHA1 should not be used. 1) password_hash generates a hash containing salt values ​​to enhance security. 2) Password_verify verify password and ensure security by comparing hash values. 3) MD5 and SHA1 are vulnerable and lack salt values, and are not suitable for modern password security.

PHP and Python: Comparing Two Popular Programming Languages PHP and Python: Comparing Two Popular Programming Languages Apr 14, 2025 am 12:13 AM

PHP and Python each have their own advantages, and choose according to project requirements. 1.PHP is suitable for web development, especially for rapid development and maintenance of websites. 2. Python is suitable for data science, machine learning and artificial intelligence, with concise syntax and suitable for beginners.

PHP: A Key Language for Web Development PHP: A Key Language for Web Development Apr 13, 2025 am 12:08 AM

PHP is a scripting language widely used on the server side, especially suitable for web development. 1.PHP can embed HTML, process HTTP requests and responses, and supports a variety of databases. 2.PHP is used to generate dynamic web content, process form data, access databases, etc., with strong community support and open source resources. 3. PHP is an interpreted language, and the execution process includes lexical analysis, grammatical analysis, compilation and execution. 4.PHP can be combined with MySQL for advanced applications such as user registration systems. 5. When debugging PHP, you can use functions such as error_reporting() and var_dump(). 6. Optimize PHP code to use caching mechanisms, optimize database queries and use built-in functions. 7

PHP in Action: Real-World Examples and Applications PHP in Action: Real-World Examples and Applications Apr 14, 2025 am 12:19 AM

PHP is widely used in e-commerce, content management systems and API development. 1) E-commerce: used for shopping cart function and payment processing. 2) Content management system: used for dynamic content generation and user management. 3) API development: used for RESTful API development and API security. Through performance optimization and best practices, the efficiency and maintainability of PHP applications are improved.

How does PHP type hinting work, including scalar types, return types, union types, and nullable types? How does PHP type hinting work, including scalar types, return types, union types, and nullable types? Apr 17, 2025 am 12:25 AM

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values ​​and handle functions that may return null values.

The Enduring Relevance of PHP: Is It Still Alive? The Enduring Relevance of PHP: Is It Still Alive? Apr 14, 2025 am 12:12 AM

PHP is still dynamic and still occupies an important position in the field of modern programming. 1) PHP's simplicity and powerful community support make it widely used in web development; 2) Its flexibility and stability make it outstanding in handling web forms, database operations and file processing; 3) PHP is constantly evolving and optimizing, suitable for beginners and experienced developers.

PHP vs. Other Languages: A Comparison PHP vs. Other Languages: A Comparison Apr 13, 2025 am 12:19 AM

PHP is suitable for web development, especially in rapid development and processing dynamic content, but is not good at data science and enterprise-level applications. Compared with Python, PHP has more advantages in web development, but is not as good as Python in the field of data science; compared with Java, PHP performs worse in enterprise-level applications, but is more flexible in web development; compared with JavaScript, PHP is more concise in back-end development, but is not as good as JavaScript in front-end development.

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

See all articles