Skip to content

u/Seth_os

In this archive from Feb 2021 to Dec 2026

1
posts
17
comments
0
media
59
score

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?

3 points

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.

2 points

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

1 points

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.

4 points

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?

0 points

some of these are oddly specific...

but nonetheless, if you have a senior like THAT...run from that company

  1. that's not a senior, that's a prick

  2. 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.

  3. 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.

2 points

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.

1 points

I think I misspoke on these two points so I'll rephrase:

  1. 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.

  2. 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

1 points
  1. I have yet to see someone use Postgre.
  2. 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?
  3. 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.
1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.