For example, an agent will happily add the same query 50 times, then suggest caching it to make it faster. However, a human would put that query somewhere central and give it one reason to change, then reuse that throughout the request.
This is what I meant when I wrote about me using my custom LLM skills to guide the agent to use Auth::company() instead of copy/paste the same query over and over. And it works flawlessly.
Yes, they can't reason these things by themselves, but for how long?
but that's my whole point, only a few months ago we were at the point where people would say
"well sure, agents can write good boilerplates for specific methods, but we're not there yet to expect them to build full features".
Yet here we are.
Routes, Models, Controllers... these things arent some abstract ideas, they are defined principles that are, in fact, language agnostic.
So what is there to say that AI will not be able to make you a complete framework from scratch if you just prompt:
"build me an app that does XYZ in this language".
Again, muting the whole point of using any public framework.
Also, have a really large enterprise project that uses SQL and .NET. We had to attach a Laravel app to it. DEAR GOD have mercy. PHP and SQL just do not go together.
I did this for an old PHP 5.6 project to upgrade it to 7.4 I believe.
The project has more than 10 000 references to mysql_query(), so instead of rewriting the whole thing, I made one file that made checks if mysql_query() is set as a function and, if not, make it.
Then, I made the rest of the old functions in PDO and also mapep the outputs to be the same.
It was a dirty fix but improved the performance by a huge margin.
Why would people do a tutorial for Laravel without showing all the parts of it, i.e. Blade templates, Vue etc... Just skip those parts and look how routes work, in your case the API routes that generate JSON.
Look how Middlewares and Policies work for authentification and permissions on those routes. Don't know what you plan on doing with your project regarding authentification but Laravel offers several packages like Passport and Sanctum.
Migrations for database building.
Factories and Seeders for database population for testing.
maybe Queued jobs and custom Artisan commands?
All of the above is really well documented on the official site and if you have decades of experience, self taught in PHP, I see no problem figuring out how it works by going through the documentation.
What you are looking for is oddly specific to the point are you sure Laravel is what you want/need?
Yes, Laravel can provide all of things you mentioned you need, and much, much more. But when all you are doing is using PHP as the middleman between AJAX calls and MySql, why go the Laravel route at all? Just make a lightweight project from scratch?
but nonetheless, if you have a senior like THAT...run from that company
that's not a senior, that's a prick
I also use Stack overflow...and don't be ashamed to admit it, you can't know everything from the top of your head and if you do...go be a theoretical physicist or something because you're wasting your potential of photographic memory on programing the next facebook.
I don't care what my junior is watching on his screen at a given time. Sometimes you just need to zone out to think about a problem and maybe a distraction helps them to think. I'm like that so I understand, if I get stuck in a loop in my head on an issue, I watch a short youtube video or something to distract myself and then come back to the task with a fresh mindset.
Stuck = Frustrated = Stuck even more
So this is also an advice for everyone (senior or junior), if you feel like you've hit a wall...take a walk, stare through the window, watch a funny clip...anything to relieve the stress.
And it's great! A stick figure RPG with a lot of humor in it's writing.
One of the reasons I got my first job was the fact I made scripts to automate the game in a desktop tool called KOLMafia.
I've made an account back in 2008. Played for years and then stoped. Now just recently came back to the game and having more fun with scripting it in KoLMafia then actually playing the game.
I think I misspoke on these two points so I'll rephrase:
I completely understand that someone would use Postgre. It's a database like any other. It's just that I don't really see it used as often as MySQL purely because WAMP/LAMP installations (and hosting providers) default to MySQL.
Call me old-fashioned but I prefer setting up my local machine with WAMP where I can tinker and easily switch between PHP versions with a click of a mouse. Also setup our GitLab to build production on our live server after every merge to master. I get that Docker can to all that for me, but like I sad...cal me old-fashioned
I'm looking it like this. The question was, "what php environment you use for development" and personally, I don't get why would you use docker on your local machine. Production, sure, but why during development on my localhost?
this one is simple, you would be surprised how many people have no idea how to setup a debugging tool. I saw cases of print_r() used for dumping...in laravel...where dump() and dd() exist.
That's a terrible name.
This is what I meant when I wrote about me using my custom LLM skills to guide the agent to use Auth::company() instead of copy/paste the same query over and over. And it works flawlessly.
Yes, they can't reason these things by themselves, but for how long?
but that's my whole point, only a few months ago we were at the point where people would say
"well sure, agents can write good boilerplates for specific methods, but we're not there yet to expect them to build full features".
Yet here we are.
Routes, Models, Controllers... these things arent some abstract ideas, they are defined principles that are, in fact, language agnostic.
So what is there to say that AI will not be able to make you a complete framework from scratch if you just prompt:
"build me an app that does XYZ in this language".
Again, muting the whole point of using any public framework.
I don't mean to be rude, but the more I look at this, the less sense it has.
create.php, edit.php? Where are these files even located? Don't you use named routes?
Update points to all posts? Do you redirect on update/create or?
MySQL is usually my GoTo
Lately, I have tried PostreSql, and I like it
Also, have a really large enterprise project that uses SQL and .NET. We had to attach a Laravel app to it. DEAR GOD have mercy. PHP and SQL just do not go together.
Surprised no one mentioned WAMP
https://www.wampserver.com/en/
I've been using it for a few years and it's really good.
You have a GUI to add new local domains that point anywhere on you PC (doesn't have to be in the wamp installation folder)
Also you can use different versions of PHP per project/domain
I did this for an old PHP 5.6 project to upgrade it to 7.4 I believe. The project has more than 10 000 references to mysql_query(), so instead of rewriting the whole thing, I made one file that made checks if mysql_query() is set as a function and, if not, make it.
Then, I made the rest of the old functions in PDO and also mapep the outputs to be the same.
It was a dirty fix but improved the performance by a huge margin.
Vite is a huge improvement over Webpack, BUT Blade is a great tool for simple projects and especially for prototyping.
Even on large-scale projects, it will get the job done as long as you dont call templates/components in a loop. (like populating rows of a <table>)
Tinkerun is a nice tool
https://marketplace.visualstudio.com/items?itemName=tinkerun.tinkerun-vscode
Reading your post felt like an interrogation.
Why would people do a tutorial for Laravel without showing all the parts of it, i.e. Blade templates, Vue etc... Just skip those parts and look how routes work, in your case the API routes that generate JSON.
Look how Middlewares and Policies work for authentification and permissions on those routes. Don't know what you plan on doing with your project regarding authentification but Laravel offers several packages like Passport and Sanctum.
Migrations for database building.
Factories and Seeders for database population for testing. maybe Queued jobs and custom Artisan commands? All of the above is really well documented on the official site and if you have decades of experience, self taught in PHP, I see no problem figuring out how it works by going through the documentation.
What you are looking for is oddly specific to the point are you sure Laravel is what you want/need?
Yes, Laravel can provide all of things you mentioned you need, and much, much more. But when all you are doing is using PHP as the middleman between AJAX calls and MySql, why go the Laravel route at all? Just make a lightweight project from scratch?
some of these are oddly specific...
but nonetheless, if you have a senior like THAT...run from that company
that's not a senior, that's a prick
I also use Stack overflow...and don't be ashamed to admit it, you can't know everything from the top of your head and if you do...go be a theoretical physicist or something because you're wasting your potential of photographic memory on programing the next facebook.
I don't care what my junior is watching on his screen at a given time. Sometimes you just need to zone out to think about a problem and maybe a distraction helps them to think. I'm like that so I understand, if I get stuck in a loop in my head on an issue, I watch a short youtube video or something to distract myself and then come back to the task with a fresh mindset.
Stuck = Frustrated = Stuck even more
So this is also an advice for everyone (senior or junior), if you feel like you've hit a wall...take a walk, stare through the window, watch a funny clip...anything to relieve the stress.
no comment on 4. and 5.
And it's great! A stick figure RPG with a lot of humor in it's writing.
One of the reasons I got my first job was the fact I made scripts to automate the game in a desktop tool called KOLMafia.
I've made an account back in 2008. Played for years and then stoped. Now just recently came back to the game and having more fun with scripting it in KoLMafia then actually playing the game.
I think I misspoke on these two points so I'll rephrase:
I completely understand that someone would use Postgre. It's a database like any other. It's just that I don't really see it used as often as MySQL purely because WAMP/LAMP installations (and hosting providers) default to MySQL.
Call me old-fashioned but I prefer setting up my local machine with WAMP where I can tinker and easily switch between PHP versions with a click of a mouse. Also setup our GitLab to build production on our live server after every merge to master. I get that Docker can to all that for me, but like I sad...cal me old-fashioned
Came here after a few days just to say thank you for the tinkerun recommendation!
I've been using it for these past few days and love it. It's great!
personally I use the paid version of Intelephense in tandem with the phpcs extension for the past two years I think and I'm happy with it
I usually work on Laravel but also do work on pure PHP apps including some legacy apps on PHP 5.6 up to 8.0
this Tinkerwell looks promising, thanks for the tip
End of this list.
Back to top