当前位置:网站首页>[laravel series 8] out of the world of laravel
[laravel series 8] out of the world of laravel
2022-06-29 04:03:00 【Ma Nong Lao Zhang ZY】
Out of the Laravel The world of
Remember what the first article in this series was ? At that time we wrote 《 Get into Laravel The world of 》. In reason , Finished learning , Daily application is more handy , Why should we go out again ?
Another new beginning
For our life , It is a cycle of beginning and ending . At the beginning , We walk in Laravel The world of . I didn't explain the use of each function in depth from beginning to end , There are too many tutorials in these contents , Usually we simply introduce the use of a function , Then start to analyze its source code . You must know , What we want to see more is the design idea of this framework , Including the application of design patterns 、 Organization of code structure 、 Path analysis of the underlying call, etc . In my submission , After understanding these contents , You can look back at the functions that the framework has encapsulated , Will feel very friendly and simple .
This is actually the main reason why you guys recommend learning by reading the source code . But I believe you know the feeling of a person looking at the code , That sleepy , That's silly . therefore , I wrote this series for selfish reasons , I hope to encourage myself to deeply understand the whole by sharing Laravel Framework system . therefore , There will also be various stepping pits when recording video , All kinds of debugging are not smooth and nothing can be found . But I have shared it in a small video before , Video recording is just a way for me to review , Including these articles , I don't expect you to see , And I am not afraid of mistakes and omissions , Having a great God to point it out is the greatest help to me . So most of the time it's just a glance , Have a try , And then start recording , Debugging while recording , Further impression . In fact, when writing articles , It takes far more energy than it takes to record a video . But then again , If these articles and videos can really bring you even a little harvest , So it's a merit , Thank you for your , And thank myself .
There is no end to learning ,Laravel My study is over , Many small partners should also use it in daily business development . What will be the next starting point ? In fact, many PHP Programmers may not have much exposure to high concurrency , After all PHP The applicable scenario is that start-ups can conduct rapid product verification . therefore , Often after reaching a certain scale , Many enterprises will switch to Java And other language environments , For example, the most famous Taobao . Taobao was the first one to buy PHP Mall system , When the scale becomes larger , Directly Sun The technical experts of the company and the big bulls at the time of Taobao's founding changed to Java . It's in 《 This decade of Taobao Technology 》 This book has all talked about .
that ,PHP Can't you do business with high concurrency and large traffic ? I believe many students have blurted out :“Swoole All right !”.
ok , Don't talk nonsense , The next series will write Swoole . however , No source code analysis ,C I can analyze the source code . Let's just learn Swoole Application functions in , And a and Laravel Very similar Swoole frame :Hyperf .
Of course , Not that I left Swoole perhaps Workerman , Native PHP Concurrency sucks . current PHP8 Introduced JIT , coordination OPCache , Coupled with the distributed deployment of multiple machines , In fact, the performance is not bad . however , But again , In some business scenarios , a Swoole Indeed, it can withstand the tradition of several or even dozens of sets PHP The server , This is not nonsense . let me put it another way , Very financial friendly , He is also very friendly to the boss , It's also good for us . Why? ? Without touching the concepts of some traditional compiled languages , I want to raise my technical level to a higher level , It's really hard. ,PHPer We must jump out of the comfort zone !
Laravel Elegant
I still remember that we talked about this problem at the beginning , At the same time, many people on the Internet will say that it is an elegant framework . After this period of study , I believe you have your own answer . Especially during the interview , Can you tell the interviewer exactly where the elegance is ?
Service container 、 The facade 、 Their implementation process is actually very complicated , But it does present us with a feeling of elegance , Variable naming conventions 、 Clear code hierarchy, etc , Not one by one . We can achieve many functions with very little code , So the feeling is more about the structure of the whole frame , Some code is used in a very Java The feeling of . But this also proves a truth , the world will be blessed with harmony and unity , It's not just the language , These frameworks are also getting closer , More and more similar .
If you want to continue to learn some programming ideas , It's time to take a look Java Related framework . The system is more complex , More concepts , But they are all more popular and updated . Whether it is suitable for PHP How about it ? Different people have different opinions , The wise see the wise , It is beyond my ability to give you an answer .
Do you want to learn other frameworks
This... , Which one do you use in your work ? If you use TP perhaps Yii , That in itself is no problem . You can find in these frameworks Laravel The shadow of many implementations in . If you are using Laravel , There's nothing wrong with expanding your horizons . Do not say who copied who , Ideas are open source , You must admit this . Many implementations may have better solutions in other frameworks , We learned that it is also a kind of harvest .
In addition, I have a personal point of view , The most simple , Most convenient , The most used framework should be your main framework . For example, in China ,TP It's really a good choice , adopt Laravel To learn the trend of thought , adopt TP To get the job done and do whatever you want , It is a good plan .
No project tutorials ?
My day ah !( Xiao Yueyue's tone )
I also need to provide specific project tutorials ? I have searched a lot of these things , use Laravel A blogger 、 Shopping mall 、 Do official website tutorials or source code analysis , There is more than enough , And they are all the explanations of the great gods , Never worse than me , It will only be better . But remember , Official documents and actual combat experience are your magic weapons , Those of us CRUD Programmers can design the database well enough to deal with these projects . After all, in the end we are all just doing data operations .
ok , Put a Flag , finish writing sth. Swoole Then we will study together MySQL、Redis、Nginx How about three big pieces ? At that time, we will work together to study what projects to do and how to build the appropriate database and table !
summary
Not much else , Look forward to our next Swoole Let's meet in the series . I hope you have something to gain from this journey , What is more important is to bring some inspiration , If you have anything to say, just leave a message !
边栏推荐
- Live broadcast preview | neurips special session I & Young Scientists special session
- MobileOne: 移动端仅需1ms的高性能骨干
- Set hardware breakpoint instruction for ejtag under the PMON of the Godson development board
- Data statistical analysis (SPSS) [7]
- SQL two columns become multi row filter display
- Common methods of JS date and time
- sql数据库存储过程写法
- Cloud native weekly | grafana 9 was officially released; The Chinese version of cloud native vocabulary is now online
- 你为什么做测试/开发程序员?还能回想出来吗......
- How to keep database and cache consistent
猜你喜欢

yolox出现 RuntimeError: DataLoader worker (pid(s) 17724, 1364, 18928) exited unexpectedly

PostgreSQL 出现cross-database references are not implemented的bug

Common methods of JS date and time

Anaconda's own Spyder editor starts with an error

SqlServer如何查询除去整列字段为null的结果

Seekbar custom pictures are not displayed completely up, down, left, right / bitmaptodrawable / bitmaptodrawable inter rotation / paddingstart/paddingend /thumboffset

自己动手搭建一个简单的网站

leetcode - 295. 数据流的中位数

The second meeting of the Second Council of Euler open source community was held, and Xinhua III, hyperfusion and Godson Zhongke became members of the Council

88. (cesium chapter) cesium aggregation diagram
随机推荐
If you choose the right school, you can enter Huawei as a junior college. I wish I had known
科技云报道:混合办公的B面:安全与效率如何兼得?
88. (cesium chapter) cesium aggregation diagram
Is the sink usually the JDBC insert update delete?
Four distributed session solutions
Ansible best practices playbook different context rights raising demo
要不是和阿里P7聊过,我也不知道自己是个棒槌
Technology cloud report: side B of mixed office: how to have both security and efficiency?
HCIE-Security Day41:理论学习:信息收集与网络探测
The great gods take connections from the MySQL connection pool in the open of the rich function. The initialization of the connection pool is 20. If the parallelism of the rich function is 1
【布里渊现象】光纤布里渊温度和应变分布同时测量系统研究
CDC2.2.1还不支持postgresql14.1么?基于pgbouncer连接方式下,以5433
Qtableview gets all currently selected cells
Microsecond TCP timestamp
二叉树序列化与反序列化(leetcode(困难))
Tech Cloud Report: Mixed Office B side: How Safety and Efficiency can be combined?
Seura 2测试代码总结
基于可变参模板实现的线程池
Data collection and management [8]
Data collection and management [4]