search
HomeBackend DevelopmentPHP Tutorial 来自茂名的php软件工程师.写写小城市里软件工程师想法.希望与大城市的PHP技术交流交流

来自茂名的php程序员...写写小城市里程序员想法..希望与大城市的PHP技术交流交流
首先一下我的简介

我生活在一下IT不发达的小城市 茂名。

    早在三四年前我身边的朋友和同事。都上了大城市发展了。而我一直选择在茂名发展。
    也许是因为自己认为在茂名还是有很大的发展空间,其实我对所有的事都是要求做到最好的很喜欢原创。当然我自己是为了创业当老板留下来的。但日子几年下来了。发现自己成了井底之蛙..
   因为我一直是希望原创的。我不喜欢用js框架也不喜欢用php框架,我一直都在用自己写的破烂的“框架”。
   原说一下js框架,原因js框架我写的是原创的所以没有去了解一些国外主流的框架。其实几年前我就知道那些框架的存在如jquery,只是因为jquery当时与旧程序不兼容,我就一个劲的以为所有的框架都是会与原有的程序不兼容。这个月我想重写js框架于是去了解了jquery。后来我开始模仿jquery的思想写框架。但写了一半我放弃了。因为同事告诉我jquery是提供了兼容的写法。其实我需要的功能其实把它写成jquery的组件调用就可以了。于是我放弃了我之前的破烂框架用了jquery。我进步了。

这里给出jQuery的兼容的写法:


  
    PHP框架:
    就在一年前。我请教 过一个在珠海打拼了几年的前辈,他说作PHPER 一定要懂用pera库和PHp框架。那时我就在想为何国内没有大的网站使用pera库和php框架呢。于去上了 ccdn请教大家。结果大家表明pera库和PHP库是足够的安全和庞大,效率不高。所以我选择了不用框架。当时如果去研究了ZF可能对我写的程序也会提高一定的思维。
    到现在我所有的程序程序都是使用自己编写的类去调用的。算不上是框架,但也有了模板引擎参考DZ论坛做的。但我写的类了不是抽象类但也可以达到通过。和调用方便。也封闭了html和表单的提交。也在也几个系统使用了,也写了文档让别的同事可以快速学习。毕竟核心和文档都是由我一个人写所以也是破烂的。正是因为这些破烂及不规范的调用让我的工作轻松。我希望重写一个框架去把这些功能封装起来。让我的工作更轻松。
   
    就在这个时候我想起了js框架的先例,我不想再当井底之蛙了。我害怕浪费了我的时间。我试着找出最适合我使用的PHP框架。再去了解是否上面已经包含了我需要的功能了。

    目前我正在了解Zend Framework。通过bardo了解http://bardo.iteye.com/blog/658402 ZF框架的缺点,也意识到自己要写一个框架是必需要了解别人优秀的框架的。可是这里又是一个时间成本的问题了。我不希望自己当一辈子的程序员,靠我自己一个人的力量开发一个框架显得我自己多么的渺小,正如barbo说的一个框架需要考虑的地方是非常的大多的。而在这个小公司中技术力量也十分有限。我要得到一个适合我们公司的方案。

    我目前的认为是ZF的学习成本很高。我作为一个技术主管学习到这个框架要让我的团队去适合也需要一定的时间成本。所以决定准备先去了解一下symfony。至于ZF能不能满足我们团队的需求这点我也不敢确定。我准备去研究symfony和ZF进行比较。如果大家有symfony的ZF学习文档希望可以给我留言。或者大家一起交流学习。如果研究学习的成本高。应该不比自己开发一个小型的框架高吧。 




1 楼 cana_xu 2011-01-04  
bardo真是一个厉害的程序员,追根究底的能力使我只能仰望,兄弟你也要多向bardo请教。

2 楼 asdf93945 2011-08-09  
加个老乡:  QQ 280016524 degui.chen@qq.com
Statement
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
How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

Simple Guide: Sending Email with PHP ScriptSimple Guide: Sending Email with PHP ScriptMay 12, 2025 am 12:02 AM

PHPisusedforsendingemailsduetoitsbuilt-inmail()functionandsupportivelibrarieslikePHPMailerandSwiftMailer.1)Usethemail()functionforbasicemails,butithaslimitations.2)EmployPHPMailerforadvancedfeatureslikeHTMLemailsandattachments.3)Improvedeliverability

PHP Performance: Identifying and Fixing BottlenecksPHP Performance: Identifying and Fixing BottlenecksMay 11, 2025 am 12:13 AM

PHP performance bottlenecks can be solved through the following steps: 1) Use Xdebug or Blackfire for performance analysis to find out the problem; 2) Optimize database queries and use caches, such as APCu; 3) Use efficient functions such as array_filter to optimize array operations; 4) Configure OPcache for bytecode cache; 5) Optimize the front-end, such as reducing HTTP requests and optimizing pictures; 6) Continuously monitor and optimize performance. Through these methods, the performance of PHP applications can be significantly improved.

Dependency Injection for PHP: a quick summaryDependency Injection for PHP: a quick summaryMay 11, 2025 am 12:09 AM

DependencyInjection(DI)inPHPisadesignpatternthatmanagesandreducesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itallowspassingdependencieslikedatabaseconnectionstoclassesasparameters,facilitatingeasiertestingandscalability.

Increase PHP Performance: Caching Strategies & TechniquesIncrease PHP Performance: Caching Strategies & TechniquesMay 11, 2025 am 12:08 AM

CachingimprovesPHPperformancebystoringresultsofcomputationsorqueriesforquickretrieval,reducingserverloadandenhancingresponsetimes.Effectivestrategiesinclude:1)Opcodecaching,whichstorescompiledPHPscriptsinmemorytoskipcompilation;2)DatacachingusingMemc

See all articles

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

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.