当前位置:网站首页>[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 !
边栏推荐
- Cloud native weekly | grafana 9 was officially released; The Chinese version of cloud native vocabulary is now online
- String不同创建方式的区别
- How to keep database and cache consistent
- 开发者方案 · 环境监测设备(小熊派物联网开发板)接入涂鸦IoT开发平台
- 情绪的变化需要控制
- 中小型企业网络的组建
- [MCU framework][dfu] DFU upgrade example with CRC verification + timeout mechanism +led indicator + chip locking + chip self erasure
- The efficiency of 20 idea divine plug-ins has been increased by 30 times, and it is necessary to write code
- Black screen and error reporting when loading custom models for gazebo with roslaunch
- Why are you a test / development programmer? Can you recall
猜你喜欢

Establishment of small and medium-sized enterprise network

Set hardware breakpoint instruction for ejtag under the PMON of the Godson development board

Libuv库概述及libevent、libev、libuv对比(转载)

Four distributed session solutions

sql两列变为多行过滤显示

What is the dry goods microservice architecture? What are the advantages and disadvantages?

百度智能云服务网格产品CSM发布 | 火热公测中

High performance current limiter guava ratelimiter
![[new function] ambire wallet integrates Metis network](/img/29/8a8c0cd40c51cef1174ee59706d4c9.png)
[new function] ambire wallet integrates Metis network

Source code analysis of go redsync distributed lock
随机推荐
要不是和阿里P7聊过,我也不知道自己是个棒槌
Data statistical analysis (SPSS) [5]
Implementation of b+ tree index based on xlsx
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
SQL 数据记录如何上下行合并
Influence of air resistance on the trajectory of table tennis
Why are you a test / development programmer? Can you recall
Data statistical analysis (SPSS) [4]
百度智能云服务网格产品CSM发布 | 火热公测中
Four distributed session solutions
【新功能】Ambire 钱包集成了 Metis 网络
PostgreSQL 出现cross-database references are not implemented的bug
Nuxt - 每个页面单独设置 SEO 相关标签及网页标题、图标等(页面配置 head)
Emotional changes need to be controlled
Does cdc2.2.1 not support postgresql14.1? Based on the pgbouncer connection mode, with 5433
MySQL复习资料(附加)case when
Data collection and management [10]
leetcode:304. 2D area and retrieval - matrix immutable
Data collection and management [6]
leetcode - 295. 数据流的中位数