Slack uses PHP for most of its server-side application logic, which is an unusual choice these days. Why did we choose to build a new project in this language? Should you? Most programmers who have only casually used PHP know two things about it: that it is a bad language, which they would never use if…
Overview
The article discusses Slack's decision to use PHP for server-side application logic, addressing common misconceptions about the language's reputation. It highlights PHP's strengths in web development, its unique environment, and the transition to Hack and HHVM for improved performance and safety.
What You'll Learn
How to leverage PHP's unique request-oriented environment for better application performance
Why PHP remains a viable choice for modern web applications despite its flaws
When to consider transitioning from PHP to Hack for type safety and performance
Prerequisites & Requirements
- Basic understanding of web development concepts
- Familiarity with PHP programming(optional)
Key Questions Answered
What are the main advantages of using PHP for web development?
What are the common criticisms of PHP as a programming language?
How does Hack improve upon PHP's shortcomings?
What performance improvements can be expected from using HHVM?
Key Statistics & Figures
Technologies & Tools
Some links below are affiliate links. We may earn a commission if you make a purchase.
Key Actionable Insights
1Consider PHP for new web projects if you prioritize rapid development and a strong ecosystem.PHP's unique request-oriented environment can facilitate faster development cycles and better fault isolation, making it suitable for many web applications.
2Evaluate transitioning to Hack if your PHP codebase is growing complex and requires more type safety.Hack's gradual typing system allows for a smooth transition, enabling developers to enhance code quality without a complete rewrite.
3Utilize HHVM to improve application performance and reduce server costs.By migrating to HHVM, organizations can experience substantial performance gains, which can lead to lower operational costs and improved user experience.